mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-28 10:18:21 -05:00
autoscan: Disable when we move above WPA_SCANNING state
In case of drivers that don't use wpa_supplicant as SME, autoscan feature was never disabled. Signed-off-by: Wiktor Drewniak <wiktor.drewniak@gmail.com>
This commit is contained in:
parent
eb3234c07b
commit
bce3d4f70e
@ -961,7 +961,7 @@ void wpa_supplicant_set_state(struct wpa_supplicant *wpa_s,
|
||||
wpa_supplicant_stop_bgscan(wpa_s);
|
||||
#endif /* CONFIG_BGSCAN */
|
||||
|
||||
if (state == WPA_AUTHENTICATING)
|
||||
if (state > WPA_SCANNING)
|
||||
wpa_supplicant_stop_autoscan(wpa_s);
|
||||
|
||||
if (state == WPA_DISCONNECTED || state == WPA_INACTIVE)
|
||||
|
Loading…
Reference in New Issue
Block a user