From: Ilan Peer Date: Mon, 15 Mar 2021 12:57:10 +0000 (+0200) Subject: AP: Handle deauthentication frame from PASN station X-Git-Tag: hostap_2_10~387 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1ca1c3cfeec32dda594850caa94b2a068e0ac1aa;p=thirdparty%2Fhostap.git AP: Handle deauthentication frame from PASN station When a Deauthentication frame is received, clear the corresponding PTKSA cache entry for the given station, to invalidate previous PTK information. Signed-off-by: Ilan Peer --- diff --git a/src/ap/ieee802_11.c b/src/ap/ieee802_11.c index 7c3e4c8bd..72d102f44 100644 --- a/src/ap/ieee802_11.c +++ b/src/ap/ieee802_11.c @@ -5837,6 +5837,9 @@ static void handle_deauth(struct hostapd_data *hapd, " reason_code=%d", MAC2STR(mgmt->sa), le_to_host16(mgmt->u.deauth.reason_code)); + /* Clear the PTKSA cache entries for PASN */ + ptksa_cache_flush(hapd->ptksa, mgmt->sa, WPA_CIPHER_NONE); + sta = ap_get_sta(hapd, mgmt->sa); if (sta == NULL) { wpa_msg(hapd->msg_ctx, MSG_DEBUG, "Station " MACSTR " trying "