Fix bgscan stopping after dissassociation
[libeap.git] / 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)) {