diff --git a/host/libhackrf/src/hackrf.c b/host/libhackrf/src/hackrf.c index 728f8961..fdf34488 100644 --- a/host/libhackrf/src/hackrf.c +++ b/host/libhackrf/src/hackrf.c @@ -728,6 +728,13 @@ static int hackrf_open_setup(libusb_device_handle* usb_device, hackrf_device** d return HACKRF_ERROR_NO_MEM; } +#if LIBUSB_API_VERSION >= 0x0100010C + // WinUSB: Use RAW_IO to improve throughput on RX + if (libusb_endpoint_supports_raw_io(usb_device, RX_ENDPOINT_ADDRESS) == 1) { + libusb_endpoint_set_raw_io(usb_device, RX_ENDPOINT_ADDRESS, 1); + } +#endif + lib_device->usb_device = usb_device; lib_device->transfers = NULL; lib_device->callback = NULL;