Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document or change behavior with 0-length setup requests #46

Open
xairy opened this issue Aug 19, 2023 · 2 comments
Open

Document or change behavior with 0-length setup requests #46

xairy opened this issue Aug 19, 2023 · 2 comments
Labels
documentation Improvements or additions to documentation kernel Requires kernel changes raw gadget Requires changes in Raw Gadget

Comments

@xairy
Copy link
Owner

xairy commented Aug 19, 2023

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.

@dukezuoHZ
Copy link

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

@xairy
Copy link
Owner Author

xairy commented Jan 6, 2024

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 xairy added kernel Requires kernel changes raw gadget Requires changes in Raw Gadget docs documentation Improvements or additions to documentation and removed docs labels Jun 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation kernel Requires kernel changes raw gadget Requires changes in Raw Gadget
Projects
None yet
Development

No branches or pull requests

2 participants