summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authoradrian <adrian@FreeBSD.org>2011-09-28 03:11:51 +0000
committeradrian <adrian@FreeBSD.org>2011-09-28 03:11:51 +0000
commit38b4a9842482e6817e8229e2fb567a4431b1924b (patch)
tree90836377efc835acbe66c02627c0ede0a5f287b4 /sys
parentbdf51ae15ccce9ea6742068bbc9af467a27c325e (diff)
downloadFreeBSD-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.c3
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);
}
OpenPOWER on IntegriCloud