From 484f4cce312f24869bf116092fe3a62c568032c7 Mon Sep 17 00:00:00 2001 From: liuning Date: Mon, 31 Jul 2023 21:15:13 +0800 Subject: [PATCH] fix(esp_wifi): fix no mac retention at wifi start --- components/esp_rom/esp32c2/ld/esp32c2.rom.ld | 8 ++++---- components/esp_wifi/lib | 2 +- components/esp_wifi/src/wifi_init.c | 1 + 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/components/esp_rom/esp32c2/ld/esp32c2.rom.ld b/components/esp_rom/esp32c2/ld/esp32c2.rom.ld index 9f8495e532..a7d6347479 100644 --- a/components/esp_rom/esp32c2/ld/esp32c2.rom.ld +++ b/components/esp_rom/esp32c2/ld/esp32c2.rom.ld @@ -1,5 +1,5 @@ /* - * SPDX-FileCopyrightText: 2021-2022 Espressif Systems (Shanghai) CO LTD + * SPDX-FileCopyrightText: 2021-2023 Espressif Systems (Shanghai) CO LTD * * SPDX-License-Identifier: Apache-2.0 */ @@ -1718,15 +1718,15 @@ config_get_wifi_task_stack_size = 0x40001e24; pp_create_task = 0x40001e28; hal_set_sta_tsf_wakeup = 0x40001e2c; hal_set_rx_beacon_pti = 0x40001e30; -pm_start = 0x40001e34; -pm_stop = 0x40001e38; +/* pm_start = 0x40001e34; */ +/* pm_stop = 0x40001e38; */ hal_disable_sta_tbtt = 0x40001e3c; ppCalTxopDur = 0x40001e40; wDev_IndicateCtrlFrame = 0x40001e44; hal_enable_sta_tbtt = 0x40001e48; hal_set_sta_tbtt = 0x40001e4c; /* pm_update_next_tbtt = 0x40001e50;*/ -pm_set_sleep_type = 0x40001e54; +/* pm_set_sleep_type = 0x40001e54; */ wDev_Rxbuf_Init = 0x40001e58; wDev_Rxbuf_Deinit = 0x40001e5c; ppCalTkipMic = 0x40001e60; diff --git a/components/esp_wifi/lib b/components/esp_wifi/lib index a1f0bc553c..c8c75f7b7b 160000 --- a/components/esp_wifi/lib +++ b/components/esp_wifi/lib @@ -1 +1 @@ -Subproject commit a1f0bc553c281e163c33042c00e32f5534c4f828 +Subproject commit c8c75f7b7bc54a16f196f9396c3d231d30750ab1 diff --git a/components/esp_wifi/src/wifi_init.c b/components/esp_wifi/src/wifi_init.c index e14f399087..6e2c3f2f92 100644 --- a/components/esp_wifi/src/wifi_init.c +++ b/components/esp_wifi/src/wifi_init.c @@ -131,6 +131,7 @@ esp_err_t esp_wifi_deinit(void) #endif esp_wifi_power_domain_off(); #if CONFIG_MAC_BB_PD + esp_wifi_internal_set_mac_sleep(false); esp_mac_bb_pd_mem_deinit(); #endif esp_phy_modem_deinit();