esp_wifi: Make enterprise support configurable to save binary size.

This commit is contained in:
aditi_lonkar
2023-06-16 13:19:50 +05:30
parent fc4fcb5519
commit c88e7106ec
5 changed files with 20 additions and 0 deletions

View File

@@ -184,9 +184,11 @@ bool wpa_deattach(void)
{
struct wpa_sm *sm = &gWpaSm;
esp_wpa3_free_sae_data();
#ifdef CONFIG_ESP_WIFI_ENTERPRISE_SUPPORT
if (sm->wpa_sm_wpa2_ent_disable) {
sm->wpa_sm_wpa2_ent_disable();
}
#endif
if (sm->wpa_sm_wps_disable) {
sm->wpa_sm_wps_disable();
}