Prechádzať zdrojové kódy

qcacld-3.0: Fix the issue with beamformee NSTS setting

The user setting value is checked against the previous setting
hence if the current setting value is greater than previous setting
then driver returns error.
Check the user setting value against the range and update the param
value.

Change-Id: I2c730b71668efa7932600328459da9347d3e1d2f
CRs-Fixed: 2371024
Kiran Kumar Lokere 6 rokov pred
rodič
commit
a67af057c8
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      core/hdd/src/wlan_hdd_cfg80211.c

+ 1 - 1
core/hdd/src/wlan_hdd_cfg80211.c

@@ -6595,7 +6595,7 @@ __wlan_hdd_cfg80211_set_wifi_test_config(struct wiphy *wiphy,
 		if (!QDF_IS_STATUS_SUCCESS(status))
 			hdd_err("unable to get tx_bfee_ant_supp");
 
-		if (cfg_val > value) {
+		if (!cfg_in_range(CFG_VHT_BEAMFORMEE_ANT_SUPP, cfg_val)) {
 			hdd_err("NSTS %d not supported, supp_val %d", cfg_val,
 				value);
 			ret_val = -ENOTSUPP;