Skip to content

Commit

Permalink
Merge branch 'bugfix/coex_ble_scan_rate_v5.0' into 'release/v5.0'
Browse files Browse the repository at this point in the history
fix(coex): Fix esp32 ble scan not restart when wifi start stop

See merge request espressif/esp-idf!27601
  • Loading branch information
jack0c committed Jan 11, 2024
2 parents 3af1b71 + 11f4f92 commit 50de63e
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
26 changes: 26 additions & 0 deletions components/esp_wifi/include/esp_wifi.h
Expand Up @@ -1286,6 +1286,32 @@ esp_err_t esp_wifi_config_11b_rate(wifi_interface_t ifx, bool disable);
*/
esp_err_t esp_wifi_connectionless_module_set_wake_interval(uint16_t wake_interval);

/**
* @brief Request extra reference of Wi-Fi radio.
* Wi-Fi keep active state(RF opened) to be able to receive packets.
*
* @attention Please pair the use of `esp_wifi_force_wakeup_acquire` with `esp_wifi_force_wakeup_release`.
*
* @return
* - 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_t esp_wifi_force_wakeup_acquire(void);

/**
* @brief Release extra reference of Wi-Fi radio.
* Wi-Fi go to sleep state(RF closed) if no more use of radio.
*
* @attention Please pair the use of `esp_wifi_force_wakeup_acquire` with `esp_wifi_force_wakeup_release`.
*
* @return
* - 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_t esp_wifi_force_wakeup_release(void);

/**
* @brief configure country
*
Expand Down

0 comments on commit 50de63e

Please sign in to comment.