mcuee / libusb-win32

libusb-win32 project official github repo
172 stars 45 forks source link

Deprecate the use of pipe information about MaximumTransferSize #52

Closed dontech closed 7 months ago

dontech commented 8 months ago

According to this:

https://learn.microsoft.com/en-us/windows-hardware/drivers/usbcon/usb-bandwidth-allocation

The MaximumTransferSize value is deprecated and replaced by discrete values. A bit silly that Microsoft will not support the information in pipe policy without replacing it with something else, but then again it only requires a simple look-up table.

I have not seen that this has any consequence with the current implementation however, but for correctness we might want to fix this.

Seen during the fixing of this bug: https://github.com/mcuee/libusb-win32/issues/51

dontech commented 7 months ago

This should be fixed with: https://github.com/mcuee/libusb-win32/commit/65f9a19375bade91067545e85a18b713e7eb6a7a

dontech commented 7 months ago

Considering closed. Re-open if still a problem.