From f10487e1afeada9a330f9754079108ab392b79ac Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sat, 14 Mar 2015 10:05:05 +0200 Subject: [PATCH] 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 --- wpa_supplicant/ap.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wpa_supplicant/ap.c b/wpa_supplicant/ap.c index ea5b2b4da..7ecf7a85c 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); }