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.
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.
These checks are incorrect as it is perfectly valid to issue a control transfer with
wLength
larger thanbMaxPacketSize0
. In this case the data stage of the control transfer will be split across multiple packets.Resolves #155.
Preview | Diff