mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-28 18:28:23 -05:00
Try to start a new scan more quickly after driver rejection
This speeds up recovery from some cases where the driver may refuse a new scan request command temporarily.
This commit is contained in:
parent
8cd82735cb
commit
1c4c9c5078
@ -425,7 +425,7 @@ static void wpa_supplicant_scan(void *eloop_ctx, void *timeout_ctx)
|
|||||||
wpa_printf(MSG_WARNING, "Failed to initiate AP scan.");
|
wpa_printf(MSG_WARNING, "Failed to initiate AP scan.");
|
||||||
if (prev_state != wpa_s->wpa_state)
|
if (prev_state != wpa_s->wpa_state)
|
||||||
wpa_supplicant_set_state(wpa_s, prev_state);
|
wpa_supplicant_set_state(wpa_s, prev_state);
|
||||||
wpa_supplicant_req_scan(wpa_s, 10, 0);
|
wpa_supplicant_req_scan(wpa_s, 1, 0);
|
||||||
} else
|
} else
|
||||||
wpa_s->scan_runs++;
|
wpa_s->scan_runs++;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user