Merge branch 'bugfix/fix_wifi_deinit_s_wifi_modem_sleep_lock_v5.2' into 'release/v5.2'

fix(wifi): fix wifi deinit s_wifi_modem_sleep_lock

See merge request espressif/esp-idf!27451
This commit is contained in:
Jiang Jiang Jian 2023-11-29 12:15:59 +08:00
commit 1a9f3b22f4

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();