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
This commit is contained in:
parent
cca6043ce0
commit
a67af057c8
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user