aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJouni Malinen <jouni.malinen@atheros.com>2011-02-10 20:31:32 (GMT)
committerJouni Malinen <j@w1.fi>2011-02-10 20:31:32 (GMT)
commit6603a966027eb87b57f67bd7b18225c26cf46151 (patch)
treef1ece70489628a541f7c6cdd5fc80ec8206c67e4 /src
parente3e52e364ef86ed09d6caa5d0c327c88395f9968 (diff)
downloadhostap-6603a966027eb87b57f67bd7b18225c26cf46151.zip
hostap-6603a966027eb87b57f67bd7b18225c26cf46151.tar.gz
hostap-6603a966027eb87b57f67bd7b18225c26cf46151.tar.bz2
Flush STA entries in hostapd when clearing STAs from kernel
This is needed to keep kernel and hostapd in sync. In addition, the obsolete entry in hostapd prevented use of Deauthentication or Disassociation frame with reason code 6/7 mechanism to indicate to the STA that there is no association if the STA missed the broadcast Deauthentication frame for any reason.
Diffstat (limited to 'src')
-rw-r--r--src/ap/hostapd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ap/hostapd.c b/src/ap/hostapd.c
index 343c388..ae960b2 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;
}