From 0f44d62740176f5e42dbf2d2b014fd6aaf7abd9a Mon Sep 17 00:00:00 2001 From: Michele Sardo Date: Sat, 2 Dec 2023 13:44:15 +0100 Subject: [PATCH] drivers: bluetooth: hci: handle event with high priority flag Make sure that events flagged as high priority are handled when CONFIG_BT_RECV_BLOCKING is not defined. Fix for #65892. Signed-off-by: Michele Sardo --- drivers/bluetooth/hci/h4.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/bluetooth/hci/h4.c b/drivers/bluetooth/hci/h4.c index cc4c346d602..e5cd81a06b8 100644 --- a/drivers/bluetooth/hci/h4.c +++ b/drivers/bluetooth/hci/h4.c @@ -346,7 +346,8 @@ static inline void read_payload(void) bt_recv_prio(buf); } - if (evt_flags & BT_HCI_EVT_FLAG_RECV) { + if ((evt_flags & BT_HCI_EVT_FLAG_RECV) || + !IS_ENABLED(CONFIG_BT_RECV_BLOCKING)) { LOG_DBG("Putting buf %p to rx fifo", buf); net_buf_put(&rx.fifo, buf); }