summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorDamien Bergamini <damien@cvs.openbsd.org>2010-02-07 11:54:22 +0000
committerDamien Bergamini <damien@cvs.openbsd.org>2010-02-07 11:54:22 +0000
commit27642d11565ba2c3d297b84fc60f454fb363bb1f (patch)
tree4752ce72c249c91f13456f3eb9d5a0cb8bee0d55 /sys
parent6f4cfdcac51a1ab5870211f22a7462a3e3e11134 (diff)
add two more ids for RT3572 and one more id for RT2770.
save BBP R25 and R26 values on RT3572 at init.
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/usb/if_run.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/sys/dev/usb/if_run.c b/sys/dev/usb/if_run.c
index 549124adf0b..7e687584f63 100644
--- a/sys/dev/usb/if_run.c
+++ b/sys/dev/usb/if_run.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_run.c,v 1.46 2010/02/07 11:44:00 damien Exp $ */
+/* $OpenBSD: if_run.c,v 1.47 2010/02/07 11:54:21 damien Exp $ */
/*-
* Copyright (c) 2008,2009 Damien Bergamini <damien.bergamini@free.fr>
@@ -168,12 +168,14 @@ static const struct usb_devno run_devs[] = {
USB_ID(LINKSYS4, WUSB100),
USB_ID(LINKSYS4, WUSB54GCV3),
USB_ID(LINKSYS4, WUSB600N),
+ USB_ID(LINKSYS4, WUSB600NV2),
USB_ID(LOGITEC, RT2870_1),
USB_ID(LOGITEC, RT2870_2),
USB_ID(LOGITEC, RT2870_3),
USB_ID(MELCO, WLIUCAG300N),
USB_ID(MELCO, WLIUCG300N),
USB_ID(MELCO, WLIUCGN),
+ USB_ID(MOTOROLA4, RT2770),
USB_ID(MSI, RT3070_1),
USB_ID(MSI, RT3070_2),
USB_ID(MSI, RT3070_3),
@@ -198,6 +200,7 @@ static const struct usb_devno run_devs[] = {
USB_ID(RALINK, RT3070),
USB_ID(RALINK, RT3071),
USB_ID(RALINK, RT3072),
+ USB_ID(RALINK, RT3572),
USB_ID(SAMSUNG2, RT2870_1),
USB_ID(SENAO, RT2870_1),
USB_ID(SENAO, RT2870_2),
@@ -2988,6 +2991,11 @@ run_rt3070_rf_init(struct run_softc *sc)
run_read(sc, RT3070_OPT_14, &tmp);
run_write(sc, RT3070_OPT_14, tmp | 1);
+ if (sc->mac_ver == 0x3572) {
+ /* save default BBP registers 25 and 26 values */
+ run_bbp_read(sc, 25, &sc->bbp25);
+ run_bbp_read(sc, 26, &sc->bbp26);
+ }
if (sc->mac_ver == 0x3071) {
run_rt3070_rf_read(sc, 1, &rf);
rf &= ~(RT3070_RX0_PD | RT3070_TX0_PD);