fix(wifi): fix wifi deinit s_wifi_modem_sleep_lock

This commit is contained in:
liuning 2023-11-28 20:52:42 +08:00 committed by BOT
parent 3515b1d5c8
commit 46d4c6cc0a

View File

@ -145,6 +145,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();