From bce3d4f70edd5e02e7fc8f6e790d06b43eea4db4 Mon Sep 17 00:00:00 2001 From: Wiktor Drewniak Date: Mon, 18 Mar 2019 18:12:16 +0100 Subject: [PATCH] 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 --- wpa_supplicant/wpa_supplicant.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)