From 3b038d796852d5aa05ca2c53298749ab16187367 Mon Sep 17 00:00:00 2001 From: Sam Leffler Date: Sat, 10 Jul 2010 14:43:48 -0700 Subject: [PATCH] Fix bgscan stopping after dissassociation Clear bgscan_ssid on disassoc event so bgscan is initialized the next time we reach COMPLETED state. --- wpa_supplicant/events.c | 1 + 1 file changed, 1 insertion(+) diff --git a/wpa_supplicant/events.c b/wpa_supplicant/events.c index 4808c6816..1c14f6993 100644 --- a/wpa_supplicant/events.c +++ b/wpa_supplicant/events.c @@ -1314,6 +1314,7 @@ static void wpa_supplicant_event_disassoc(struct wpa_supplicant *wpa_s, } wpa_supplicant_mark_disassoc(wpa_s); bgscan_deinit(wpa_s); + wpa_s->bgscan_ssid = NULL; #ifdef CONFIG_SME if (authenticating && (wpa_s->drv_flags & WPA_DRIVER_FLAGS_SME)) {