zephyr/subsys/usb/device
Johann Fischer 96422f262e usb: device: fix Bluetooth buffer handling
In both implementation, when comparing received data length take into
account that the buffer obtained from bt_buf_get_tx() stores the type at
the top. The buffer types are H:4 and in the TX path we need to check for
BT_HCI_H4_* types not BT_BUF_*.

In the legacy implementation, the hci_acl_pkt_len() function obtains the
length from the USB transaction buffer, which does not contain a buffer
type at the top.

In the new implementation, partially revert the changes and restore
hci_pkt_get_len(), this will be required for any further changes anyway.

Fixes commit f85d63a6cc ("Bluetooth: Remove USB H4 mode support").

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2025-06-19 22:36:51 -07:00
..
class usb: device: fix Bluetooth buffer handling 2025-06-19 22:36:51 -07:00
bos_desc.h
bos.c
CMakeLists.txt
Kconfig usb: device: remove loopback function in favor of new device stack 2025-04-23 02:15:10 +02:00
os_desc.c
os_desc.h
usb_descriptor.c usb: Add missing wMaxPacketSize endian conversions 2024-08-21 18:25:30 +01:00
usb_descriptor.h
usb_device.c zephyr: bulk update to DT_NODE_HAS_STATUS_OKAY 2024-10-03 17:06:52 +01:00
usb_transfer.c
usb_transfer.h
usb_work_q.c
usb_work_q.h