mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-01-17 18:34:03 -05:00
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
@ -202,7 +202,12 @@ static void wpa_supplicant_timeout(void *eloop_ctx, void *timeout_ctx)
|
|||||||
wpa_sm_notify_disassoc(wpa_s->wpa);
|
wpa_sm_notify_disassoc(wpa_s->wpa);
|
||||||
wpa_supplicant_disassociate(wpa_s, WLAN_REASON_DEAUTH_LEAVING);
|
wpa_supplicant_disassociate(wpa_s, WLAN_REASON_DEAUTH_LEAVING);
|
||||||
wpa_s->reassociate = 1;
|
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 New Issue
Block a user