mirror of
https://github.com/espressif/esp-idf.git
synced 2025-07-30 18:57:19 +02:00
Merge branch 'fix/clear_cur_pmksa_v5.0' into 'release/v5.0'
Clear current pmksa before generating RSN IE (Backport v5.0) See merge request espressif/esp-idf!21690
This commit is contained in:
Submodule components/esp_wifi/lib updated: cb98c5d42b...64f2768084
@ -2458,6 +2458,7 @@ int wpa_set_bss(char *macddr, char * bssid, u8 pairwise_cipher, u8 group_cipher,
|
|||||||
memcpy(sm->bssid, bssid, ETH_ALEN);
|
memcpy(sm->bssid, bssid, ETH_ALEN);
|
||||||
sm->ap_notify_completed_rsne = esp_wifi_sta_is_ap_notify_completed_rsne_internal();
|
sm->ap_notify_completed_rsne = esp_wifi_sta_is_ap_notify_completed_rsne_internal();
|
||||||
sm->use_ext_key_id = (sm->proto == WPA_PROTO_WPA);
|
sm->use_ext_key_id = (sm->proto == WPA_PROTO_WPA);
|
||||||
|
pmksa_cache_clear_current(sm);
|
||||||
|
|
||||||
if (sm->key_mgmt == WPA_KEY_MGMT_SAE ||
|
if (sm->key_mgmt == WPA_KEY_MGMT_SAE ||
|
||||||
sm->key_mgmt == WPA_KEY_MGMT_OWE ||
|
sm->key_mgmt == WPA_KEY_MGMT_OWE ||
|
||||||
|
Reference in New Issue
Block a user