mirror of
https://github.com/espressif/esp-idf.git
synced 2026-04-27 19:13:21 +00:00
fix(wifi) : Add ft enabled check for ft sae and added a separate check if AP doesnt include PMKID in 1/4 handshake message
- Add a separate condition if AP doesnt include PMKID in FT-SAE for 1/4 handshake message
This commit is contained in:
@@ -412,6 +412,15 @@ static int wpa_supplicant_get_pmk(struct wpa_sm *sm,
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef CONFIG_WPA3_SAE
|
||||
#ifdef CONFIG_IEEE80211R
|
||||
if (sm && sm->pmksa && (sm->key_mgmt == WPA_KEY_MGMT_FT_SAE)) {
|
||||
os_memcpy(sm->xxkey, sm->pmk, sm->pmk_len);
|
||||
sm->xxkey_len = sm->pmk_len;
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
||||
if (pmkid && sm->cur_pmksa &&
|
||||
os_memcmp_const(pmkid, sm->cur_pmksa->pmkid, PMKID_LEN) == 0) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user