svn commit: r218145 - head/sys/dev/ath
Adrian Chadd
adrian at FreeBSD.org
Mon Jan 31 22:44:28 UTC 2011
Author: adrian
Date: Mon Jan 31 22:44:28 2011
New Revision: 218145
URL: http://svn.freebsd.org/changeset/base/218145
Log:
Enable AMPDU reorder processing and receiving BAR frames when doing 802.11n.
Obtained from: rpaulo@
Modified:
head/sys/dev/ath/if_ath.c
Modified: head/sys/dev/ath/if_ath.c
==============================================================================
--- head/sys/dev/ath/if_ath.c Mon Jan 31 22:14:47 2011 (r218144)
+++ head/sys/dev/ath/if_ath.c Mon Jan 31 22:44:28 2011 (r218145)
@@ -2312,6 +2312,8 @@ ath_calcrxfilter(struct ath_softc *sc)
}
if (ic->ic_opmode == IEEE80211_M_MONITOR)
rfilt |= HAL_RX_FILTER_CONTROL;
+ 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;
@@ -3891,6 +3893,10 @@ rx_accept:
IEEE80211_KEYIX_NONE : rs->rs_keyix);
sc->sc_lastrs = rs;
if (ni != NULL) {
+ /* tag AMPDU aggregates for reorder processing */
+ if (ni->ni_flags & IEEE80211_NODE_HT)
+ m->m_flags |= M_AMPDU;
+
/*
* Sending station is known, dispatch directly.
*/
More information about the svn-src-all
mailing list