From bfdccbd7cb020b92952e8a48bfcb9389570ecaaa Mon Sep 17 00:00:00 2001 From: muhaidong Date: Tue, 2 Aug 2022 11:45:21 +0800 Subject: [PATCH] esp_wifi: fix deinit return wrong value 1. Deinit does not return ESP_ERR_WIFI_NOT_INIT if the wifi driver is no longer initialized. 2. Fix get wrong channel value use esp_wifi_get_config. 3. Fix bug of missing unlock when wifi stop. 4. Fix annotation error of api esp_wifi_connect. --- components/esp_wifi/include/esp_wifi.h | 2 +- components/esp_wifi/lib | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/components/esp_wifi/include/esp_wifi.h b/components/esp_wifi/include/esp_wifi.h index 337458fb7d..ea0f2563ee 100644 --- a/components/esp_wifi/include/esp_wifi.h +++ b/components/esp_wifi/include/esp_wifi.h @@ -347,7 +347,7 @@ esp_err_t esp_wifi_restore(void); * * @attention 1. This API only impact WIFI_MODE_STA or WIFI_MODE_APSTA mode * @attention 2. If the ESP32 is connected to an AP, call esp_wifi_disconnect to disconnect. - * @attention 3. The scanning triggered by esp_wifi_start_scan() will not be effective until connection between ESP32 and the AP is established. + * @attention 3. The scanning triggered by esp_wifi_scan_start() will not be effective until connection between ESP32 and the AP is established. * If ESP32 is scanning and connecting at the same time, ESP32 will abort scanning and return a warning message and error * number ESP_ERR_WIFI_STATE. * If you want to do reconnection after ESP32 received disconnect event, remember to add the maximum retry time, otherwise the called diff --git a/components/esp_wifi/lib b/components/esp_wifi/lib index c4cc374509..0128dc2f91 160000 --- a/components/esp_wifi/lib +++ b/components/esp_wifi/lib @@ -1 +1 @@ -Subproject commit c4cc374509d4f5b14ec3b7b84ec22ef659072b36 +Subproject commit 0128dc2f91ecc9416f12f6f9afbbef175cf484ba