-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
usb: bluetooth: fix OUT buffer handling
acl_read_cb does not handle incoming (ACL) data if BT_CTLR_TX_BUFFER_SIZE is greater than USB_MAX_FS_BULK_MPS - BT_HCI_ACL_HDR_SIZE. Since the host adjusts the data according to the BT_CTLR_TX_BUFFER_SIZE and does not use ZLP we cannot start usb_transfer over the possible length of the whole packet, with or without USB_TRANS_NO_ZLP flag. But we can read the packet length from the header and call net_buf_put() when the whole packet is received. Fixes: #31922 Reported-by: Matias Karhumaa <matias.karhumaa@gmail.com> Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
- Loading branch information
1 parent
46d95a2
commit af67c16
Showing
1 changed file
with
78 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters