mirror of
https://github.com/espressif/esp-idf.git
synced 2025-07-30 18:57:19 +02:00
esp_wifi: store PHY digital registers before disabling PHY and load
them after enabling PHY
This commit is contained in:
@ -230,6 +230,7 @@ void esp_phy_enable(void)
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
phy_wakeup_init();
|
phy_wakeup_init();
|
||||||
|
phy_digital_regs_load();
|
||||||
}
|
}
|
||||||
|
|
||||||
#if CONFIG_IDF_TARGET_ESP32
|
#if CONFIG_IDF_TARGET_ESP32
|
||||||
@ -247,6 +248,7 @@ void esp_phy_disable(void)
|
|||||||
|
|
||||||
s_phy_access_ref--;
|
s_phy_access_ref--;
|
||||||
if (s_phy_access_ref == 0) {
|
if (s_phy_access_ref == 0) {
|
||||||
|
phy_digital_regs_store();
|
||||||
// Disable PHY and RF.
|
// Disable PHY and RF.
|
||||||
phy_close_rf();
|
phy_close_rf();
|
||||||
#if CONFIG_IDF_TARGET_ESP32
|
#if CONFIG_IDF_TARGET_ESP32
|
||||||
|
Reference in New Issue
Block a user