From 6417668a2ed8a21493983bf717680aae7a5fc4c0 Mon Sep 17 00:00:00 2001 From: Naveen Rawat Date: Wed, 14 Jun 2017 14:28:37 -0700 Subject: [PATCH] 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 --- core/mac/src/pe/lim/lim_assoc_utils.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/mac/src/pe/lim/lim_assoc_utils.c b/core/mac/src/pe/lim/lim_assoc_utils.c index 503ceaf1e42b..52c6f2e0f441 100644 --- a/core/mac/src/pe/lim/lim_assoc_utils.c +++ b/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",