Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 26 Mar 2011 10:52:38 +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: r220029 - head/sys/dev/ath
Message-ID:  <201103261052.p2QAqcQg019607@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: adrian
Date: Sat Mar 26 10:52:37 2011
New Revision: 220029
URL: http://svn.freebsd.org/changeset/base/220029

Log:
  Add in the hardware PS-POLL frame reception setting, but leave it disabled
  by default.
  
  Adventourous souls with an AR9220/AR9280 or later and who have a device
  that sends PS-POLL frames may wish to try tinkering with this option and
  get back to me.

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

Modified: head/sys/dev/ath/if_ath.c
==============================================================================
--- head/sys/dev/ath/if_ath.c	Sat Mar 26 10:51:56 2011	(r220028)
+++ head/sys/dev/ath/if_ath.c	Sat Mar 26 10:52:37 2011	(r220029)
@@ -1927,6 +1927,19 @@ ath_calcrxfilter(struct ath_softc *sc)
 	if (ic->ic_opmode == IEEE80211_M_HOSTAP &&
 	    IEEE80211_IS_CHAN_ANYG(ic->ic_curchan))
 		rfilt |= HAL_RX_FILTER_BEACON;
+
+#if 0
+	/*
+	 * Enable hardware PS-POLL only for hostap mode;
+	 * STA mode sends PS-POLL frames but never
+	 * sends them.
+	 */
+	if (ath_hal_getcapability(ah, HAL_CAP_HAS_PSPOLL,
+	    0, NULL) == HAL_OK &&
+	    ic->ic_opmode == IEEE80211_M_HOSTAP)
+		rfilt |= HAL_RX_FILTER_PSPOLL;
+#endif
+
 	if (sc->sc_nmeshvaps) {
 		rfilt |= HAL_RX_FILTER_BEACON;
 		if (sc->sc_hasbmatch)
@@ -1936,8 +1949,14 @@ ath_calcrxfilter(struct ath_softc *sc)
 	}
 	if (ic->ic_opmode == IEEE80211_M_MONITOR)
 		rfilt |= HAL_RX_FILTER_CONTROL;
+
+	/*
+	 * Enable RX of compressed BAR frames only when doing
+	 * 802.11n. Required for A-MPDU.
+	 */
 	if (IEEE80211_IS_CHAN_HT(ic->ic_curchan))
 		rfilt |= HAL_RX_FILTER_COMPBAR;
+
 	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?201103261052.p2QAqcQg019607>