Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 65363876 authored by Ashish Kumar Dhanotiya's avatar Ashish Kumar Dhanotiya Committed by Madan Koyyalamudi
Browse files

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
parent 84810c87
Loading
Loading
Loading
Loading
+22 −1
Original line number Diff line number Diff line
@@ -597,6 +597,26 @@
			0, \
			"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
Original line number Diff line number Diff line
@@ -3228,8 +3228,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;
}