diff options
| author | Josef Karthauser <joe@FreeBSD.org> | 2003-07-14 17:46:27 +0000 |
|---|---|---|
| committer | Josef Karthauser <joe@FreeBSD.org> | 2003-07-14 17:46:27 +0000 |
| commit | 753bb32e4905512d01e86a242053fcb1759307ad (patch) | |
| tree | 3f1f41e782583e7c3a093929391fbe08f954ee52 /sys/dev/usb/uhub.c | |
| parent | 1fd53fb9492d2234cf78f5508a0f4ec33861f3d2 (diff) | |
Notes
Diffstat (limited to 'sys/dev/usb/uhub.c')
| -rw-r--r-- | sys/dev/usb/uhub.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/usb/uhub.c b/sys/dev/usb/uhub.c index 0d97de8ab80d..f1eb05a5340f 100644 --- a/sys/dev/usb/uhub.c +++ b/sys/dev/usb/uhub.c @@ -194,7 +194,7 @@ USB_ATTACH(uhub) /* Get hub descriptor. */ req.bmRequestType = UT_READ_CLASS_DEVICE; req.bRequest = UR_GET_DESCRIPTOR; - USETW(req.wValue, 0); + USETW2(req.wValue, (dev->address > 1 ? UDESC_HUB : 0), 0); USETW(req.wIndex, 0); USETW(req.wLength, USB_HUB_DESCRIPTOR_SIZE); DPRINTFN(1,("usb_init_hub: getting hub descriptor\n")); |
