deinit BB MAC back memory when they are not used

This commit is contained in:
Jack
2022-05-29 00:13:32 +08:00
parent 1781ce3b98
commit 7a8b63869f
4 changed files with 27 additions and 0 deletions

View File

@@ -129,6 +129,9 @@ esp_err_t esp_wifi_deinit(void)
phy_init_flag();
#endif
esp_wifi_power_domain_off();
#if CONFIG_MAC_BB_PD
esp_mac_bb_pd_mem_deinit();
#endif
return err;
}