Allow devices with zero configurations to be discovered
authorPeter Stuge <peter@stuge.se>
Wed, 27 Jul 2011 01:15:03 +0000 (03:15 +0200)
committerPeter Stuge <peter@stuge.se>
Thu, 15 Sep 2011 13:16:20 +0000 (15:16 +0200)
commit0eb7e43759003610d1afe6148aa6ff4f5859ccb0
tree960969636bf4ec4ca060560fb59b664b3fc6a467
parent5010c3e80423d13acee6eeb4af974e8a9bcdd006
Allow devices with zero configurations to be discovered

At least in Linux, wireless USB devices have zero configurations until
they have been authorized. This device state can be set for any USB
device using:

echo 0 > /sys/bus/usb/devices/?-?/authorized

An unauthorized device would previously make usbi_sanitize_device()
return LIBUSB_ERROR_IO, although there really was no I/O error.

Reported-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
libusb/core.c