Wi-Fi
Wi-Fi Enterprise
Phase 2 Authentication
esp_eap_client_set_phase2_method() sets the phase 2 method for both EAP-TTLS and EAP-PEAP, including tunneled EAP-GTC (ESP_EAP_PHASE2_GTC).
esp_eap_client_set_phase2_method() returns ESP_ERR_INVALID_ARG when type is not a value of esp_eap_phase2_types. On devices with on-chip Wi-Fi, esp_eap_client_set_ttls_phase2_method() forwards to that function and returns the same error. Previously, an out-of-range value was stored as auth=MSCHAPV2 and the call returned ESP_OK.
Removed Functions
esp_wpa2.h was already removed. The wrapper implementations in esp_wpa2_api_port.c are removed as well, so these symbols are no longer in libwpa_supplicant.a. Code that declared the prototypes itself fails at link time. Call the replacement from esp_eap_client.h:
esp_wifi_sta_wpa2_ent_enable(): useesp_wifi_sta_enterprise_enable()esp_wifi_sta_wpa2_ent_disable(): useesp_wifi_sta_enterprise_disable()esp_wifi_sta_wpa2_ent_set_identity()/esp_wifi_sta_wpa2_ent_clear_identity(): useesp_eap_client_set_identity()/esp_eap_client_clear_identity()esp_wifi_sta_wpa2_ent_set_username()/esp_wifi_sta_wpa2_ent_clear_username(): useesp_eap_client_set_username()/esp_eap_client_clear_username()esp_wifi_sta_wpa2_ent_set_password()/esp_wifi_sta_wpa2_ent_clear_password(): useesp_eap_client_set_password()/esp_eap_client_clear_password()esp_wifi_sta_wpa2_ent_set_new_password()/esp_wifi_sta_wpa2_ent_clear_new_password(): useesp_eap_client_set_new_password()/esp_eap_client_clear_new_password()esp_wifi_sta_wpa2_ent_set_ca_cert()/esp_wifi_sta_wpa2_ent_clear_ca_cert(): useesp_eap_client_set_ca_cert()/esp_eap_client_clear_ca_cert()esp_wifi_sta_wpa2_ent_set_cert_key()/esp_wifi_sta_wpa2_ent_clear_cert_key(): useesp_eap_client_set_certificate_and_key()/esp_eap_client_clear_certificate_and_key()esp_wifi_sta_wpa2_ent_set_disable_time_check()/esp_wifi_sta_wpa2_ent_get_disable_time_check(): useesp_eap_client_set_disable_time_check()/esp_eap_client_get_disable_time_check()esp_wifi_sta_wpa2_ent_set_ttls_phase2_method(): useesp_eap_client_set_phase2_method()esp_wifi_sta_wpa2_set_suiteb_192bit_certification(): useesp_eap_client_set_suiteb_192bit_certification()esp_wifi_sta_wpa2_ent_set_pac_file(): useesp_eap_client_set_pac_file()esp_wifi_sta_wpa2_ent_set_fast_phase1_params(): useesp_eap_client_set_fast_params()esp_wifi_sta_wpa2_use_default_cert_bundle(): useesp_eap_client_use_default_cert_bundle()