esp_wifi: add protection for mac reset (backport 4.3)

This commit is contained in:
liuning
2022-10-27 17:30:45 +08:00
parent 635a9c5efb
commit dbe59eff86
8 changed files with 12 additions and 14 deletions

View File

@@ -432,8 +432,7 @@ static void IRAM_ATTR timer_arm_us_wrapper(void *ptimer, uint32_t us, bool repea
static void wifi_reset_mac_wrapper(void)
{
DPORT_SET_PERI_REG_MASK(DPORT_CORE_RST_EN_REG, DPORT_WIFIMAC_RST);
DPORT_CLEAR_PERI_REG_MASK(DPORT_CORE_RST_EN_REG, DPORT_WIFIMAC_RST);
periph_module_reset(PERIPH_WIFI_MODULE);
}
static void wifi_clock_enable_wrapper(void)