summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsakumisu <[email protected]>2024-03-07 20:35:00 +0800
committersakumisu <[email protected]>2024-03-07 20:35:00 +0800
commit215534982a215ba585a15507efe4d0690fceedd2 (patch)
treef2cd487d65493888f657fddec586305a748ddd30
parent6af1c143d3d8c814a735fe6c95ded603d3629f3c (diff)
fix bt hci recv when CONFIG_BT_RECV_IS_RX_THREAD is disabled
-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;