From a67af057c87b5de77a06e76dc14e5676dac9872a Mon Sep 17 00:00:00 2001 From: Kiran Kumar Lokere Date: Wed, 12 Dec 2018 19:18:51 -0800 Subject: [PATCH] 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 --- core/hdd/src/wlan_hdd_cfg80211.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/hdd/src/wlan_hdd_cfg80211.c b/core/hdd/src/wlan_hdd_cfg80211.c index b14ee6269109..2e0b47cdf828 100644 --- a/core/hdd/src/wlan_hdd_cfg80211.c +++ b/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;