]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
WPA: Stop WPA statement on STA disassociation
authorJouni Malinen <jouni@codeaurora.org>
Thu, 18 Apr 2019 15:17:07 +0000 (18:17 +0300)
committerJouni Malinen <j@w1.fi>
Thu, 18 Apr 2019 22:12:29 +0000 (01:12 +0300)
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>
src/ap/sta_info.c

index 71f9f21da82e176bf1104b2e7d933d13bc3a6452..4f9eae8477b63217dc9226b927419034ea9ee674 100644 (file)
@@ -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;