From 002b273aa3bcaa13e36b54b05179d976ea693436 Mon Sep 17 00:00:00 2001 From: zhangyanjiao Date: Fri, 28 Jan 2022 14:49:50 +0800 Subject: [PATCH] call pm_wakeup_init in esp_phy_enable() on esp32 --- components/esp_wifi/include/phy.h | 2 -- components/esp_wifi/src/phy_init.c | 4 ---- 2 files changed, 6 deletions(-) diff --git a/components/esp_wifi/include/phy.h b/components/esp_wifi/include/phy.h index b101200411..c1e4639369 100644 --- a/components/esp_wifi/include/phy.h +++ b/components/esp_wifi/include/phy.h @@ -59,12 +59,10 @@ void phy_set_wifi_mode_only(bool wifi_only); */ void coex_bt_high_prio(void); -#if CONFIG_IDF_TARGET_ESP32S2BETA /** * @brief Open PHY and RF. */ void phy_wakeup_init(void); -#endif /** * @brief Shutdown PHY and RF. diff --git a/components/esp_wifi/src/phy_init.c b/components/esp_wifi/src/phy_init.c index ab08848e0e..8b8052a313 100644 --- a/components/esp_wifi/src/phy_init.c +++ b/components/esp_wifi/src/phy_init.c @@ -141,11 +141,7 @@ void esp_phy_enable(void) s_is_phy_calibrated = true; } else { -#if CONFIG_IDF_TARGET_ESP32S2BETA phy_wakeup_init(); -#elif CONFIG_IDF_TARGET_ESP32 - register_chipv7_phy(NULL, NULL, PHY_RF_CAL_NONE); -#endif } #if CONFIG_IDF_TARGET_ESP32