From: Vinay Gannevaram Date: Wed, 30 Nov 2022 19:40:33 +0000 (+0530) Subject: PASN: Avoid clearing secure context for the PASN deauthentication event X-Git-Tag: hostap_2_11~1398 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a1702670764f64d699a6134e3f695d9c481e69a4;p=thirdparty%2Fhostap.git PASN: Avoid clearing secure context for the PASN deauthentication event PASN deauthentication event is sent by the underlying driver to delete the keys in wpa_supplicant PTKSA cache. So don't send clear secure context command to the driver again as it is already aware of it. Fixes: 74d894a2 ("PASN: Offload handshake for multiple peers from the driver") Signed-off-by: Vinay Gannevaram --- diff --git a/wpa_supplicant/pasn_supplicant.c b/wpa_supplicant/pasn_supplicant.c index fbef7f2df..12c2fccb1 100644 --- a/wpa_supplicant/pasn_supplicant.c +++ b/wpa_supplicant/pasn_supplicant.c @@ -420,8 +420,8 @@ static void wpas_pasn_delete_peers(struct wpa_supplicant *wpa_s, for (i = 0; i < pasn_params->num_peers; i++) { peer = &pasn_params->peer[i]; - wpas_pasn_deauthenticate(wpa_s, peer->own_addr, - peer->peer_addr); + ptksa_cache_flush(wpa_s->ptksa, peer->peer_addr, + WPA_CIPHER_NONE); } }