summaryrefslogtreecommitdiff
path: root/sys/dev/usb/uhci.c
diff options
context:
space:
mode:
authorBrad Smith <brad@cvs.openbsd.org>2005-12-03 03:40:53 +0000
committerBrad Smith <brad@cvs.openbsd.org>2005-12-03 03:40:53 +0000
commit3744d1bf4de374ece69626cf0c801ad33a491de4 (patch)
treee68b74dd83b035d768bb49650b955008944053dc /sys/dev/usb/uhci.c
parentb3c04098cf7264c08a88143453690a416b691c3b (diff)
Allow strings descriptor 0 to be fetched. It's the default language index.
From augustss NetBSD ok dlg@
Diffstat (limited to 'sys/dev/usb/uhci.c')
-rw-r--r--sys/dev/usb/uhci.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/dev/usb/uhci.c b/sys/dev/usb/uhci.c
index f4d36abd899..4e285c6b094 100644
--- a/sys/dev/usb/uhci.c
+++ b/sys/dev/usb/uhci.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uhci.c,v 1.41 2005/11/21 18:16:43 millert Exp $ */
+/* $OpenBSD: uhci.c,v 1.42 2005/12/03 03:40:52 brad Exp $ */
/* $NetBSD: uhci.c,v 1.172 2003/02/23 04:19:26 simonb Exp $ */
/* $FreeBSD: src/sys/dev/usb/uhci.c,v 1.33 1999/11/17 22:33:41 n_hibma Exp $ */
@@ -3183,6 +3183,9 @@ uhci_root_ctrl_start(usbd_xfer_handle xfer)
*(u_int8_t *)buf = 0;
totlen = 1;
switch (value & 0xff) {
+ case 0: /* Language table */
+ totlen = uhci_str(buf, len, "\001");
+ break;
case 1: /* Vendor */
totlen = uhci_str(buf, len, sc->sc_vendor);
break;