aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJouni Malinen <jouni@codeaurora.org>2019-04-18 15:17:07 (GMT)
committerJouni Malinen <j@w1.fi>2019-04-18 22:12:29 (GMT)
commitf006c13c147dda1ab8d3943f7c6dcc8a7f7fd46d (patch)
treee807fc0ab7fc1250f9702e93094a64d57c68041a
parentd178ab0d5783ca8ad1a4048c16178b085a3a9f1b (diff)
downloadhostap-f006c13c147dda1ab8d3943f7c6dcc8a7f7fd46d.zip
hostap-f006c13c147dda1ab8d3943f7c6dcc8a7f7fd46d.tar.gz
hostap-f006c13c147dda1ab8d3943f7c6dcc8a7f7fd46d.tar.bz2
WPA: Stop WPA statement on STA disassociation
This is needed to avoid leaving some timers (e.g., for PTK rekeying) running afrer a STA has disassociated. Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
-rw-r--r--src/ap/sta_info.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ap/sta_info.c b/src/ap/sta_info.c
index 71f9f21..4f9eae8 100644
--- a/src/ap/sta_info.c
+++ b/src/ap/sta_info.c
@@ -812,6 +812,8 @@ void ap_sta_disassociate(struct hostapd_data *hapd, struct sta_info *sta,
ap_handle_timer, hapd, sta);
accounting_sta_stop(hapd, sta);
ieee802_1x_free_station(hapd, sta);
+ wpa_auth_sta_deinit(sta->wpa_sm);
+ sta->wpa_sm = NULL;
sta->disassoc_reason = reason;
sta->flags |= WLAN_STA_PENDING_DISASSOC_CB;