diff options
author | Damien Bergamini <damien@cvs.openbsd.org> | 2006-07-19 19:10:53 +0000 |
---|---|---|
committer | Damien Bergamini <damien@cvs.openbsd.org> | 2006-07-19 19:10:53 +0000 |
commit | 38ae4a776beb6e5150d1491a543cfa9f9ac83c52 (patch) | |
tree | 23bfdffaefef8ef14dc55cdc14ca135078ef13f2 /sys | |
parent | 90767ee89a4ef0aa3632eedc1f8140973cff8588 (diff) |
fix rum_read_multi() to actually read at the requested index.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/usb/if_rum.c | 6 |
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); |