fix(esp_wifi): Fix locking in incorrect state when stop_scan is called after connect

This commit is contained in:
Shreyas Sheth
2025-04-26 15:59:23 +05:30
parent 25c1ad8178
commit c0657495b6
2 changed files with 2 additions and 1 deletions

View File

@@ -504,6 +504,7 @@ esp_err_t esp_wifi_scan_start(const wifi_scan_config_t *config, bool block);
* - ESP_OK: succeed
* - ESP_ERR_WIFI_NOT_INIT: WiFi is not initialized by esp_wifi_init
* - ESP_ERR_WIFI_NOT_STARTED: WiFi is not started by esp_wifi_start
* - ESP_ERR_WIFI_STATE: WiFi is still connecting when esp_wifi_scan_stop() is invoked.
*/
esp_err_t esp_wifi_scan_stop(void);