mirror of
https://github.com/espressif/esp-idf.git
synced 2025-12-06 00:38:10 +00:00
refactor(wifi): Add SAE PT config flag and optimize wifi bin size for sta mode
This commit is contained in:
@@ -147,7 +147,7 @@ static int hostapd_derive_psk(struct hostapd_ssid *ssid)
|
||||
|
||||
int hostapd_setup_sae_pt(struct hostapd_bss_config *conf)
|
||||
{
|
||||
#ifdef CONFIG_SAE
|
||||
#ifdef CONFIG_SAE_H2E
|
||||
struct hostapd_ssid *ssid = &conf->ssid;
|
||||
if ((conf->sae_pwe == SAE_PWE_HUNT_AND_PECK ||
|
||||
!wpa_key_mgmt_sae(conf->wpa_key_mgmt)))
|
||||
@@ -165,7 +165,7 @@ int hostapd_setup_sae_pt(struct hostapd_bss_config *conf)
|
||||
return -1;
|
||||
}
|
||||
|
||||
#endif /* CONFIG_SAE */
|
||||
#endif /* CONFIG_SAE_H2E */
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user