From: Ben Greear Date: Thu, 24 Feb 2011 15:16:16 +0000 (+0200) Subject: Wait 1 second before (re)scanning on authentication timeout X-Git-Tag: hostap-1-bp~568 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=48b84f18a371aa93114da1e7ee09cec2b09f79d7;p=thirdparty%2Fhostap.git Wait 1 second before (re)scanning on authentication timeout 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 --- diff --git a/wpa_supplicant/wpa_supplicant.c b/wpa_supplicant/wpa_supplicant.c index b6503ca63..27f6c058e 100644 --- a/wpa_supplicant/wpa_supplicant.c +++ b/wpa_supplicant/wpa_supplicant.c @@ -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); }