mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-02-20 02:53:03 -05:00
bgscan: Stop bgscan only on disassociation
Stopping bgscan on any state other than COMPLETED results in bgscan reset (stop + start) on every rekeying operation. Signed-hostap: Eliad Peller <eliad@wizery.com>
This commit is contained in:
parent
b2838baf6a
commit
3727123269
@ -699,7 +699,7 @@ void wpa_supplicant_set_state(struct wpa_supplicant *wpa_s,
|
||||
#ifdef CONFIG_BGSCAN
|
||||
if (state == WPA_COMPLETED)
|
||||
wpa_supplicant_start_bgscan(wpa_s);
|
||||
else
|
||||
else if (state < WPA_ASSOCIATED)
|
||||
wpa_supplicant_stop_bgscan(wpa_s);
|
||||
#endif /* CONFIG_BGSCAN */
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user