esp_wifi: fix nolightsleep after wifi init (backport to v4.3)

This commit is contained in:
ninh
2021-04-21 15:17:16 +08:00
parent 0ddf00c6e1
commit 6dc067dda7
4 changed files with 17 additions and 1 deletions

View File

@@ -1172,6 +1172,15 @@ esp_err_t esp_sleep_enable_wifi_wakeup(void)
#endif
}
esp_err_t esp_sleep_disable_wifi_wakeup(void)
{
#if SOC_PM_SUPPORT_WIFI_WAKEUP
s_config.wakeup_triggers &= (~RTC_WIFI_TRIG_EN);
return ESP_OK;
#else
return ESP_ERR_NOT_SUPPORTED;
#endif
}
esp_sleep_wakeup_cause_t esp_sleep_get_wakeup_cause(void)
{