Skip to content

Commit

Permalink
fix(wpa_supplicant): Compile error when CONFIG_SAE is disabled
Browse files Browse the repository at this point in the history
Closes #13553
  • Loading branch information
Shreyas0-7 committed Apr 11, 2024
1 parent 33c6315 commit 9004c42
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 @@ -325,9 +325,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 @@ -350,9 +353,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 9004c42

Please sign in to comment.