]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - drivers/usb/core/urb.c
USB: allow libusb to talk to unauthenticated WUSB devices
[net-next-2.6.git] / drivers / usb / core / urb.c
index 58bc5e3c25603dcaf2cf073c85012006b61b6545..7025d801f23a71640197bc6b640110f51b8361d8 100644 (file)
@@ -295,7 +295,7 @@ int usb_submit_urb(struct urb *urb, gfp_t mem_flags)
        if (!urb || urb->hcpriv || !urb->complete)
                return -EINVAL;
        dev = urb->dev;
-       if ((!dev) || (dev->state < USB_STATE_DEFAULT))
+       if ((!dev) || (dev->state < USB_STATE_UNAUTHENTICATED))
                return -ENODEV;
 
        /* For now, get the endpoint from the pipe.  Eventually drivers