1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-21 11:13:30 +00:00

Fix BAR frame TX completion - successful transmission is indicated

by a status of 0.

Approved by:	re (kib)
This commit is contained in:
Adrian Chadd 2011-08-16 09:07:59 +00:00
parent 4e32649fbf
commit 6291312c14
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=224907

View File

@ -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,