Kaynağa Gözat

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
Ashish Kumar Dhanotiya 4 yıl önce
ebeveyn
işleme
693f6400d1

+ 22 - 1
components/mlme/dispatcher/inc/cfg_mlme_vht_caps.h

@@ -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 */

+ 5 - 2
components/mlme/dispatcher/src/wlan_mlme_api.c

@@ -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;
 
-	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);
+	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",
+			  vht_cap_info->vht_mcs_10_11_supp);
 
 	return QDF_STATUS_SUCCESS;
 }