qcacld-3.0: Add ini to enable/disable vht mcs 10 and 11 support

Currently there is no ini to enable/disable vht mac 10, 11
and this feature is completely based on FW capability.

Based on current requirement add support to enable/disable
vht mcs 10/11 feature from ini.

CRs-Fixed: 2861854
Change-Id: I350daea8a2f81bfeac25ccdda026d1a5d1c133e3
This commit is contained in:
Ashish Kumar Dhanotiya
2021-02-23 20:32:46 +05:30
committed by Madan Koyyalamudi
parent 3ab35702ef
commit 693f6400d1
2 changed files with 27 additions and 3 deletions

View File

@@ -597,6 +597,26 @@
1, \
"Enable subfee in vendor vht ie")
/*
* <ini>
* enable_vhtmcs_10_11_support - Enable/Disable vht mcs 10, 11 support
* @Min: 0
* @Max: 1
* @Default: 1
*
* This ini is used to enable/disable mcs 10, 11 support.
*
* Related: NA
*
* Usage: Internal
*
* </ini>
*/
#define CFG_ENABLE_VHT_MCS_10_11 CFG_INI_BOOL( \
"enable_vhtmcs_10_11_support", \
1, \
"Enable/Disable vht mcs 10, 11 support")
#define CFG_VHT_CAPS_ALL \
CFG(CFG_VHT_SUPP_CHAN_WIDTH) \
CFG(CFG_VHT_SU_BEAMFORMEE_CAP) \
@@ -630,6 +650,7 @@
CFG(CFG_ENABLE_SUBFEE_IN_VENDOR_VHTIE) \
CFG(CFG_TX_BF_CAP) \
CFG(CFG_AS_CAP) \
CFG(CFG_DISABLE_LDPC_WITH_TXBF_AP)
CFG(CFG_DISABLE_LDPC_WITH_TXBF_AP) \
CFG(CFG_ENABLE_VHT_MCS_10_11)
#endif /* __CFG_MLME_VHT_CAPS_H */

View File

@@ -3615,8 +3615,11 @@ mlme_update_vht_cap(struct wlan_objmgr_psoc *psoc, struct wma_tgt_vht_cap *cfg)
if (vht_cap_info->short_gi_160mhz && !cfg->vht_short_gi_160)
vht_cap_info->short_gi_160mhz = cfg->vht_short_gi_160;
if (cfg_get(psoc, CFG_ENABLE_VHT_MCS_10_11))
vht_cap_info->vht_mcs_10_11_supp = cfg->vht_mcs_10_11_supp;
mlme_legacy_debug(" vht_mcs_10_11_supp %d", cfg->vht_mcs_10_11_supp);
mlme_legacy_debug("vht_mcs_10_11_supp %d",
vht_cap_info->vht_mcs_10_11_supp);
return QDF_STATUS_SUCCESS;
}