Merge branch 'bugfix/set_sae_pmk_len_v5.1' into 'release/v5.1'
Some checks failed
docker / docker (push) Has been cancelled

fix(esp_wifi): Set PMK len after SAE exchange

See merge request espressif/esp-idf!33853
This commit is contained in:
Jiang Jiang Jian 2024-09-27 13:48:35 +08:00
commit 59274ae0d6

View File

@ -1570,6 +1570,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);
#ifdef CONFIG_SAE_PK