Fix bgscan stopping after dissassociation
authorSam Leffler <sleffler@google.com>
Sat, 10 Jul 2010 21:43:48 +0000 (14:43 -0700)
committerJouni Malinen <j@w1.fi>
Sat, 10 Jul 2010 21:43:48 +0000 (14:43 -0700)
Clear bgscan_ssid on disassoc event so bgscan is initialized the next
time we reach COMPLETED state.

wpa_supplicant/events.c

index 4808c68..1c14f69 100644 (file)
@@ -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)) {