forked from espressif/esp-idf
fix(wifi): Add bugfix to avoid RSNXE and KDE mismatch during 4-way-handshake
This commit is contained in:
@@ -313,6 +313,7 @@ static bool hostap_sta_join(void **sta, u8 *bssid, u8 *wpa_ie, u8 wpa_ie_len, bo
|
|||||||
|
|
||||||
if (*sta) {
|
if (*sta) {
|
||||||
ap_free_sta(hapd, *sta);
|
ap_free_sta(hapd, *sta);
|
||||||
|
*sta = NULL;
|
||||||
}
|
}
|
||||||
sta_info = ap_sta_add(hapd, bssid);
|
sta_info = ap_sta_add(hapd, bssid);
|
||||||
if (!sta_info) {
|
if (!sta_info) {
|
||||||
|
@@ -2481,6 +2481,7 @@ int wpa_set_bss(char *macddr, char * bssid, u8 pairwise_cipher, u8 group_cipher,
|
|||||||
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);
|
pmksa_cache_clear_current(sm);
|
||||||
|
sm->sae_pwe = esp_wifi_sta_get_config_sae_pwe_h2e_internal();
|
||||||
|
|
||||||
struct rsn_pmksa_cache_entry *pmksa = NULL;
|
struct rsn_pmksa_cache_entry *pmksa = NULL;
|
||||||
if (use_pmk_cache) {
|
if (use_pmk_cache) {
|
||||||
|
Reference in New Issue
Block a user