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 <greearb@candelatech.com>
This commit is contained in:
parent
e29853bbff
commit
48b84f18a3
1 changed files with 6 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue