summaryrefslogtreecommitdiffstats
path: root/sys/dev/ath
diff options
context:
space:
mode:
authorsam <sam@FreeBSD.org>2006-07-26 03:48:41 +0000
committersam <sam@FreeBSD.org>2006-07-26 03:48:41 +0000
commitdd9b242509c8e495ce9d0d060c45b5f0ab475e29 (patch)
tree0b366c18731c548661db65681bc28669091e0869 /sys/dev/ath
parent9a8b92caeb29a154c10e66285394ac111c5e5407 (diff)
downloadFreeBSD-src-dd9b242509c8e495ce9d0d060c45b5f0ab475e29.zip
FreeBSD-src-dd9b242509c8e495ce9d0d060c45b5f0ab475e29.tar.gz
check tim is present in the beacon before defer'ing the mcast buffer bit;
insures we don't do this when operating in adhoc mode Submitted by: avatar@ MFC after: 1 week
Diffstat (limited to 'sys/dev/ath')
-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 a312367..f7d6e28 100644
--- a/sys/dev/ath/if_ath.c
+++ b/sys/dev/ath/if_ath.c
@@ -2137,7 +2137,8 @@ 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 (sc->sc_boff.bo_tim_len && (sc->sc_boff.bo_tim[4] & 1)) {
+ /* NB: only at DTIM */
ATH_TXQ_LOCK(cabq);
ATH_TXQ_LOCK(&sc->sc_mcastq);
if (nmcastq) {
OpenPOWER on IntegriCloud