[PATCH 6/6] Supplicant: Wait 1 second before (re)scanning on auth-timeout.

Ben Greear greearb
Fri Dec 3 16:55:05 PST 2010


Signed-off-by: Ben Greear <greearb at candelatech.com>
---
:100644 100644 7b74d23... 909620d... M	wpa_supplicant/wpa_supplicant.c
 wpa_supplicant/wpa_supplicant.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/wpa_supplicant/wpa_supplicant.c b/wpa_supplicant/wpa_supplicant.c
index 7b74d23..909620d 100644
--- a/wpa_supplicant/wpa_supplicant.c
+++ b/wpa_supplicant/wpa_supplicant.c
@@ -203,7 +203,10 @@ 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, AP, or another local VIF may be busy.
+	 * So, wait a second until scanning again.
+	 */
+	wpa_supplicant_req_scan(wpa_s, 1, 0);
 }
 
 
-- 
1.7.2.3




More information about the Hostap mailing list