power save: fix bcn_timeout and disconnect with error code 201, m f probe req l=0 issue

This commit is contained in:
Li Shuai
2023-06-06 15:14:25 +08:00
parent 84a680b057
commit 19809bdebf
3 changed files with 20 additions and 7 deletions

View File

@@ -251,7 +251,7 @@ void esp_phy_enable(void)
#if SOC_PM_SUPPORT_PMU_MODEM_STATE && CONFIG_ESP_WIFI_ENHANCED_LIGHT_SLEEP
extern bool pm_mac_modem_rf_already_enabled(void);
if (!pm_mac_modem_rf_already_enabled()) {
if (sleep_modem_wifi_modem_state_enabled()) {
if (sleep_modem_wifi_modem_state_enabled() && sleep_modem_wifi_modem_link_done()) {
sleep_modem_wifi_do_phy_retention(true);
} else {
phy_wakeup_init();