From 0c0d597f3ca24e3c277163fb3c0901d9640b33f1 Mon Sep 17 00:00:00 2001 From: Kapil Gupta Date: Thu, 26 Sep 2024 19:50:40 +0530 Subject: [PATCH] fix(esp_wifi): Set PMK after SAE exchange --- components/wpa_supplicant/src/common/sae.c | 1 + 1 file changed, 1 insertion(+) diff --git a/components/wpa_supplicant/src/common/sae.c b/components/wpa_supplicant/src/common/sae.c index 5932da795d..c18b409969 100644 --- a/components/wpa_supplicant/src/common/sae.c +++ b/components/wpa_supplicant/src/common/sae.c @@ -1594,6 +1594,7 @@ static int sae_derive_keys(struct sae_data *sae, const u8 *k) os_memcpy(sae->tmp->kck, keys, hash_len); sae->tmp->kck_len = hash_len; os_memcpy(sae->pmk, keys + hash_len, SAE_PMK_LEN); + sae->pmk_len = SAE_PMK_LEN; os_memcpy(sae->pmkid, val, SAE_PMKID_LEN); forced_memzero(keys, sizeof(keys)); wpa_hexdump_key(MSG_DEBUG, "SAE: KCK",