donghengqaz commented on a change in pull request #2939: URL: https://github.com/apache/incubator-nuttx/pull/2939#discussion_r594016658
########## File path: arch/xtensa/src/esp32/esp32_wifi_adapter.c ########## @@ -638,26 +755,20 @@ static int esp_event_lock(bool lock) static void esp_set_isr(int32_t n, void *f, void *arg) { int ret; + uint32_t tmp; struct irq_adpt *adapter; - int irq; - int cpu = 0; - int tmp; + int irq = n + XTENSA_IRQ_FIRSTPERIPH; - if (g_wifi_irq >= 0) - { - return ; - } + wlinfo("INFO: n=%d f=%p arg=%p irq=%d\n", n, f, arg, irq); - irq = esp32_alloc_levelint(1); Review comment: The wifi will directly register peripheral to CPU interrupt in `wifi_set_intr`. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org