diff mbox series

ath10k: remove the max_sched_scan_reqs value

Message ID 20191112055728.28847-1-wgong@codeaurora.org (mailing list archive)
State New, archived
Headers show
Series ath10k: remove the max_sched_scan_reqs value | expand

Commit Message

Wen Gong Nov. 12, 2019, 5:57 a.m. UTC
ath10k do not support NL80211_FEATURE_SCHED_SCAN_RANDOM_MAC_ADDR, if
set max_sched_scan_reqs to a non zero value, then nl80211_add_commands_unsplit
will set a SCHED_SCAN attribute, some application tool will use this attribute
to check mac random support, when it check SCHED_SCAN has set and not
set NL80211_FEATURE_SCHED_SCAN_RANDOM_MAC_ADDR, it will report mac random
not support.

Remove the max_sched_scan_reqs value will pass the application tool's
check and pass test case of random mac address.

testd with QCA6174 SDIO with firmware
WLAN.RMH.4.4.1-00017-QCARMSWP-1.

Fixes: ce834e280f2f875 ("ath10k: support NET_DETECT WoWLAN feature")
Signed-off-by: Wen Gong <wgong@codeaurora.org>
---
 drivers/net/wireless/ath/ath10k/mac.c | 1 -
 1 file changed, 1 deletion(-)
diff mbox series

Patch

diff --git a/drivers/net/wireless/ath/ath10k/mac.c b/drivers/net/wireless/ath/ath10k/mac.c
index e8bdb2ba9b18..9aa499b0527e 100644
--- a/drivers/net/wireless/ath/ath10k/mac.c
+++ b/drivers/net/wireless/ath/ath10k/mac.c
@@ -8902,7 +8902,6 @@  int ath10k_mac_register(struct ath10k *ar)
 	ar->hw->wiphy->max_scan_ie_len = WLAN_SCAN_PARAMS_MAX_IE_LEN;
 
 	if (test_bit(WMI_SERVICE_NLO, ar->wmi.svc_map)) {
-		ar->hw->wiphy->max_sched_scan_reqs = 1;
 		ar->hw->wiphy->max_sched_scan_ssids = WMI_PNO_MAX_SUPP_NETWORKS;
 		ar->hw->wiphy->max_match_sets = WMI_PNO_MAX_SUPP_NETWORKS;
 		ar->hw->wiphy->max_sched_scan_ie_len = WMI_PNO_MAX_IE_LENGTH;