jiegec / usbip

A Rust library to run a USB/IP server
MIT License
255 stars 25 forks source link

Changing the USB speed fails to update ep0 max packet size #40

Open florg-32 opened 5 months ago

florg-32 commented 5 months ago

When changing the public UsbDevice::speed, the max packet size of ep0_in/out are not updated, which then leads to the device failing to enumerate. (Invalid ep0 maxpacket: 64)

The correct value for USB 3.0+ is 9, where the actual max packet size is 2^bMaxPacketSize0

I hope its okay to just open issues for now, will also open an MR once I find time :)