svn commit: r224907 - head/sys/net80211
Adrian Chadd
adrian at FreeBSD.org
Tue Aug 16 09:07:59 UTC 2011
Author: adrian
Date: Tue Aug 16 09:07:59 2011
New Revision: 224907
URL: http://svn.freebsd.org/changeset/base/224907
Log:
Fix BAR frame TX completion - successful transmission is indicated
by a status of 0.
Approved by: re (kib)
Modified:
head/sys/net80211/ieee80211_ht.c
Modified: head/sys/net80211/ieee80211_ht.c
==============================================================================
--- head/sys/net80211/ieee80211_ht.c Tue Aug 16 09:06:44 2011 (r224906)
+++ head/sys/net80211/ieee80211_ht.c Tue Aug 16 09:07:59 2011 (r224907)
@@ -2207,7 +2207,7 @@ bar_tx_complete(struct ieee80211_node *n
callout_pending(&tap->txa_timer)) {
struct ieee80211com *ic = ni->ni_ic;
- if (status) /* ACK'd */
+ if (status == 0) /* ACK'd */
bar_stop_timer(tap);
ic->ic_bar_response(ni, tap, status);
/* NB: just let timer expire so we pace requests */
@@ -2219,7 +2219,7 @@ ieee80211_bar_response(struct ieee80211_
struct ieee80211_tx_ampdu *tap, int status)
{
- if (status != 0) { /* got ACK */
+ if (status == 0) { /* got ACK */
IEEE80211_NOTE(ni->ni_vap, IEEE80211_MSG_11N,
ni, "BAR moves BA win <%u:%u> (%u frames) txseq %u tid %u",
tap->txa_start,
More information about the svn-src-all
mailing list