瀏覽代碼

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 年之前
父節點
當前提交
a67af057c8
共有 1 個文件被更改,包括 1 次插入1 次删除
  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;