fix(wifi): Support ESP32 PHY enabled not enter WiFi RX state by default

This commit is contained in:
alanmaxwell 2023-09-11 11:31:52 +08:00 committed by zhangwenxu
parent 3cc06e472b
commit 99ac807418

View File

@ -550,10 +550,12 @@ static void IRAM_ATTR esp_empty_wrapper(void)
static void esp_phy_enable_wrapper(void)
{
esp_phy_enable(PHY_MODEM_WIFI);
phy_wifi_enable_set(1);
}
static void esp_phy_disable_wrapper(void)
{
phy_wifi_enable_set(0);
esp_phy_disable(PHY_MODEM_WIFI);
}