only start the cab queue if there are frames to send

MFC after:	2 weeks
This commit is contained in:
Sam Leffler 2006-02-09 22:14:11 +00:00
parent 370572d951
commit 2c27b2f635
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=155495

View File

@ -2063,7 +2063,7 @@ ath_beacon_proc(void *arg, int pending)
* Enable the CAB queue before the beacon queue to
* insure cab frames are triggered by this beacon.
*/
if (sc->sc_boff.bo_tim[4] & 1) /* NB: only at DTIM */
if (ncabq != 0 && (sc->sc_boff.bo_tim[4] & 1)) /* NB: only at DTIM */
ath_hal_txstart(ah, sc->sc_cabq->axq_qnum);
ath_hal_puttxbuf(ah, sc->sc_bhalq, bf->bf_daddr);
ath_hal_txstart(ah, sc->sc_bhalq);