diff options
| author | Sam Leffler <sam@FreeBSD.org> | 2006-04-19 16:14:47 +0000 |
|---|---|---|
| committer | Sam Leffler <sam@FreeBSD.org> | 2006-04-19 16:14:47 +0000 |
| commit | 52511b60357f81d07958610d4ae355a346bcc2c0 (patch) | |
| tree | b346ba570fd4c0f4a6f0706e7f199daa3176eeef /sys/dev | |
| parent | 8a9eeaab806c35b48e0df6eeae0bb4e63c3f4c39 (diff) | |
Notes
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/ath/if_ath.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ath/if_ath.c b/sys/dev/ath/if_ath.c index 31ff04f80e36..4d7ba6d77cab 100644 --- a/sys/dev/ath/if_ath.c +++ b/sys/dev/ath/if_ath.c @@ -2037,7 +2037,7 @@ ath_beacon_proc(void *arg, int pending) * of the TIM bitmap). */ m = bf->bf_m; - ncabq = ath_hal_numtxpending(ah, sc->sc_cabq->axq_qnum); + ncabq = sc->sc_cabq->axq_depth; if (ieee80211_beacon_update(ic, bf->bf_node, &sc->sc_boff, m, ncabq)) { /* XXX too conservative? */ bus_dmamap_unload(sc->sc_dmat, bf->bf_dmamap); @@ -2097,7 +2097,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 (ncabq != 0 && (sc->sc_boff.bo_tim[4] & 1)) /* NB: only at DTIM */ + if (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); |
