Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 8 Jan 2013 22:12:45 +0000 (UTC)
From:      Adrian Chadd <adrian@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r245183 - head/sys/dev/ath
Message-ID:  <201301082212.r08MCjF3024741@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201301082212.r08MCjF3024741>