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:
Wiktor Drewniak 2019-03-18 18:12:16 +01:00 committed by Jouni Malinen
parent eb3234c07b
commit bce3d4f70e

View file

@ -961,7 +961,7 @@ void wpa_supplicant_set_state(struct wpa_supplicant *wpa_s,
wpa_supplicant_stop_bgscan(wpa_s); wpa_supplicant_stop_bgscan(wpa_s);
#endif /* CONFIG_BGSCAN */ #endif /* CONFIG_BGSCAN */
if (state == WPA_AUTHENTICATING) if (state > WPA_SCANNING)
wpa_supplicant_stop_autoscan(wpa_s); wpa_supplicant_stop_autoscan(wpa_s);
if (state == WPA_DISCONNECTED || state == WPA_INACTIVE) if (state == WPA_DISCONNECTED || state == WPA_INACTIVE)