summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoradrian <adrian@FreeBSD.org>2013-01-08 22:12:45 +0000
committeradrian <adrian@FreeBSD.org>2013-01-08 22:12:45 +0000
commit3ffe3ebe2e63f09fa43e4e79afe221c3644f3bb3 (patch)
tree4793ff5ee48ff08355aebcebabc064ab7806928f
parentadbb26d90e65096c624bfb3266509b976ccca2da (diff)
downloadFreeBSD-src-3ffe3ebe2e63f09fa43e4e79afe221c3644f3bb3.zip
FreeBSD-src-3ffe3ebe2e63f09fa43e4e79afe221c3644f3bb3.tar.gz
If spectral scan is enabled, ensure radar report PHY errors are also
enabled.
-rw-r--r--sys/dev/ath/if_ath_rx.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/dev/ath/if_ath_rx.c b/sys/dev/ath/if_ath_rx.c
index 78f19e2..5a39d16 100644
--- a/sys/dev/ath/if_ath_rx.c
+++ b/sys/dev/ath/if_ath_rx.c
@@ -210,6 +210,13 @@ ath_calcrxfilter(struct ath_softc *sc)
if (sc->sc_dodfs)
rfilt |= HAL_RX_FILTER_PHYRADAR;
+ /*
+ * Enable spectral PHY errors if requested by the
+ * spectral module.
+ */
+ if (sc->sc_dospectral)
+ 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;
OpenPOWER on IntegriCloud