-- Wiktor Drewniak tel. +48 609 314 098
From e6e7e767b5d92cfd4054a1be911c579f29ee85f9 Mon Sep 17 00:00:00 2001 From: Wiktor Drewniak <wiktor.drewniak@xxxxxxxxx> 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 <wiktor.drewniak@xxxxxxxxx> --- 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 bcc0693ea..a9ac47b2c 100644 --- a/wpa_supplicant/wpa_supplicant.c +++ b/wpa_supplicant/wpa_supplicant.c @@ -959,7 +959,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) -- 2.21.0
_______________________________________________ Hostap mailing list Hostap@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/hostap