Skip to content

Commit

Permalink
Merge branch 'bugfix/config_sae_compile_error_v5.1' into 'release/v5.1'
Browse files Browse the repository at this point in the history
fix(wpa_supplicant): Compile error when CONFIG_SAE is disabled (v5.1)

See merge request espressif/esp-idf!30178
  • Loading branch information
jack0c committed Apr 11, 2024
2 parents 9abd010 + 2ac6e73 commit 35d5ea1
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions components/wpa_supplicant/esp_supplicant/src/esp_wpa_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -324,9 +324,12 @@ static bool hostap_sta_join(void **sta, u8 *bssid, u8 *wpa_ie, u8 wpa_ie_len,u8
}
return false;
}
#endif /* CONFIG_SAE */
if (!esp_wifi_ap_is_sta_sae_reauth_node(bssid)) {
ap_free_sta(hapd, old_sta);
} else if (old_sta && old_sta->lock) {
}
#ifdef CONFIG_SAE
else if (old_sta && old_sta->lock) {
sta_info = old_sta;
goto process_old_sta;
}
Expand All @@ -349,9 +352,10 @@ static bool hostap_sta_join(void **sta, u8 *bssid, u8 *wpa_ie, u8 wpa_ie_len,u8
}
return false;
}
#endif /* CONFIG_SAE */

process_old_sta:
#endif /* CONFIG_SAE */


#ifdef CONFIG_WPS_REGISTRAR
if (check_n_add_wps_sta(hapd, sta_info, wpa_ie, wpa_ie_len, pmf_enable, subtype) == 0) {
Expand Down

0 comments on commit 35d5ea1

Please sign in to comment.