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 <msmttchr@gmail.com>
This commit is contained in:
Michele Sardo 2023-12-02 13:44:15 +01:00 committed by Henrik Brix Andersen
parent af610bb207
commit 0f44d62740

View File

@ -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);
}