diff options
author | Adrian Chadd <adrian@FreeBSD.org> | 2012-04-15 20:29:39 +0000 |
---|---|---|
committer | Adrian Chadd <adrian@FreeBSD.org> | 2012-04-15 20:29:39 +0000 |
commit | 2aa563dfeb65f4e973ba9b043050dd92beea35f3 (patch) | |
tree | f01f1b029be7f02776024101a6deb8996053ab04 /sys/dev/mwl | |
parent | 82d05362e67e7f08c059648e9d0eab122cecdaca (diff) | |
download | src-2aa563dfeb65f4e973ba9b043050dd92beea35f3.tar.gz src-2aa563dfeb65f4e973ba9b043050dd92beea35f3.zip |
Migrate the net80211 TX aggregation state to be from per-AC to per-TID.
TODO:
* Test mwl(4) more thoroughly!
Reviewed by: bschmidt (for iwn)
Notes
Notes:
svn path=/head/; revision=234324
Diffstat (limited to 'sys/dev/mwl')
-rw-r--r-- | sys/dev/mwl/if_mwl.c | 16 | ||||
-rw-r--r-- | sys/dev/mwl/if_mwlvar.h | 4 |
2 files changed, 10 insertions, 10 deletions
diff --git a/sys/dev/mwl/if_mwl.c b/sys/dev/mwl/if_mwl.c index bc1a15e9aedc..f54320564c28 100644 --- a/sys/dev/mwl/if_mwl.c +++ b/sys/dev/mwl/if_mwl.c @@ -3739,7 +3739,7 @@ mwl_addba_request(struct ieee80211_node *ni, struct ieee80211_tx_ampdu *tap, /* NB: no held reference to ni */ sp = mwl_hal_bastream_alloc(MWL_VAP(vap)->mv_hvap, (baparamset & IEEE80211_BAPS_POLICY_IMMEDIATE) != 0, - ni->ni_macaddr, WME_AC_TO_TID(tap->txa_ac), ni->ni_htparam, + ni->ni_macaddr, tap->txa_tid, ni->ni_htparam, ni, tap); if (sp == NULL) { /* @@ -3776,8 +3776,8 @@ mwl_addba_response(struct ieee80211_node *ni, struct ieee80211_tx_ampdu *tap, if (bas == NULL) { /* XXX should not happen */ DPRINTF(sc, MWL_DEBUG_AMPDU, - "%s: no BA stream allocated, AC %d\n", - __func__, tap->txa_ac); + "%s: no BA stream allocated, TID %d\n", + __func__, tap->txa_tid); sc->sc_stats.mst_addba_nostream++; return 0; } @@ -3805,18 +3805,18 @@ mwl_addba_response(struct ieee80211_node *ni, struct ieee80211_tx_ampdu *tap, tap->txa_private = NULL; DPRINTF(sc, MWL_DEBUG_AMPDU, - "%s: create failed, error %d, bufsiz %d AC %d " + "%s: create failed, error %d, bufsiz %d TID %d " "htparam 0x%x\n", __func__, error, bufsiz, - tap->txa_ac, ni->ni_htparam); + tap->txa_tid, ni->ni_htparam); sc->sc_stats.mst_bacreate_failed++; return 0; } /* NB: cache txq to avoid ptr indirect */ - mwl_bastream_setup(bas, tap->txa_ac, bas->bastream->txq); + mwl_bastream_setup(bas, tap->txa_tid, bas->bastream->txq); DPRINTF(sc, MWL_DEBUG_AMPDU, - "%s: bastream %p assigned to txq %d AC %d bufsiz %d " + "%s: bastream %p assigned to txq %d TID %d bufsiz %d " "htparam 0x%x\n", __func__, bas->bastream, - bas->txq, tap->txa_ac, bufsiz, ni->ni_htparam); + bas->txq, tap->txa_tid, bufsiz, ni->ni_htparam); } else { /* * Other side NAK'd us; return the resources. diff --git a/sys/dev/mwl/if_mwlvar.h b/sys/dev/mwl/if_mwlvar.h index a75cedaec9d1..7071ba03562b 100644 --- a/sys/dev/mwl/if_mwlvar.h +++ b/sys/dev/mwl/if_mwlvar.h @@ -187,10 +187,10 @@ struct mwl_bastate { }; static __inline__ void -mwl_bastream_setup(struct mwl_bastate *bas, int ac, int txq) +mwl_bastream_setup(struct mwl_bastate *bas, int tid, int txq) { bas->txq = txq; - bas->qos = htole16(WME_AC_TO_TID(ac) | IEEE80211_QOS_ACKPOLICY_BA); + bas->qos = htole16(tid | IEEE80211_QOS_ACKPOLICY_BA); } static __inline__ void |