zephyr/subsys/usb/device_next/class
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
..
bt_hci.c usb: device: fix Bluetooth buffer handling 2025-06-19 22:36:51 -07:00
Kconfig
Kconfig.bt
Kconfig.cdc_acm usb: device_next: use common UDC pool on full-speed devices for CDC ACM 2025-06-03 14:48:29 +01:00
Kconfig.cdc_ecm
Kconfig.cdc_ncm
Kconfig.dfu
Kconfig.hid
Kconfig.loopback
Kconfig.midi2
Kconfig.msc
Kconfig.template.instances_count
Kconfig.uac2
loopback.c usb: device_next: Reduce code size on Full-Speed only configuration 2025-04-10 12:57:19 +02:00
usbd_cdc_acm.c usb: device_next: use common UDC pool on full-speed devices for CDC ACM 2025-06-03 14:48:29 +01:00
usbd_cdc_ecm.c drivers: ethernet: remove get configs that are unused 2025-06-11 10:17:37 -07:00
usbd_cdc_ncm.c drivers: net: ethernet: change ETHERNET_LINK_*BASE_T 2025-04-28 09:22:09 +01:00
usbd_dfu_flash.c
usbd_dfu.c
usbd_dfu.ld
usbd_hid_api.c
usbd_hid_internal.h
usbd_hid_macros.h
usbd_hid.c usb: device_next: allow to use label as interface string descriptor 2025-06-11 08:18:30 +02:00
usbd_midi2.c usb: device_next: Reduce code size on Full-Speed only configuration 2025-04-10 12:57:19 +02:00
usbd_msc_scsi.c
usbd_msc_scsi.h
usbd_msc.c usb: device_next: Reduce code size on Full-Speed only configuration 2025-04-10 12:57:19 +02:00
usbd_msc.ld
usbd_uac2_macros.h
usbd_uac2.c usb: device_next: Reduce code size on Full-Speed only configuration 2025-04-10 12:57:19 +02:00