summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichal Kazior <michal.kazior@tieto.com>2013-07-31 10:55:12 +0200
committerKalle Valo <kvalo@qca.qualcomm.com>2013-08-02 09:37:28 +0300
commitdcd4a561215b46d2d7c57b855a7da6a3e6e80c0e (patch)
tree83a259b243576b58d351fc0aa7eff5c772f88b40
parent432358ed1d18c19dbf89008325ff6ba662d0996e (diff)
downloadop-kernel-dev-dcd4a561215b46d2d7c57b855a7da6a3e6e80c0e.zip
op-kernel-dev-dcd4a561215b46d2d7c57b855a7da6a3e6e80c0e.tar.gz
ath10k: make sure to use passive scan when n_ssids is 0
Normally user specifies broadcast ssid for scanning. If the user wants to do a passive scan it does not pass any ssids. The patch makes sure we ath10k tells firmware to not send anything at all in case it decides no ssids equals broadcast ssid. Signed-off-by: Michal Kazior <michal.kazior@tieto.com> Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
-rw-r--r--drivers/net/wireless/ath/ath10k/mac.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath10k/mac.c b/drivers/net/wireless/ath/ath10k/mac.c
index 9ea31f8..6b9f850 100644
--- a/drivers/net/wireless/ath/ath10k/mac.c
+++ b/drivers/net/wireless/ath/ath10k/mac.c
@@ -2338,6 +2338,8 @@ static int ath10k_hw_scan(struct ieee80211_hw *hw,
arg.ssids[i].len = req->ssids[i].ssid_len;
arg.ssids[i].ssid = req->ssids[i].ssid;
}
+ } else {
+ arg.scan_ctrl_flags |= WMI_SCAN_FLAG_PASSIVE;
}
if (req->n_channels) {
OpenPOWER on IntegriCloud