Browse Source

wpa_supplicant AP: More thorough AP mode deinit

Jouni Malinen 15 years ago
parent
commit
7a649c7dda
1 changed files with 2 additions and 0 deletions
  1. 2 0
      wpa_supplicant/ap.c

+ 2 - 0
wpa_supplicant/ap.c

@@ -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);
 }