Return-path: Received: from smtp.codeaurora.org ([198.145.29.96]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1iUPBN-0007qv-WE for ath10k@lists.infradead.org; Tue, 12 Nov 2019 05:57:43 +0000 From: Wen Gong Subject: [PATCH] ath10k: remove the max_sched_scan_reqs value Date: Tue, 12 Nov 2019 13:57:28 +0800 Message-Id: <20191112055728.28847-1-wgong@codeaurora.org> MIME-Version: 1.0 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "ath10k" Errors-To: ath10k-bounces+kvalo=adurom.com@lists.infradead.org To: ath10k@lists.infradead.org Cc: linux-wireless@vger.kernel.org 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 --- drivers/net/wireless/ath/ath10k/mac.c | 1 - 1 file changed, 1 deletion(-) 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; -- 2.23.0 _______________________________________________ ath10k mailing list ath10k@lists.infradead.org http://lists.infradead.org/mailman/listinfo/ath10k