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>
This commit is contained in:
parent
f584b5a196
commit
f10487e1af
1 changed files with 3 additions and 0 deletions
|
@ -707,6 +707,9 @@ void wpa_supplicant_ap_deinit(struct wpa_supplicant *wpa_s)
|
||||||
hostapd_interface_free(wpa_s->ap_iface);
|
hostapd_interface_free(wpa_s->ap_iface);
|
||||||
wpa_s->ap_iface = NULL;
|
wpa_s->ap_iface = NULL;
|
||||||
wpa_drv_deinit_ap(wpa_s);
|
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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue