diff --git a/src/ap/hostapd.c b/src/ap/hostapd.c index 343c38873..ae960b24b 100644 --- a/src/ap/hostapd.c +++ b/src/ap/hostapd.c @@ -341,6 +341,7 @@ static int hostapd_flush_old_stations(struct hostapd_data *hapd) wpa_printf(MSG_DEBUG, "Deauthenticate all stations"); os_memset(addr, 0xff, ETH_ALEN); hostapd_drv_sta_deauth(hapd, addr, WLAN_REASON_PREV_AUTH_NOT_VALID); + hostapd_free_stas(hapd); return ret; }