arch/xtensa/esp32: fix wrong enabled BLE interrupts

Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
This commit is contained in:
Petro Karashchenko 2023-04-24 14:52:20 +03:00 committed by Brennan Ashton
parent 0c28094059
commit 3e3670af77

View File

@ -884,8 +884,9 @@ static void esp32_ints_on(uint32_t mask)
bit = 1 << i;
if (bit & mask)
{
wlinfo("Enabled bit %d\n", i);
up_enable_irq(i);
int irq = i + XTENSA_IRQ_FIRSTPERIPH;
wlinfo("Enabled bit %d\n", irq);
up_enable_irq(irq);
}
}
}
@ -2879,4 +2880,3 @@ void coex_bb_reset_unlock_wrapper(uint32_t restore)
coex_bb_reset_unlock(restore);
#endif
}