Browse Source

qcacld-3.0: Don't update session nss with peer MCS map

Do not update the session Nss value based on peer supported MCS
map to allow the association with vdev nss value.

Change-Id: Ia66dcd5ff1084b6b0725d38fc942eb516c6cbde6
CRs-Fixed: 2998168
Kiran Kumar Lokere 3 years ago
parent
commit
89f3ce30ab
1 changed files with 0 additions and 32 deletions
  1. 0 32
      core/mac/src/pe/lim/lim_assoc_utils.c

+ 0 - 32
core/mac/src/pe/lim/lim_assoc_utils.c

@@ -1571,21 +1571,6 @@ QDF_STATUS lim_populate_own_rate_set(struct mac_context *mac_ctx,
 }
 
 #ifdef WLAN_FEATURE_11AX
-/**
- * lim_calculate_he_nss() - function to calculate new nss from he rates
- * @rates: supported rtes struct object
- * @session: pe session entry
- * This function calculates nss from rx_he_mcs_map_lt_80 within rates struct
- * object and assigns new value to nss within pe_session
- *
- * Return: None
- */
-static void lim_calculate_he_nss(struct supported_rates *rates,
-				 struct pe_session *session)
-{
-	HE_GET_NSS(rates->rx_he_mcs_map_lt_80, session->nss);
-}
-
 static bool lim_check_valid_mcs_for_nss(struct pe_session *session,
 					tDot11fIEhe_cap *he_caps)
 {
@@ -1611,11 +1596,6 @@ static bool lim_check_valid_mcs_for_nss(struct pe_session *session,
 
 }
 #else
-static void lim_calculate_he_nss(struct supported_rates *rates,
-				 struct pe_session *session)
-{
-}
-
 static bool lim_check_valid_mcs_for_nss(struct pe_session *session,
 					tDot11fIEhe_cap *he_caps)
 {
@@ -1788,18 +1768,6 @@ QDF_STATUS lim_populate_peer_rate_set(struct mac_context *mac,
 	lim_populate_eht_mcs_set(mac, pRates, eht_caps,
 				 pe_session, pe_session->nss);
 
-	if (IS_DOT11_MODE_HE(pe_session->dot11mode) && he_caps) {
-		lim_calculate_he_nss(pRates, pe_session);
-	} else if (pe_session->vhtCapability) {
-		/*
-		 * pRates->vhtTxMCSMap is intersection of self tx and peer rx
-		 * mcs so update nss as per peer rx mcs
-		 */
-		if ((pRates->vhtTxMCSMap & MCSMAPMASK2x2) == MCSMAPMASK2x2)
-			pe_session->nss = NSS_1x1_MODE;
-	} else if (pRates->supportedMCSSet[1] == 0) {
-		pe_session->nss = NSS_1x1_MODE;
-	}
 	pe_debug("nss 1x1 %d nss %d", pe_session->supported_nss_1x1,
 		 pe_session->nss);