Fix compilation error for WPA enterprise in ESP-IDF (#2815)

This commit is contained in:
Carlos Garcia Saura 2021-11-28 20:06:53 +01:00 committed by GitHub
parent 2b50406856
commit 7a5c3aa7ed
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -375,8 +375,7 @@ bool WiFiComponent::wifi_sta_connect_(const WiFiAP &ap) {
ESP_LOGV(TAG, "esp_wifi_sta_wpa2_ent_set_password failed! %d", err);
}
}
esp_wpa2_config_t wpa2_config = WPA2_CONFIG_INIT_DEFAULT();
err = esp_wifi_sta_wpa2_ent_enable(&wpa2_config);
err = esp_wifi_sta_wpa2_ent_enable();
if (err != ESP_OK) {
ESP_LOGV(TAG, "esp_wifi_sta_wpa2_ent_enable failed! %d", err);
}