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
|
||
|---|---|---|
| .. | ||
| app | ||
| class | ||
| CMakeLists.txt | ||
| Kconfig | ||
| usbd_ch9.c | ||
| usbd_ch9.h | ||
| usbd_class_api.h | ||
| usbd_class.c | ||
| usbd_class.h | ||
| usbd_config.c | ||
| usbd_config.h | ||
| usbd_core.c | ||
| usbd_data.ld | ||
| usbd_desc.c | ||
| usbd_desc.h | ||
| usbd_device.c | ||
| usbd_device.h | ||
| usbd_endpoint.c | ||
| usbd_endpoint.h | ||
| usbd_init.c | ||
| usbd_init.h | ||
| usbd_interface.c | ||
| usbd_interface.h | ||
| usbd_msg.c | ||
| usbd_msg.h | ||
| usbd_shell.c | ||