USB: allow libusb to talk to unauthenticated WUSB devices
To permit a userspace application to associate with WUSB devices using numeric association, control transfers to unauthenticated WUSB devices must be allowed. This requires that wusbcore correctly sets the device state to UNAUTHENTICATED, DEFAULT and ADDRESS and that control transfers can be performed to UNAUTHENTICATED devices. Signed-off-by: David Vrabel <david.vrabel@csr.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
4246b06a33
commit
6da9c99059
@@ -889,6 +889,8 @@ static void wusb_dev_add_ncb(struct usb_device *usb_dev)
|
||||
if (usb_dev->wusb == 0 || usb_dev->devnum == 1)
|
||||
return; /* skip non wusb and wusb RHs */
|
||||
|
||||
usb_set_device_state(usb_dev, USB_STATE_UNAUTHENTICATED);
|
||||
|
||||
wusbhc = wusbhc_get_by_usb_dev(usb_dev);
|
||||
if (wusbhc == NULL)
|
||||
goto error_nodev;
|
||||
|
Reference in New Issue
Block a user