Revert "Bluetooth: btusb: Fix not handling ZPL/short-transfer"

This reverts commit 4fcf5af75d.
This commit is contained in:
Ksawlii 2024-11-24 00:23:29 +01:00
parent 5ca325c27a
commit 40378ea342

View file

@ -928,10 +928,7 @@ static int btusb_submit_intr_urb(struct hci_dev *hdev, gfp_t mem_flags)
if (!urb)
return -ENOMEM;
/* Use maximum HCI Event size so the USB stack handles
* ZPL/short-transfer automatically.
*/
size = HCI_MAX_EVENT_SIZE;
size = le16_to_cpu(data->intr_ep->wMaxPacketSize);
buf = kmalloc(size, mem_flags);
if (!buf) {