diff options
author | adrian <adrian@FreeBSD.org> | 2011-09-28 03:11:51 +0000 |
---|---|---|
committer | adrian <adrian@FreeBSD.org> | 2011-09-28 03:11:51 +0000 |
commit | 38b4a9842482e6817e8229e2fb567a4431b1924b (patch) | |
tree | 90836377efc835acbe66c02627c0ede0a5f287b4 /sys | |
parent | bdf51ae15ccce9ea6742068bbc9af467a27c325e (diff) | |
download | FreeBSD-src-38b4a9842482e6817e8229e2fb567a4431b1924b.zip FreeBSD-src-38b4a9842482e6817e8229e2fb567a4431b1924b.tar.gz |
Don't bother triggering the cabq queue if it's empty.
Obtained from: Atheros
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/ath/if_ath.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/ath/if_ath.c b/sys/dev/ath/if_ath.c index 75e3212..d74abe0 100644 --- a/sys/dev/ath/if_ath.c +++ b/sys/dev/ath/if_ath.c @@ -2619,7 +2619,8 @@ ath_beacon_generate(struct ath_softc *sc, struct ieee80211vap *vap) sc->sc_stats.ast_cabq_xmit += nmcastq; } /* NB: gated by beacon so safe to start here */ - ath_hal_txstart(ah, cabq->axq_qnum); + if (! STAILQ_EMPTY(&(cabq->axq_q))) + ath_hal_txstart(ah, cabq->axq_qnum); ATH_TXQ_UNLOCK(&avp->av_mcastq); ATH_TXQ_UNLOCK(cabq); } |