From 38ae4a776beb6e5150d1491a543cfa9f9ac83c52 Mon Sep 17 00:00:00 2001 From: Damien Bergamini Date: Wed, 19 Jul 2006 19:10:53 +0000 Subject: fix rum_read_multi() to actually read at the requested index. --- sys/dev/usb/if_rum.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys/dev/usb/if_rum.c') 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 * Copyright (c) 2006 Niall O'Higgins @@ -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); -- cgit v1.2.3