aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/ap.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2015-03-14 08:05:05 (GMT)
committerJouni Malinen <j@w1.fi>2015-03-14 08:05:05 (GMT)
commitf10487e1afeada9a330f9754079108ab392b79ac (patch)
treedb1f8fd546a7122274dac60eb750966111179c67 /wpa_supplicant/ap.c
parentf584b5a19650d1b73a984709b810d080a8ceeb01 (diff)
downloadhostap-f10487e1afeada9a330f9754079108ab392b79ac.zip
hostap-f10487e1afeada9a330f9754079108ab392b79ac.tar.gz
hostap-f10487e1afeada9a330f9754079108ab392b79ac.tar.bz2
Send CTRL-EVENT-DISCONNECTED on wpa_supplicant AP deinit
This makes the AP mode more consistent with other modes by providing a matching pair of CTRL-EVENT-CONNECTED and CTRL-EVENT-DISCONNECTED event messages. Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'wpa_supplicant/ap.c')
-rw-r--r--wpa_supplicant/ap.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/wpa_supplicant/ap.c b/wpa_supplicant/ap.c
index ea5b2b4..7ecf7a8 100644
--- a/wpa_supplicant/ap.c
+++ b/wpa_supplicant/ap.c
@@ -707,6 +707,9 @@ void wpa_supplicant_ap_deinit(struct wpa_supplicant *wpa_s)
hostapd_interface_free(wpa_s->ap_iface);
wpa_s->ap_iface = NULL;
wpa_drv_deinit_ap(wpa_s);
+ wpa_msg(wpa_s, MSG_INFO, WPA_EVENT_DISCONNECTED "bssid=" MACSTR
+ " reason=%d locally_generated=1",
+ MAC2STR(wpa_s->own_addr), WLAN_REASON_DEAUTH_LEAVING);
}