From ccfbecd25f7defac8f37cdcbc0f68a3e0c8143c0 Mon Sep 17 00:00:00 2001 From: Deng Xin Date: Mon, 30 Oct 2017 21:29:32 +0800 Subject: [PATCH] Wifi: bugfix of get wrong ap information in all channel scan fix the issue get wrong ap information in all channel scan --- components/esp32/include/esp_wifi.h | 5 ++++- components/esp32/lib | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/components/esp32/include/esp_wifi.h b/components/esp32/include/esp_wifi.h index 0ae0644eaf..e5ba38d7ea 100755 --- a/components/esp32/include/esp_wifi.h +++ b/components/esp32/include/esp_wifi.h @@ -91,6 +91,8 @@ extern "C" { #define ESP_ERR_WIFI_PASSWORD (ESP_ERR_WIFI_BASE + 11) /*!< Password is invalid */ #define ESP_ERR_WIFI_TIMEOUT (ESP_ERR_WIFI_BASE + 12) /*!< Timeout error */ #define ESP_ERR_WIFI_WAKE_FAIL (ESP_ERR_WIFI_BASE + 13) /*!< WiFi is in sleep state(RF closed) and wakeup fail */ +#define ESP_ERR_WIFI_WOULD_BLOCK (ESP_ERR_WIFI_BASE + 14) /*!< The caller would block */ +#define ESP_ERR_WIFI_NOT_CONNECT (ESP_ERR_WIFI_BASE + 15) /*!< Station still in disconnect status */ /** * @brief WiFi stack configuration parameters passed to esp_wifi_init call. @@ -392,7 +394,8 @@ esp_err_t esp_wifi_scan_get_ap_records(uint16_t *number, wifi_ap_record_t *ap_re * * @return * - ESP_OK: succeed - * - others: fail + * - ESP_ERR_WIFI_CONN: The station interface don't initialized + * - ESP_ERR_WIFI_NOT_CONNECT: The station is in disconnect status */ esp_err_t esp_wifi_sta_get_ap_info(wifi_ap_record_t *ap_info); diff --git a/components/esp32/lib b/components/esp32/lib index a0d77be618..b0ee6e6976 160000 --- a/components/esp32/lib +++ b/components/esp32/lib @@ -1 +1 @@ -Subproject commit a0d77be618bc933415eb0ffd7c2a0610ef3336d6 +Subproject commit b0ee6e697658a0f3756e44e375fbcd646604c6d5