diff --git a/src/ap/hostapd.c b/src/ap/hostapd.c index f6019ac20..3e4e16b4f 100644 --- a/src/ap/hostapd.c +++ b/src/ap/hostapd.c @@ -1619,6 +1619,7 @@ static void hostapd_bss_deinit(struct hostapd_data *hapd) wpa_printf(MSG_DEBUG, "%s: deinit bss %s", __func__, hapd->conf->iface); hostapd_bss_deinit_no_free(hapd); + wpa_msg(hapd->msg_ctx, MSG_INFO, AP_EVENT_DISABLED); hostapd_cleanup(hapd); } @@ -1631,6 +1632,8 @@ void hostapd_interface_deinit(struct hostapd_iface *iface) if (iface == NULL) return; + hostapd_set_state(iface, HAPD_IFACE_DISABLED); + #ifdef CONFIG_IEEE80211N #ifdef NEED_AP_MLME hostapd_stop_setup_timers(iface);