feat(modem): rename the sleep modem functions

This commit is contained in:
cjin
2025-07-04 17:52:47 +08:00
parent 62397932f9
commit 226f11da96
4 changed files with 43 additions and 43 deletions

View File

@@ -478,7 +478,7 @@ esp_err_t esp_wifi_init(const wifi_init_config_t *config)
esp_phy_modem_init();
#endif
#if CONFIG_ESP_WIFI_ENHANCED_LIGHT_SLEEP
if (sleep_modem_wifi_modem_state_enabled()) {
if (sleep_modem_phy_link_enabled()) {
esp_pm_register_skip_light_sleep_callback(sleep_modem_wifi_modem_state_skip_light_sleep);
esp_wifi_internal_modem_state_configure(true); /* require WiFi to enable automatically receives the beacon */
#if ESP_MODEM_RF_FLAG_UPDATE_CB_REQUIRED