From 215534982a215ba585a15507efe4d0690fceedd2 Mon Sep 17 00:00:00 2001 From: sakumisu <1203593632@qq.com> Date: Thu, 7 Mar 2024 20:35:00 +0800 Subject: fix bt hci recv when CONFIG_BT_RECV_IS_RX_THREAD is disabled --- third_party/zephyr_bluetooth-2.7.5/ble_hci_usbh.c | 4 ++++ 1 file changed, 4 insertions(+) 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; -- cgit v1.3.1