summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsam <sam@FreeBSD.org>2008-10-27 17:52:41 +0000
committersam <sam@FreeBSD.org>2008-10-27 17:52:41 +0000
commit35802cb1a389c6cfc657427bd065b4f7dfb16475 (patch)
tree4e6125da12c891dbb0c111af27e16635c0448772
parent491b070eb413590bd73b863d125c8f18ee4abb6f (diff)
downloadFreeBSD-src-35802cb1a389c6cfc657427bd065b4f7dfb16475.zip
FreeBSD-src-35802cb1a389c6cfc657427bd065b4f7dfb16475.tar.gz
correct callback status parameter; only indicate success when an ACK was
received
-rw-r--r--sys/dev/ath/if_ath.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/ath/if_ath.c b/sys/dev/ath/if_ath.c
index 6a91e11..b55dda5 100644
--- a/sys/dev/ath/if_ath.c
+++ b/sys/dev/ath/if_ath.c
@@ -5078,7 +5078,8 @@ ath_tx_processq(struct ath_softc *sc, struct ath_txq *txq)
*/
if (bf->bf_m->m_flags & M_TXCB)
ieee80211_process_callback(ni, bf->bf_m,
- ts->ts_status);
+ (bf->bf_txflags & HAL_TXDESC_NOACK) == 0 ?
+ ts->ts_status : HAL_TXERR_XRETRY);
/*
* Reclaim reference to node.
*
OpenPOWER on IntegriCloud