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 <ilan.peer@intel.com>
This commit is contained in:
parent
166e357e63
commit
1ca1c3cfee
1 changed files with 3 additions and 0 deletions
|
@ -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 "
|
||||
|
|
Loading…
Reference in a new issue