From c12a60cb5aa0e714ad6e579d78a547464c6e3216 Mon Sep 17 00:00:00 2001 From: Alan Carvalho de Assis Date: Wed, 1 Feb 2023 18:07:40 -0300 Subject: [PATCH] esp32c3: Fix WiFi adapter to use WMAC instead of MAC_NMI --- arch/risc-v/src/esp32c3/esp32c3_wifi_adapter.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/risc-v/src/esp32c3/esp32c3_wifi_adapter.c b/arch/risc-v/src/esp32c3/esp32c3_wifi_adapter.c index 9b7bd06858..1d91f8bec7 100644 --- a/arch/risc-v/src/esp32c3/esp32c3_wifi_adapter.c +++ b/arch/risc-v/src/esp32c3/esp32c3_wifi_adapter.c @@ -979,7 +979,7 @@ static void esp32c3_ints_on(uint32_t mask) wlinfo("INFO mask=%08lx irq=%d\n", mask, n); - up_enable_irq(ESP32C3_IRQ_MAC_NMI); + up_enable_irq(ESP32C3_IRQ_WMAC); } /**************************************************************************** @@ -1002,7 +1002,7 @@ static void esp32c3_ints_off(uint32_t mask) wlinfo("INFO mask=%08lx irq=%d\n", mask, n); - up_disable_irq(ESP32C3_IRQ_MAC_NMI); + up_disable_irq(ESP32C3_IRQ_WMAC); } /****************************************************************************