]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
autoscan: Disable when we move above WPA_SCANNING state
authorWiktor Drewniak <wiktor.drewniak@gmail.com>
Mon, 18 Mar 2019 17:12:16 +0000 (18:12 +0100)
committerJouni Malinen <j@w1.fi>
Mon, 15 Apr 2019 22:53:21 +0000 (01:53 +0300)
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>
wpa_supplicant/wpa_supplicant.c

index 862041b85fcd35af450bbffa986169e7428ec505..96a3691cf3cf3d873debef40b784742e94481e74 100644 (file)
@@ -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)