Function esp_idf_hal::sys::esp_wifi_sta_wpa2_ent_set_new_password
source ยท pub unsafe extern "C" fn esp_wifi_sta_wpa2_ent_set_new_password(
new_password: *const u8,
len: i32,
) -> i32
Expand description
@brief Set new password for MSCHAPv2 method..
@deprecated This function is deprecated and will be removed in the future.
Please use esp_eap_client_set_new_password
instead.
@attention 1. The new password is used to substitute the old password when eap-mschapv2 failure request message with error code ERROR_PASSWD_EXPIRED is received.
@param new_password: point to address where stores the password; @param len: length of password
@return
- ESP_OK: succeed
- ESP_ERR_INVALID_ARG: fail(len <= 0)
- ESP_ERR_NO_MEM: fail(internal memory malloc fail)