summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authoradrian <adrian@FreeBSD.org>2011-08-16 09:07:59 +0000
committeradrian <adrian@FreeBSD.org>2011-08-16 09:07:59 +0000
commit82e7e2a2904eb45b64f219faf9a9e96f6673e433 (patch)
treea785b873121f09639f4de22a09671b778f4ad08b /sys
parent328bafabf71b73cdba41dc99f58f8bf14f35b816 (diff)
downloadFreeBSD-src-82e7e2a2904eb45b64f219faf9a9e96f6673e433.zip
FreeBSD-src-82e7e2a2904eb45b64f219faf9a9e96f6673e433.tar.gz
Fix BAR frame TX completion - successful transmission is indicated
by a status of 0. Approved by: re (kib)
Diffstat (limited to 'sys')
-rw-r--r--sys/net80211/ieee80211_ht.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net80211/ieee80211_ht.c b/sys/net80211/ieee80211_ht.c
index 61c84e9..e6dbbf2 100644
--- a/sys/net80211/ieee80211_ht.c
+++ b/sys/net80211/ieee80211_ht.c
@@ -2207,7 +2207,7 @@ bar_tx_complete(struct ieee80211_node *ni, void *arg, int status)
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_node *ni,
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,
OpenPOWER on IntegriCloud