]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commitdiff
staging: ath6kl: Return correct scan complete status
authorVipin Mehta <vmehta@atheros.com>
Fri, 18 Feb 2011 21:13:04 +0000 (13:13 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 18 Feb 2011 21:28:50 +0000 (13:28 -0800)
Return correct scan complete status to the cfg80211 module based on
the value returned from the hardware.

Signed-off-by: Vipin Mehta <vmehta@atheros.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/ath6kl/os/linux/cfg80211.c

index b7742d435e2c15a506dd88e28004d4eed2f55c1a..bc5f6a7afc19279931add9fd19b8276ae48b65db 100644 (file)
@@ -791,7 +791,7 @@ ar6k_cfg80211_scanComplete_event(AR_SOFTC_T *ar, int status)
         wmi_iterate_nodes(ar->arWmi, ar6k_cfg80211_scan_node, ar->wdev->wiphy);
 
         cfg80211_scan_done(ar->scan_request,
-                          (status & A_ECANCELED) ? true : false);
+            ((status & A_ECANCELED) || (status & A_EBUSY)) ? true : false);
 
         if(ar->scan_request->n_ssids &&
            ar->scan_request->ssids[0].ssid_len) {