Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
linux_usbfs: Gracefully handle buggy devices with a configuration 0
The USB spec states that a configuration value of 0 is reserved and is used to indicate the device in not configured (e.g. is in the address state). Unfortunately some devices do exist that violate this and use 0 as the bConfigurationValue of the configuration descriptor. Improve how the Linux backend handles such non-conformant devices by adding special handling around the configuration value 0. Most devices will not require this special handling, but for those that do there is no way to distinguish between the device being unconfigured and using configuration 0. Closes #850 Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>
- Loading branch information
Showing
2 changed files
with
60 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
#define LIBUSB_NANO 11603 | ||
#define LIBUSB_NANO 11604 |