]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Send CTRL-EVENT-DISCONNECTED on wpa_supplicant AP deinit
authorJouni Malinen <j@w1.fi>
Sat, 14 Mar 2015 08:05:05 +0000 (10:05 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 14 Mar 2015 08:05:05 +0000 (10:05 +0200)
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>
wpa_supplicant/ap.c

index ea5b2b4daee2d29b26f317b8b45aa8358c259ab3..7ecf7a85c30861b6da733f7cd428ea30e6928a61 100644 (file)
@@ -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);
 }