mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
esp_wifi: store PHY digital registers before disabling PHY and load
them after enabling PHY
This commit is contained in:
parent
8920361ff3
commit
cf2093be03
@ -230,6 +230,7 @@ void esp_phy_enable(void)
|
||||
}
|
||||
else {
|
||||
phy_wakeup_init();
|
||||
phy_digital_regs_load();
|
||||
}
|
||||
|
||||
#if CONFIG_IDF_TARGET_ESP32
|
||||
@ -247,6 +248,7 @@ void esp_phy_disable(void)
|
||||
|
||||
s_phy_access_ref--;
|
||||
if (s_phy_access_ref == 0) {
|
||||
phy_digital_regs_store();
|
||||
// Disable PHY and RF.
|
||||
phy_close_rf();
|
||||
#if CONFIG_IDF_TARGET_ESP32
|
||||
|
Loading…
Reference in New Issue
Block a user