summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsam <sam@FreeBSD.org>2008-10-27 17:43:23 +0000
committersam <sam@FreeBSD.org>2008-10-27 17:43:23 +0000
commit5eddad231d9c641a713287e7c01a518ddb9df072 (patch)
tree99c6426efdcc6a9adb8e236bc645c6186057a6fb
parenta54c9a2c1d634b6e22c5c4c4c121bd76cea6d17f (diff)
downloadFreeBSD-src-5eddad231d9c641a713287e7c01a518ddb9df072.zip
FreeBSD-src-5eddad231d9c641a713287e7c01a518ddb9df072.tar.gz
update the sta inactivity timer only if we actually received an ACK
-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 9a670c3..ac8ec64 100644
--- a/sys/dev/ath/if_ath.c
+++ b/sys/dev/ath/if_ath.c
@@ -5040,7 +5040,8 @@ ath_tx_processq(struct ath_softc *sc, struct ath_txq *txq)
pri = M_WME_GETAC(bf->bf_m);
if (pri >= WME_AC_VO)
ic->ic_wme.wme_hipri_traffic++;
- ni->ni_inact = ni->ni_inact_reload;
+ if ((bf->bf_txflags & HAL_TXDESC_NOACK) == 0)
+ ni->ni_inact = ni->ni_inact_reload;
} else {
if (ts->ts_status & HAL_TXERR_XRETRY)
sc->sc_stats.ast_tx_xretries++;
OpenPOWER on IntegriCloud