From: Jouni Malinen Date: Thu, 18 Apr 2019 15:17:07 +0000 (+0300) Subject: WPA: Stop WPA statement on STA disassociation X-Git-Tag: hostap_2_8~18 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f006c13c147dda1ab8d3943f7c6dcc8a7f7fd46d;p=thirdparty%2Fhostap.git 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 --- diff --git a/src/ap/sta_info.c b/src/ap/sta_info.c index 71f9f21da..4f9eae847 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;