From 2a5cf2c3e05137299370734f4693c859bb813b6d Mon Sep 17 00:00:00 2001 From: ninh Date: Mon, 29 Mar 2021 14:08:24 +0800 Subject: [PATCH] esp_wifi: close tsens when close phy (backport v4.3) --- components/esp_wifi/include/phy.h | 2 +- components/esp_wifi/lib | 2 +- components/esp_wifi/src/phy_init.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/components/esp_wifi/include/phy.h b/components/esp_wifi/include/phy.h index 6100455c11..c0eadbf2ba 100644 --- a/components/esp_wifi/include/phy.h +++ b/components/esp_wifi/include/phy.h @@ -69,7 +69,7 @@ void phy_wakeup_init(void); */ void phy_close_rf(void); -#if CONFIG_IDF_TARGET_ESP32C3 +#if CONFIG_IDF_TARGET_ESP32C3 || CONFIG_IDF_TARGET_ESP32S2 /** * @brief Disable PHY temperature sensor. */ diff --git a/components/esp_wifi/lib b/components/esp_wifi/lib index 91bb607df5..276c3a195f 160000 --- a/components/esp_wifi/lib +++ b/components/esp_wifi/lib @@ -1 +1 @@ -Subproject commit 91bb607df544fb5499a7ae21ba5c32c5d731ea01 +Subproject commit 276c3a195fe2dde58fffd6bdb5e75c937ed0c049 diff --git a/components/esp_wifi/src/phy_init.c b/components/esp_wifi/src/phy_init.c index df9a94bbfc..88454cb0fe 100644 --- a/components/esp_wifi/src/phy_init.c +++ b/components/esp_wifi/src/phy_init.c @@ -265,7 +265,7 @@ void esp_phy_disable(void) phy_digital_regs_store(); // Disable PHY and RF. phy_close_rf(); -#if CONFIG_IDF_TARGET_ESP32C3 +#if CONFIG_IDF_TARGET_ESP32C3 || CONFIG_IDF_TARGET_ESP32S2 // Disable PHY temperature sensor phy_xpd_tsens(); #endif