mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-01-19 03:14:05 -05:00
STA: Cancel sched_scan while initiating wps_reassoc
Scan initiated from wps_nfc command context was ketp on getting rescheduled due to an on-going scheduled scan. So cancel sched_scan before issuing a reassociation scan. Signed-hostap: Jithu Jance <jithu@broadcom.com>
This commit is contained in:
parent
215a02f359
commit
1cba9bea96
@ -1052,6 +1052,8 @@ static void wpas_wps_reassoc(struct wpa_supplicant *wpa_s,
|
|||||||
wpa_s->normal_scans = 0;
|
wpa_s->normal_scans = 0;
|
||||||
wpa_s->wps_success = 0;
|
wpa_s->wps_success = 0;
|
||||||
wpa_s->blacklist_cleared = 0;
|
wpa_s->blacklist_cleared = 0;
|
||||||
|
|
||||||
|
wpa_supplicant_cancel_sched_scan(wpa_s);
|
||||||
wpa_supplicant_req_scan(wpa_s, 0, 0);
|
wpa_supplicant_req_scan(wpa_s, 0, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user