Author: adrian
Date: Tue Jan  8 22:12:45 2013
New Revision: 245183
URL: http://svnweb.freebsd.org/changeset/base/245183

Log:
  If spectral scan is enabled, ensure radar report PHY errors are also
  enabled.

Modified:
  head/sys/dev/ath/if_ath_rx.c

Modified: head/sys/dev/ath/if_ath_rx.c
==============================================================================
--- head/sys/dev/ath/if_ath_rx.c        Tue Jan  8 21:42:30 2013        
(r245182)
+++ head/sys/dev/ath/if_ath_rx.c        Tue Jan  8 22:12:45 2013        
(r245183)
@@ -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;
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to