Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Aug 2011 09:07:59 +0000 (UTC)
From:      Adrian Chadd <adrian@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r224907 - head/sys/net80211
Message-ID:  <201108160907.p7G97xs7049696@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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,



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201108160907.p7G97xs7049696>