Merge branch 'bugfix/fix_several_wifi_bugs_v3.0' into 'release/v3.0'

esp32: update wifi lib to fix several WiFi bugs (backport v3.0)

See merge request idf/esp-idf!3097
This commit is contained in:
Jiang Jiang Jian 2018-08-27 14:24:11 +08:00
commit d1c6eb9574
2 changed files with 9 additions and 2 deletions

View file

@ -290,6 +290,12 @@ esp_err_t esp_wifi_restore(void);
* *
* @attention 1. This API only impact WIFI_MODE_STA or WIFI_MODE_APSTA mode * @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 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.
* 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
* scan will not work. This is especially true when the AP doesn't exist, and you still try reconnection after ESP32 received disconnect
* event with the reason code WIFI_REASON_NO_AP_FOUND.
* *
* @return * @return
* - ESP_OK: succeed * - ESP_OK: succeed
@ -353,6 +359,7 @@ esp_err_t esp_wifi_deauth_sta(uint16_t aid);
* - ESP_ERR_WIFI_NOT_INIT: WiFi is not initialized by esp_wifi_init * - ESP_ERR_WIFI_NOT_INIT: WiFi is not initialized by esp_wifi_init
* - ESP_ERR_WIFI_NOT_STARTED: WiFi was not started by esp_wifi_start * - ESP_ERR_WIFI_NOT_STARTED: WiFi was not started by esp_wifi_start
* - ESP_ERR_WIFI_TIMEOUT: blocking scan is timeout * - ESP_ERR_WIFI_TIMEOUT: blocking scan is timeout
* - ESP_ERR_WIFI_STATE: wifi still connecting when invoke esp_wifi_scan_start
* - others: refer to error code in esp_err.h * - others: refer to error code in esp_err.h
*/ */
esp_err_t esp_wifi_scan_start(const wifi_scan_config_t *config, bool block); esp_err_t esp_wifi_scan_start(const wifi_scan_config_t *config, bool block);

@ -1 +1 @@
Subproject commit 9596ea555b70facf4135983ed72ecb7c3377a946 Subproject commit c7a828b05fc5dcc43c5dd3a1a6e3d6e356dd2086