From 73a19d4d20a7531fd753557deadf49b8c4f530fe Mon Sep 17 00:00:00 2001 From: Erwan Gouriou Date: Wed, 29 Apr 2020 08:57:51 +0200 Subject: [PATCH] drivers/bluetooth: stm32 ipm: Fix mutex on shared memory ipm_busy is meant to be used as mutex on transport layer accesses. Due to wrong configuration on rx_thread, imp_busy was a no-op. Fix this. Signed-off-by: Erwan Gouriou --- drivers/bluetooth/hci/ipm_stm32wb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/bluetooth/hci/ipm_stm32wb.c b/drivers/bluetooth/hci/ipm_stm32wb.c index 5e1731f8ebf..359467979d9 100644 --- a/drivers/bluetooth/hci/ipm_stm32wb.c +++ b/drivers/bluetooth/hci/ipm_stm32wb.c @@ -157,7 +157,7 @@ static void bt_ipm_rx_thread(void) hcievt = k_fifo_get(&ipm_rx_events_fifo, K_FOREVER); - k_sem_take(&ipm_busy, K_NO_WAIT); + k_sem_take(&ipm_busy, K_FOREVER); switch (hcievt->evtserial.type) { case HCI_EVT: