From 606360d33dbd985283b4af761195b2673894ec8c Mon Sep 17 00:00:00 2001 From: liuning Date: Tue, 28 Nov 2023 20:52:42 +0800 Subject: [PATCH] fix(wifi): fix wifi deinit s_wifi_modem_sleep_lock --- components/esp_wifi/src/wifi_init.c | 1 + 1 file changed, 1 insertion(+) diff --git a/components/esp_wifi/src/wifi_init.c b/components/esp_wifi/src/wifi_init.c index 2887bf446e..bdd411d023 100644 --- a/components/esp_wifi/src/wifi_init.c +++ b/components/esp_wifi/src/wifi_init.c @@ -115,6 +115,7 @@ static esp_err_t wifi_deinit_internal(void) #ifdef CONFIG_PM_ENABLE if (s_wifi_modem_sleep_lock) { esp_pm_lock_delete(s_wifi_modem_sleep_lock); + s_wifi_modem_sleep_lock = NULL; } #endif esp_wifi_power_domain_off();