raw-gadget icon indicating copy to clipboard operation
raw-gadget copied to clipboard

Document or change behavior with 0-length setup requests

Open xairy opened this issue 2 years ago • 2 comments

Currently, Raw Gadget considers all requests with wLength == 0 to be OUT requests regardless of bRequestType.

This follows the HCD drivers' behavior (also this), but I'm not sure if this makes sense for the gadget side.

We need to either document this behavior or change it.

xairy avatar Aug 19 '23 18:08 xairy

I find this issue too,if usb_ctrlrequest carried option data, We cann't get it. how to fix this issue?

dukezuoHZ avatar Jan 02 '24 06:01 dukezuoHZ

This issue is only related to 0-length requests, which carry no data. If your request transfers data, you're having a different issue.

xairy avatar Jan 06 '24 00:01 xairy