From 66006ac7c0b32aa91df6af0f83bc2adb10c6256e Mon Sep 17 00:00:00 2001 From: Junchi Chen Date: Fri, 26 Dec 2025 20:01:34 +0800 Subject: [PATCH] fix(wifi): return specific error in API BPv5.4 --- components/esp_wifi/include/esp_private/wifi.h | 6 ++++++ components/esp_wifi/include/esp_wifi.h | 2 ++ components/esp_wifi/lib | 2 +- 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/components/esp_wifi/include/esp_private/wifi.h b/components/esp_wifi/include/esp_private/wifi.h index 0ad8eea9cbe..98bdee071c8 100644 --- a/components/esp_wifi/include/esp_private/wifi.h +++ b/components/esp_wifi/include/esp_private/wifi.h @@ -499,6 +499,9 @@ esp_err_t esp_wifi_internal_get_config_channel(wifi_interface_t ifx, uint8_t *pr * * @return * - ESP_OK: succeed + * - ESP_ERR_INVALID_ARG : invalid argument + * - 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_internal_get_negotiated_channel(wifi_interface_t ifx, uint8_t aid, uint8_t *primary, uint8_t *second); @@ -510,6 +513,9 @@ esp_err_t esp_wifi_internal_get_negotiated_channel(wifi_interface_t ifx, uint8_t * * @return * - ESP_OK: succeed + * - ESP_ERR_INVALID_ARG : invalid argument + * - 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_internal_get_negotiated_bandwidth(wifi_interface_t ifx, uint8_t aid, uint8_t *bw); diff --git a/components/esp_wifi/include/esp_wifi.h b/components/esp_wifi/include/esp_wifi.h index 45fae361efd..93d4b75605c 100644 --- a/components/esp_wifi/include/esp_wifi.h +++ b/components/esp_wifi/include/esp_wifi.h @@ -1607,6 +1607,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); diff --git a/components/esp_wifi/lib b/components/esp_wifi/lib index 7bd1599468d..6c9aee28e3d 160000 --- a/components/esp_wifi/lib +++ b/components/esp_wifi/lib @@ -1 +1 @@ -Subproject commit 7bd1599468d0912b7773ba225a6ef05252633e88 +Subproject commit 6c9aee28e3d2dfadf7da4bd4baffc0575369f2ea