]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Wait 1 second before (re)scanning on authentication timeout
authorBen Greear <greearb@candelatech.com>
Thu, 24 Feb 2011 15:16:16 +0000 (17:16 +0200)
committerJouni Malinen <j@w1.fi>
Thu, 24 Feb 2011 15:16:16 +0000 (17:16 +0200)
If we timed out, the AP or the local radio may be busy.
So, wait a second until scanning again.

Signed-off-by: Ben Greear <greearb@candelatech.com>
wpa_supplicant/wpa_supplicant.c

index b6503ca637c60272917183197782d0eaa4b44095..27f6c058e926a4a192fbcb302ad316dadf550451 100644 (file)
@@ -202,7 +202,12 @@ static void wpa_supplicant_timeout(void *eloop_ctx, void *timeout_ctx)
        wpa_sm_notify_disassoc(wpa_s->wpa);
        wpa_supplicant_disassociate(wpa_s, WLAN_REASON_DEAUTH_LEAVING);
        wpa_s->reassociate = 1;
-       wpa_supplicant_req_scan(wpa_s, 0, 0);
+
+       /*
+        * If we timed out, the AP or the local radio may be busy.
+        * So, wait a second until scanning again.
+        */
+       wpa_supplicant_req_scan(wpa_s, 1, 0);
 }