diff --git a/components/esp_wifi/linker.lf b/components/esp_wifi/linker.lf index b0b239d925..660fc27a4b 100644 --- a/components/esp_wifi/linker.lf +++ b/components/esp_wifi/linker.lf @@ -147,8 +147,9 @@ entries: if ESP_WIFI_SLP_IRAM_OPT =y: esp_adapter:wifi_clock_enable_wrapper (noflash) esp_adapter:wifi_clock_disable_wrapper (noflash) - wifi_init:wifi_apb80m_request (noflash) - wifi_init:wifi_apb80m_release (noflash) + if PM_ENABLE = y: + wifi_init:wifi_apb80m_request (noflash) + wifi_init:wifi_apb80m_release (noflash) [mapping:esp_timer_wifi_pm] archive: libesp_timer.a