mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-01-17 18:34:03 -05:00
Register a quick auth timeout if EAPOL fails to avoid long waits
This may be needed if the AP does not disconnect in case of EAP-FAST unauthenticated provisioning (EAP-Failure). Adding the local short timeout will speed up the process in such a case by reducing the wait (which can often be up to 60 seconds).
This commit is contained in:
parent
99a10f8d2c
commit
0930209dc2
@ -228,6 +228,15 @@ static void wpa_supplicant_eapol_cb(struct eapol_sm *eapol, int success,
|
|||||||
wpa_printf(MSG_DEBUG, "EAPOL authentication completed %ssuccessfully",
|
wpa_printf(MSG_DEBUG, "EAPOL authentication completed %ssuccessfully",
|
||||||
success ? "" : "un");
|
success ? "" : "un");
|
||||||
|
|
||||||
|
if (!success) {
|
||||||
|
/*
|
||||||
|
* Make sure we do not get stuck here waiting for long EAPOL
|
||||||
|
* timeout if the AP does not disconnect in case of
|
||||||
|
* authentication failure.
|
||||||
|
*/
|
||||||
|
wpa_supplicant_req_auth_timeout(wpa_s, 2, 0);
|
||||||
|
}
|
||||||
|
|
||||||
if (!success || !wpa_s->driver_4way_handshake)
|
if (!success || !wpa_s->driver_4way_handshake)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user