qcacld-3.0: Add MLME-CFG items for feature flags
Add these cfg mlme items for feature flags:-
1. ACCEPT_SHORT_SLOT_ASSOC_ONLY
2. HCF_ENABLED
3. RSN_ENABLED
4. 11G_SHORT_PREAMBLE_ENABLED
5. 11G_SHORT_SLOT_TIME_ENABLED
6. CHANNEL_BONDING_MODE
7. CFG_BLOCK_ACK_ENABLED
Change-Id: Id55299ece0169d40608df8508fbd768bb8aed741
CRs-Fixed: 2315584
diff --git a/core/mac/src/pe/lim/lim_utils.c b/core/mac/src/pe/lim/lim_utils.c
index 22a9130..14a4fcd 100644
--- a/core/mac/src/pe/lim/lim_utils.c
+++ b/core/mac/src/pe/lim/lim_utils.c
@@ -1574,7 +1574,7 @@
mac_ctx->lim.gLimNoShortSlotParams.
numNonShortSlotSta++;
}
- wlan_cfg_get_int(mac_ctx, WNI_CFG_11G_SHORT_SLOT_TIME_ENABLED, &val);
+ val = mac_ctx->mlme_cfg->feature_flags.enable_short_slot_time_11g;
/*
* Here we check if we are AP role and short slot enabled
* (both admin and oper modes) but we have atleast one STA
@@ -4160,13 +4160,8 @@
if (!val)
return QDF_STATUS_SUCCESS;
- if (wlan_cfg_get_int(pMac, WNI_CFG_11G_SHORT_PREAMBLE_ENABLED, &val) !=
- QDF_STATUS_SUCCESS) {
- pe_err("could not retrieve 11G short preamble switching enabled flag");
- return QDF_STATUS_E_FAILURE;
- }
-
- if (!val) /* 11G short preamble switching is disabled. */
+ /* 11G short preamble switching is disabled. */
+ if (!pMac->mlme_cfg->feature_flags.enable_short_preamble_11g)
return QDF_STATUS_SUCCESS;
if (LIM_IS_AP_ROLE(psessionEntry)) {