diff options
author | kevlo <kevlo@FreeBSD.org> | 2013-10-31 02:00:58 +0000 |
---|---|---|
committer | kevlo <kevlo@FreeBSD.org> | 2013-10-31 02:00:58 +0000 |
commit | 29e5b686221039b5255b16209f56deb860097e5a (patch) | |
tree | a0fa969e8f500e62c1cfa347df2e0e9a6ead294a | |
parent | 06ad790cc8f6f2a1629f24ed0bd25b888b9c0177 (diff) | |
download | FreeBSD-src-29e5b686221039b5255b16209f56deb860097e5a.zip FreeBSD-src-29e5b686221039b5255b16209f56deb860097e5a.tar.gz |
Enable DC filter in RT3071 Version E.
-rw-r--r-- | sys/dev/usb/wlan/if_run.c | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/sys/dev/usb/wlan/if_run.c b/sys/dev/usb/wlan/if_run.c index e5e6fbf..9b73525 100644 --- a/sys/dev/usb/wlan/if_run.c +++ b/sys/dev/usb/wlan/if_run.c @@ -4601,10 +4601,15 @@ run_rt3070_rf_setup(struct run_softc *sc) run_rt3070_rf_write(sc, 16, rf); } else if (sc->mac_ver == 0x3071) { - /* enable DC filter */ - if (sc->mac_rev >= 0x0201) + if (sc->mac_rev >= 0x0211) { + /* enable DC filter */ run_bbp_write(sc, 103, 0xc0); + /* improve power consumption */ + run_bbp_read(sc, 31, &bbp); + run_bbp_write(sc, 31, bbp & ~0x03); + } + run_bbp_read(sc, 138, &bbp); if (sc->ntxchains == 1) bbp |= 0x20; /* turn off DAC1 */ @@ -4612,12 +4617,6 @@ run_rt3070_rf_setup(struct run_softc *sc) bbp &= ~0x02; /* turn off ADC1 */ run_bbp_write(sc, 138, bbp); - if (sc->mac_rev >= 0x0211) { - /* improve power consumption */ - run_bbp_read(sc, 31, &bbp); - run_bbp_write(sc, 31, bbp & ~0x03); - } - run_write(sc, RT2860_TX_SW_CFG1, 0); if (sc->mac_rev < 0x0211) { run_write(sc, RT2860_TX_SW_CFG2, |