From 04f19fd699f50d949be1b6ff40287ddb3982ffe0 Mon Sep 17 00:00:00 2001 From: Sam Leffler Date: Sat, 2 May 2009 20:16:55 +0000 Subject: make superg/fast-frames state dynamically-allocated (and indirect off the com structure instead of embedded); this reduces the overhead when not configured and reduces visibility of the contents --- sys/dev/ath/if_ath.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'sys/dev/ath') diff --git a/sys/dev/ath/if_ath.c b/sys/dev/ath/if_ath.c index c7c792703a56..d0fb6eeaf4bc 100644 --- a/sys/dev/ath/if_ath.c +++ b/sys/dev/ath/if_ath.c @@ -3995,12 +3995,7 @@ rx_next: if ((ifp->if_drv_flags & IFF_DRV_OACTIVE) == 0) { #ifdef IEEE80211_SUPPORT_SUPERG - if (ic->ic_stageqdepth) { - ieee80211_age_stageq(ic, WME_AC_VO, 100); - ieee80211_age_stageq(ic, WME_AC_VI, 100); - ieee80211_age_stageq(ic, WME_AC_BE, 100); - ieee80211_age_stageq(ic, WME_AC_BK, 100); - } + ieee80211_ff_age_all(ic, 100); #endif if (!IFQ_IS_EMPTY(&ifp->if_snd)) ath_start(ifp); @@ -4980,7 +4975,7 @@ ath_tx_processq(struct ath_softc *sc, struct ath_txq *txq) * Flush fast-frame staging queue when traffic slows. */ if (txq->axq_depth <= 1) - ieee80211_flush_stageq(ic, txq->axq_ac); + ieee80211_ff_flush(ic, txq->axq_ac); #endif return nacked; } -- cgit v1.3