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
|
||
|---|---|---|
| .. | ||
| bt_hci.c | ||
| Kconfig | ||
| Kconfig.bt | ||
| Kconfig.cdc_acm | ||
| Kconfig.cdc_ecm | ||
| Kconfig.cdc_ncm | ||
| Kconfig.dfu | ||
| Kconfig.hid | ||
| Kconfig.loopback | ||
| Kconfig.midi2 | ||
| Kconfig.msc | ||
| Kconfig.template.instances_count | ||
| Kconfig.uac2 | ||
| loopback.c | ||
| usbd_cdc_acm.c | ||
| usbd_cdc_ecm.c | ||
| usbd_cdc_ncm.c | ||
| 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 | ||
| usbd_midi2.c | ||
| usbd_msc_scsi.c | ||
| usbd_msc_scsi.h | ||
| usbd_msc.c | ||
| usbd_msc.ld | ||
| usbd_uac2_macros.h | ||
| usbd_uac2.c | ||