summaryrefslogtreecommitdiff
path: root/sys/dev/usb/if_rum.c
diff options
context:
space:
mode:
authorDamien Bergamini <damien@cvs.openbsd.org>2006-07-19 19:10:53 +0000
committerDamien Bergamini <damien@cvs.openbsd.org>2006-07-19 19:10:53 +0000
commit38ae4a776beb6e5150d1491a543cfa9f9ac83c52 (patch)
tree23bfdffaefef8ef14dc55cdc14ca135078ef13f2 /sys/dev/usb/if_rum.c
parent90767ee89a4ef0aa3632eedc1f8140973cff8588 (diff)
fix rum_read_multi() to actually read at the requested index.
Diffstat (limited to 'sys/dev/usb/if_rum.c')
-rw-r--r--sys/dev/usb/if_rum.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/usb/if_rum.c b/sys/dev/usb/if_rum.c
index 371415bdd80..e7b0d8a4345 100644
--- a/sys/dev/usb/if_rum.c
+++ b/sys/dev/usb/if_rum.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_rum.c,v 1.15 2006/07/19 19:07:36 damien Exp $ */
+/* $OpenBSD: if_rum.c,v 1.16 2006/07/19 19:10:52 damien Exp $ */
/*-
* Copyright (c) 2005, 2006 Damien Bergamini <damien.bergamini@free.fr>
* Copyright (c) 2006 Niall O'Higgins <niallo@openbsd.org>
@@ -1434,9 +1434,9 @@ rum_read_multi(struct rum_softc *sc, uint16_t reg, void *buf, int len)
usbd_status error;
req.bmRequestType = UT_READ_VENDOR_DEVICE;
- req.bRequest = 0x7;
+ req.bRequest = RT2573_READ_MULTI_MAC;
USETW(req.wValue, 0);
- USETW(req.wIndex, 0x0800);
+ USETW(req.wIndex, reg);
USETW(req.wLength, len);
error = usbd_do_request(sc->sc_udev, &req, buf);