mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-01-17 18:34:03 -05:00
ctrl_iface: Check for ongoing sched_scan on SCAN command
The first "if" in the SCAN command handling didn't check properly for sched_scan, causing the sched_scan and scan to run concurrently, instead of cancelling the ongoing sched scan (which is handled by the "else if" later). Signed-hostap: Eliad Peller <eliad@wizery.com>
This commit is contained in:
parent
2049a875bc
commit
d125df25e4
@ -5139,7 +5139,7 @@ char * wpa_supplicant_ctrl_iface_process(struct wpa_supplicant *wpa_s,
|
|||||||
if (wpa_s->wpa_state == WPA_INTERFACE_DISABLED)
|
if (wpa_s->wpa_state == WPA_INTERFACE_DISABLED)
|
||||||
reply_len = -1;
|
reply_len = -1;
|
||||||
else {
|
else {
|
||||||
if (!wpa_s->scanning &&
|
if (!wpa_s->sched_scanning && !wpa_s->scanning &&
|
||||||
((wpa_s->wpa_state <= WPA_SCANNING) ||
|
((wpa_s->wpa_state <= WPA_SCANNING) ||
|
||||||
(wpa_s->wpa_state == WPA_COMPLETED))) {
|
(wpa_s->wpa_state == WPA_COMPLETED))) {
|
||||||
wpa_s->normal_scans = 0;
|
wpa_s->normal_scans = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user