qcacmn: change parameter name 'is_assoc_link' in cdp_peer_setup_info

Currently is_assoc_link flag in cdp_peer_setup_info just means first
link peer during MLO connection, but usually assoc_link is the
link which initialize MLO association and it will be the primary_link.
this introduce confusion with another flag is_primary_link.

Change it to 'is_first_link' in cdp_peer_setup_info

Change-Id: I8d14da73e6a3bbc39a4a527d6c0aa5667255e995
CRs-Fixed: 3090270
This commit is contained in:
Jinwei Chen
2021-12-07 22:51:17 -08:00
committed by Madan Koyyalamudi
parent 2cb0e9b21e
commit 96a3c195c2
4 changed files with 13 additions and 14 deletions

View File

@@ -6918,21 +6918,21 @@ QDF_STATUS dp_peer_mlo_setup(
return QDF_STATUS_E_FAILURE;
}
/* if this is the first assoc link */
if (setup_info->is_assoc_link)
/* if this is the first link peer */
if (setup_info->is_first_link)
/* create MLD peer */
dp_peer_create_wifi3((struct cdp_soc_t *)soc,
vdev_id,
setup_info->mld_peer_mac,
CDP_MLD_PEER_TYPE);
peer->assoc_link = setup_info->is_assoc_link;
peer->first_link = setup_info->is_first_link;
peer->primary_link = setup_info->is_primary_link;
mld_peer = dp_peer_find_hash_find(soc,
setup_info->mld_peer_mac,
0, DP_VDEV_ALL, DP_MOD_ID_CDP);
if (mld_peer) {
if (setup_info->is_assoc_link) {
if (setup_info->is_first_link) {
/* assign rx_tid to mld peer */
mld_peer->rx_tid = peer->rx_tid;
/* no cdp_peer_setup for MLD peer,
@@ -6947,7 +6947,7 @@ QDF_STATUS dp_peer_mlo_setup(
}
if (setup_info->is_primary_link &&
!setup_info->is_assoc_link) {
!setup_info->is_first_link) {
/*
* if first link is not the primary link,
* then need to change mld_peer->vdev as