Kaynağa Gözat

qcacld-3.0: Always support MCS 0-7 for HT connection

In case HT peer rates are malformed and MCS 0-7 are not supported
set them forcefuly because as per spec, a 11n connection must support
MCS 0-7

Change-Id: If599c1478b9d3231da589576ef5ba9236b58ce4c
CRs-Fixed: 2059506
Naveen Rawat 7 yıl önce
ebeveyn
işleme
6417668a2e
1 değiştirilmiş dosya ile 5 ekleme ve 0 silme
  1. 5 0
      core/mac/src/pe/lim/lim_assoc_utils.c

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

@@ -1750,6 +1750,11 @@ lim_populate_peer_rate_set(tpAniSirGlobal pMac,
 		for (i = 0; i < SIR_MAC_MAX_SUPPORTED_MCS_SET; i++)
 			pe_debug("%x ", pRates->supportedMCSSet[i]);
 
+		if (pRates->supportedMCSSet[0] == 0) {
+			pe_debug("Incorrect MCS 0 - 7. They must be supported");
+			pRates->supportedMCSSet[0] = 0xFF;
+		}
+
 		psessionEntry->supported_nss_1x1 =
 			((pRates->supportedMCSSet[1] != 0) ? false : true);
 		pe_debug("HT supported nss 1x1: %d",