From: Wiktor Drewniak Date: Mon, 18 Mar 2019 17:12:16 +0000 (+0100) Subject: autoscan: Disable when we move above WPA_SCANNING state X-Git-Tag: hostap_2_8~45 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=bce3d4f70edd5e02e7fc8f6e790d06b43eea4db4;p=thirdparty%2Fhostap.git 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 --- diff --git a/wpa_supplicant/wpa_supplicant.c b/wpa_supplicant/wpa_supplicant.c index 862041b85..96a3691cf 100644 --- a/wpa_supplicant/wpa_supplicant.c +++ b/wpa_supplicant/wpa_supplicant.c @@ -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)