diff options
author | Kalle Valo <kvalo@qca.qualcomm.com> | 2012-03-21 04:01:09 -0400 |
---|---|---|
committer | Kalle Valo <kvalo@qca.qualcomm.com> | 2012-03-21 04:06:43 -0400 |
commit | b4d13d3b70b085ef9b8e0bf7132d502d77d9ffc6 (patch) | |
tree | 60a868d928a50f3797c2e3a633283ce08458a507 /drivers/net/wireless/ath | |
parent | 7084beeadb9b3cf5d8783210a1e4b281b07fa6cd (diff) |
ath6kl: abort normal scan when scheduled scan is started
If the device disconnects from an AP when it is in suspending state. You will
get the following message from wpa_supplicant after waking the device up and
sending scan request:
"Scan trigger failed: ret=-16 (Device or resource busy)"
Fix the issue by sending a scan complete event before starting scheduled
scan.
kvalo: cosmetic changes to commit log
Signed-off-by: Isaac.li <shonmou@gmail.com>
Tested-by: Raja Mani <rmani@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Diffstat (limited to 'drivers/net/wireless/ath')
-rw-r--r-- | drivers/net/wireless/ath/ath6kl/cfg80211.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath6kl/cfg80211.c b/drivers/net/wireless/ath/ath6kl/cfg80211.c index b605f4adbdd7..8b12ad6127d3 100644 --- a/drivers/net/wireless/ath/ath6kl/cfg80211.c +++ b/drivers/net/wireless/ath/ath6kl/cfg80211.c | |||
@@ -2848,6 +2848,8 @@ static int ath6kl_cfg80211_sscan_start(struct wiphy *wiphy, | |||
2848 | if (vif->sme_state != SME_DISCONNECTED) | 2848 | if (vif->sme_state != SME_DISCONNECTED) |
2849 | return -EBUSY; | 2849 | return -EBUSY; |
2850 | 2850 | ||
2851 | ath6kl_cfg80211_scan_complete_event(vif, true); | ||
2852 | |||
2851 | for (i = 0; i < ar->wiphy->max_sched_scan_ssids; i++) { | 2853 | for (i = 0; i < ar->wiphy->max_sched_scan_ssids; i++) { |
2852 | ath6kl_wmi_probedssid_cmd(ar->wmi, vif->fw_vif_idx, | 2854 | ath6kl_wmi_probedssid_cmd(ar->wmi, vif->fw_vif_idx, |
2853 | i, DISABLE_SSID_FLAG, | 2855 | i, DISABLE_SSID_FLAG, |