]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
PASN: Avoid clearing secure context for the PASN deauthentication event
authorVinay Gannevaram <quic_vganneva@quicinc.com>
Wed, 30 Nov 2022 19:40:33 +0000 (01:10 +0530)
committerJouni Malinen <j@w1.fi>
Thu, 15 Dec 2022 16:30:04 +0000 (18:30 +0200)
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 <quic_vganneva@quicinc.com>
wpa_supplicant/pasn_supplicant.c

index fbef7f2dff98fd42834863a131a4a918f886c66d..12c2fccb16c4189c3174df665ed3e07dd9e0333d 100644 (file)
@@ -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);
        }
 }