qcacld-3.0: Add configuration support for VHT20 MCS9
Add user configuration to enable/disable the MCS9 in VHT20
operation.
Change-Id: I1bf1156dbeb51a7850ef5a5b66295ecc0d007542
CRs-Fixed: 2217038
diff --git a/core/mac/src/pe/lim/lim_assoc_utils.c b/core/mac/src/pe/lim/lim_assoc_utils.c
index afb22a2..4cf3167 100644
--- a/core/mac/src/pe/lim/lim_assoc_utils.c
+++ b/core/mac/src/pe/lim/lim_assoc_utils.c
@@ -1397,6 +1397,25 @@
VHT_TX_HIGHEST_SUPPORTED_DATA_RATE_1_1;
rates->vhtRxHighestDataRate =
VHT_RX_HIGHEST_SUPPORTED_DATA_RATE_1_1;
+ if (!session_entry->ch_width &&
+ !mac_ctx->roam.configParam.enable_vht20_mcs9 &&
+ ((rates->vhtRxMCSMap & VHT_1x1_MCS_MASK) ==
+ VHT_1x1_MCS9_MAP)) {
+ DISABLE_VHT_MCS_9(rates->vhtRxMCSMap,
+ NSS_1x1_MODE);
+ DISABLE_VHT_MCS_9(rates->vhtTxMCSMap,
+ NSS_1x1_MODE);
+ }
+ } else {
+ if (!session_entry->ch_width &&
+ !mac_ctx->roam.configParam.enable_vht20_mcs9 &&
+ ((rates->vhtRxMCSMap & VHT_2x2_MCS_MASK) ==
+ VHT_2x2_MCS9_MAP)) {
+ DISABLE_VHT_MCS_9(rates->vhtRxMCSMap,
+ NSS_2x2_MODE);
+ DISABLE_VHT_MCS_9(rates->vhtTxMCSMap,
+ NSS_2x2_MODE);
+ }
}
if ((peer_vht_caps == NULL) || (!peer_vht_caps->present))