summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--third_party/zephyr_bluetooth-2.7.5/ble_hci_usbh.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/third_party/zephyr_bluetooth-2.7.5/ble_hci_usbh.c b/third_party/zephyr_bluetooth-2.7.5/ble_hci_usbh.c
index 0f30f341..70448b98 100644
--- a/third_party/zephyr_bluetooth-2.7.5/ble_hci_usbh.c
+++ b/third_party/zephyr_bluetooth-2.7.5/ble_hci_usbh.c
@@ -227,6 +227,7 @@ static int usbh_hci_host_rcv_pkt(uint8_t *data, uint32_t len)
}
if (buf) {
+#ifdef CONFIG_BT_RECV_IS_RX_THREAD
if (pkt_indicator == USB_BLUETOOTH_HCI_EVT) {
struct bt_hci_evt_hdr *hdr = (void *)buf->data;
uint8_t evt_flags = __bt_hci_evt_get_flags(hdr->evt);
@@ -239,6 +240,9 @@ static int usbh_hci_host_rcv_pkt(uint8_t *data, uint32_t len)
} else {
bt_recv(buf);
}
+#else
+ bt_recv(buf);
+#endif
}
return 0;