zephyr/subsys
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
..
bindesc bindesc: Add support for reading binary descriptors 2024-10-11 13:20:49 -04:00
bluetooth Bluetooth: Decode Bluetooth 6.1 version number 2025-06-18 10:56:34 +02:00
canbus
console
dap dap: add DAP backend USB 2025-03-11 18:54:24 +01:00
debug debug: gdbstub: add arch_gdb_post_memory_write() 2025-06-17 16:27:27 -05:00
demand_paging demand_paging: use ram backend by default 2025-01-09 15:50:37 +01:00
dfu dfu: Add support for new MCUboot swap using offset mode 2025-02-10 19:05:25 +01:00
disk
dsp
emul
fb cfb: support non vtiled displays 2025-06-04 17:00:30 +02:00
fs fs/ext2: Missing error check in ext2_inode_remove_blocks 2025-06-17 16:06:21 +02:00
input input: Fix function signature of input_thread 2025-06-18 07:41:25 +02:00
ipc ipc: ipc_service: Parametrize workqueue stack size 2025-06-11 10:09:02 -07:00
jwt modules: mbedtls: make key exchange Kconfigs depend on, not select 2025-05-13 22:22:43 -04:00
llext llext: rework debug code in llext_link 2025-06-19 14:00:11 +02:00
logging net: mgmt: Convert the mgmt API to use 64-bit masks 2025-06-18 10:54:44 +02:00
lorawan lorawan: add link check support. 2025-04-17 17:23:12 +02:00
mem_mgmt
mgmt mgmt: mcumgr: grp: os_mgmt: Add optional boot mode for reset 2025-06-18 17:48:44 -04:00
modbus modbus: fix Apache-2.0 SPDX License identifier case 2025-06-11 10:23:46 -07:00
modem ubx: Refactor codebase in order to improve usability 2025-05-30 19:40:19 +02:00
net net: shell: dns: Add service discovery command 2025-06-18 09:08:41 -04:00
pm pm: adopt SHELL_HELP 2025-06-13 10:42:16 -04:00
pmci pmci: mctp: Fix No SOURCES CMake warning 2025-04-23 17:55:19 +02:00
portability subsys/portability/cmsis_rtos_v2: Fix code compliance issues 2025-05-21 12:35:28 +02:00
profiling arch: Unify declaration of text region 2025-04-23 02:15:25 +02:00
random random: Correct Mutex define 2025-03-04 21:55:45 +01:00
retention
rtio rtio: Introduce OP_DELAY as a valid SQE operation 2025-04-30 09:48:16 +02:00
sd sd: fix incorrect error logging 2025-06-05 15:02:15 -05:00
secure_storage secure_storage: its: transform: improve expandability 2025-05-27 15:46:37 +02:00
sensing sensing: Fix static assert in get_sensor_by_dev() 2025-01-18 12:40:03 +01:00
settings settings: adopt SHELL_HELP 2025-06-13 10:41:42 -04:00
shell net: mgmt: Convert the mgmt API to use 64-bit masks 2025-06-18 10:54:44 +02:00
sip_svc
stats
storage storage: flash_map: Add support for sub-partitions 2025-06-11 10:13:56 -07:00
task_wdt task_wdt: Add suspend and resume API functions 2025-04-02 13:05:14 +02:00
testsuite ztest: add missing break statement in ztest_test_pass function 2025-06-18 17:48:03 -04:00
timing
tracing tracing: fix build error on USB backend 2025-06-18 10:54:32 +02:00
usb usb: device: fix Bluetooth buffer handling 2025-06-19 22:36:51 -07:00
zbus zbus: Improve consistency with runtime observers 2025-05-16 09:37:20 +02:00
CMakeLists.txt pmci: Move MCTP into the PMCI subsys 2025-04-21 12:43:33 +02:00
Kconfig pmci: Move MCTP into the PMCI subsys 2025-04-21 12:43:33 +02:00