WICG / webusb

Connecting hardware to the web.
https://wicg.github.io/webusb/
Other
1.3k stars 126 forks source link

Remove bMaxPacketSize0 checks from control transfers #156

Closed reillyeon closed 5 years ago

reillyeon commented 5 years ago

These checks are incorrect as it is perfectly valid to issue a control transfer with wLength larger than bMaxPacketSize0. In this case the data stage of the control transfer will be split across multiple packets.

Resolves #155.


Preview | Diff

reillyeon commented 5 years ago

We don't specify the behavior is such detail for transferOut, which has the same semantics, so I'm inclined to leave it to the USB specifications to define how sending larger buffers works.