fix(wifi): return specific error in API

This commit is contained in:
Junchi Chen
2026-03-16 12:06:04 +08:00
parent e6588c64dd
commit 3703e15a94
4 changed files with 11 additions and 1 deletions
@@ -1589,6 +1589,8 @@ esp_err_t esp_wifi_sta_get_aid(uint16_t *aid);
*
* @return
* - ESP_OK: succeed
* - ESP_ERR_WIFI_NOT_STARTED: WiFi is not started by esp_wifi_start
* - ESP_ERR_WIFI_NOT_CONNECT: No connection between STA and AP
*/
esp_err_t esp_wifi_sta_get_negotiated_phymode(wifi_phy_mode_t *phymode);