Skip to content

Commit

Permalink
ath6kl: abort normal scan when scheduled scan is started
Browse files Browse the repository at this point in the history
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 <[email protected]>
Tested-by: Raja Mani <[email protected]>
Signed-off-by: Kalle Valo <[email protected]>
  • Loading branch information
kvalo committed Mar 21, 2012
1 parent 7084bee commit b4d13d3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/net/wireless/ath/ath6kl/cfg80211.c
Original file line number Diff line number Diff line change
Expand Up @@ -2848,6 +2848,8 @@ static int ath6kl_cfg80211_sscan_start(struct wiphy *wiphy,
if (vif->sme_state != SME_DISCONNECTED)
return -EBUSY;

ath6kl_cfg80211_scan_complete_event(vif, true);

for (i = 0; i < ar->wiphy->max_sched_scan_ssids; i++) {
ath6kl_wmi_probedssid_cmd(ar->wmi, vif->fw_vif_idx,
i, DISABLE_SSID_FLAG,
Expand Down

0 comments on commit b4d13d3

Please sign in to comment.