diff options
author | 2004-07-11 05:29:16 +0000 | |
---|---|---|
committer | 2004-07-11 05:29:16 +0000 | |
commit | fb11a4d4a855705900cb57f49ec48de40081b29c (patch) | |
tree | a314a2cff866cf2364474054cd2012ab9b502053 /sys/dev/usb/uhub.c | |
parent | prototypes; ok deraadt (diff) | |
download | wireguard-openbsd-fb11a4d4a855705900cb57f49ec48de40081b29c.tar.xz wireguard-openbsd-fb11a4d4a855705900cb57f49ec48de40081b29c.zip |
from netbsd via loki@animata.net
uhub.c revision 1.65, ohci.c revision 1.146, uhci.c revision 1.177
Use the correct wValue to get hub desriptors.
Also, make wValue checks of root hub codes less strict.
Diffstat (limited to 'sys/dev/usb/uhub.c')
-rw-r--r-- | sys/dev/usb/uhub.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/usb/uhub.c b/sys/dev/usb/uhub.c index 53dcaee6b50..21d2c47173a 100644 --- a/sys/dev/usb/uhub.c +++ b/sys/dev/usb/uhub.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uhub.c,v 1.24 2004/07/08 22:18:44 deraadt Exp $ */ +/* $OpenBSD: uhub.c,v 1.25 2004/07/11 05:29:16 deraadt Exp $ */ /* $NetBSD: uhub.c,v 1.64 2003/02/08 03:32:51 ichiro Exp $ */ /* $FreeBSD: src/sys/dev/usb/uhub.c,v 1.18 1999/11/17 22:33:43 n_hibma Exp $ */ @@ -181,7 +181,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, UDESC_HUB, 0); USETW(req.wIndex, 0); USETW(req.wLength, USB_HUB_DESCRIPTOR_SIZE); DPRINTFN(1,("usb_init_hub: getting hub descriptor\n")); |