From 3ffe3ebe2e63f09fa43e4e79afe221c3644f3bb3 Mon Sep 17 00:00:00 2001 From: adrian Date: Tue, 8 Jan 2013 22:12:45 +0000 Subject: [PATCH] If spectral scan is enabled, ensure radar report PHY errors are also enabled. --- sys/dev/ath/if_ath_rx.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/sys/dev/ath/if_ath_rx.c b/sys/dev/ath/if_ath_rx.c index 78f19e29c95..5a39d16a0ac 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; -- 2.45.2