Merge branch 'bugfix/ft_enable_flag_set_check_v6.0' into 'release/v6.0'

fix(wifi) : Add ft enabled check for ft sae and added a separate check if AP...

See merge request espressif/esp-idf!46190
This commit is contained in:
Jiang Jiang Jian
2026-03-03 16:00:58 +08:00
2 changed files with 10 additions and 1 deletions
@@ -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) {