Skip to content

Commit 22b8540

Browse files
authored
fix compile when SAE is not used
1 parent 5c5a45e commit 22b8540

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

components/wpa_supplicant/esp_supplicant/src/esp_hostap.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,9 @@ void *hostap_init(void)
161161
os_memcpy(hapd->conf->ssid.wpa_passphrase, esp_wifi_ap_get_prof_password_internal(), strlen((char *)esp_wifi_ap_get_prof_password_internal()));
162162
hapd->conf->ssid.wpa_passphrase[WIFI_PASSWORD_LEN_MAX - 1] = '\0';
163163
hapd->conf->max_num_sta = esp_wifi_ap_get_max_sta_conn();
164+
#ifdef CONFIG_SAE
164165
auth_conf->transition_disable = esp_wifi_ap_get_transition_disable_internal();
166+
#endif /* CONFIG_SAE */
165167
if (authmode != WIFI_AUTH_WPA3_PSK &&
166168
authmode != WIFI_AUTH_WPA2_WPA3_PSK && auth_conf->transition_disable) {
167169
auth_conf->transition_disable = 0;

0 commit comments

Comments
 (0)