diff options
author | adrian <adrian@FreeBSD.org> | 2012-01-11 00:18:33 +0000 |
---|---|---|
committer | adrian <adrian@FreeBSD.org> | 2012-01-11 00:18:33 +0000 |
commit | 56029d49c5eec83d997194c19eb64d229b883724 (patch) | |
tree | c50321c3b541c2ed8fac804cd6a71ec2c009887e | |
parent | ac93e4797db4ccfb021c196dfde11319c8c2a069 (diff) | |
download | FreeBSD-src-56029d49c5eec83d997194c19eb64d229b883724.zip FreeBSD-src-56029d49c5eec83d997194c19eb64d229b883724.tar.gz |
Re-enable the PHY radar error frames if sc_dodfs is set.
This was messing up a local port of the atheros reference radar detection
code; I'll fix the port instead.
-rw-r--r-- | sys/dev/ath/if_ath.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/dev/ath/if_ath.c b/sys/dev/ath/if_ath.c index ae785b2..48fb917 100644 --- a/sys/dev/ath/if_ath.c +++ b/sys/dev/ath/if_ath.c @@ -2486,6 +2486,13 @@ ath_calcrxfilter(struct ath_softc *sc) if (IEEE80211_IS_CHAN_HT(ic->ic_curchan)) rfilt |= HAL_RX_FILTER_COMPBAR; + /* + * Enable radar PHY errors if requested by the + * DFS module. + */ + if (sc->sc_dodfs) + rfilt |= HAL_RX_FILTER_PHYRADAR; + DPRINTF(sc, ATH_DEBUG_MODE, "%s: RX filter 0x%x, %s if_flags 0x%x\n", __func__, rfilt, ieee80211_opmode_name[ic->ic_opmode], ifp->if_flags); return rfilt; |