wpa_supplicant AP: More thorough AP mode deinit
authorJouni Malinen <jouni.malinen@atheros.com>
Sun, 11 Apr 2010 17:03:39 +0000 (20:03 +0300)
committerJouni Malinen <j@w1.fi>
Sun, 11 Apr 2010 17:03:39 +0000 (20:03 +0300)
wpa_supplicant/ap.c

index 7023a56..1623c88 100644 (file)
@@ -258,9 +258,11 @@ void wpa_supplicant_ap_deinit(struct wpa_supplicant *wpa_s)
        if (wpa_s->ap_iface == NULL)
                return;
 
+       wpa_s->current_ssid = NULL;
        hostapd_interface_deinit(wpa_s->ap_iface);
        hostapd_interface_free(wpa_s->ap_iface);
        wpa_s->ap_iface = NULL;
+       wpa_drv_deinit_ap(wpa_s);
 }