From: Sam Leffler Date: Sat, 10 Jul 2010 21:43:48 +0000 (-0700) Subject: Fix bgscan stopping after dissassociation X-Git-Tag: hostap-1-bp~1272 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3b038d796852d5aa05ca2c53298749ab16187367;p=thirdparty%2Fhostap.git Fix bgscan stopping after dissassociation Clear bgscan_ssid on disassoc event so bgscan is initialized the next time we reach COMPLETED state. --- 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)) {