From 5bd0a259b9f323b8d54c0f4da120f34618e87f87 Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Wed, 11 Nov 2015 16:47:02 +0100 Subject: [PATCH] also call libusb_set_iso_packet_lengths --- platforms/posix/src/hci_transport_h2_libusb.c | 1 + 1 file changed, 1 insertion(+) diff --git a/platforms/posix/src/hci_transport_h2_libusb.c b/platforms/posix/src/hci_transport_h2_libusb.c index 1af283a79..357b4f758 100644 --- a/platforms/posix/src/hci_transport_h2_libusb.c +++ b/platforms/posix/src/hci_transport_h2_libusb.c @@ -888,6 +888,7 @@ static int usb_send_sco_packet(uint8_t *packet, int size){ int completed = 0; libusb_fill_iso_transfer(sco_out_transfer, handle, sco_out_addr, packet, size, 1, async_callback, &completed, 0); + libusb_set_iso_packet_lengths(sco_out_transfer, size); sco_out_transfer->type = LIBUSB_TRANSFER_TYPE_ISOCHRONOUS; sco_out_transfer->iso_packet_desc[0].length = size;