fix(wifi): Add bugfix to avoid RSNXE and KDE mismatch during 4-way-handshake

This commit is contained in:
Sarvesh Bodakhe 2024-04-02 02:01:33 +05:30
parent 280ec09b03
commit 3ba5cb9687
2 changed files with 2 additions and 0 deletions

View File

@ -332,6 +332,7 @@ static bool hostap_sta_join(void **sta, u8 *bssid, u8 *wpa_ie, u8 wpa_ie_len, u8
#endif /* CONFIG_SAE */ #endif /* CONFIG_SAE */
if (!esp_wifi_ap_is_sta_sae_reauth_node(bssid)) { if (!esp_wifi_ap_is_sta_sae_reauth_node(bssid)) {
ap_free_sta(hapd, old_sta); ap_free_sta(hapd, old_sta);
*sta = NULL;
} }
#ifdef CONFIG_SAE #ifdef CONFIG_SAE
else if (old_sta && old_sta->lock) { else if (old_sta && old_sta->lock) {

View File

@ -2347,6 +2347,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_get_config_sae_pwe_h2e_internal(WIFI_IF_STA);
struct rsn_pmksa_cache_entry *pmksa = NULL; struct rsn_pmksa_cache_entry *pmksa = NULL;
if (use_pmk_cache) { if (use_pmk_cache) {