usb: bluetooth: Incrase data stage buffer for setup transfers.

Depending on the Bluetooth features enabled, the HCI
packets can be 264 Bytes long. For HCI over USB the HCI packet
is handled in data stage of USB transfer. Buffer for the data
stage was too short and USB driver was STALLing the data stage
making it unable to complete. Extend the data stage buffer
to 266 Bytes if HCI USB is selected and BT_RX_BUF_LEN > 127
indicating that longer HCI packets are needed.

Signed-off-by: Emil Obalski <emil.obalski@nordicsemi.no>
This commit is contained in:
Emil Obalski 2020-09-23 14:16:24 +02:00 committed by Ioannis Glaropoulos
parent 2a6f6e412e
commit 5f6d526459

View file

@ -69,6 +69,7 @@ config USB_REQUEST_BUFFER_SIZE
range 256 65536 if USB_DEVICE_NETWORK_RNDIS
range 8 65536
default 256 if USB_DEVICE_NETWORK_RNDIS
default 266 if (BT_RX_BUF_LEN > 127 && USB_DEVICE_BLUETOOTH)
default 1024 if USB_DEVICE_LOOPBACK
default 128