aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/ath/if_ath.c
diff options
context:
space:
mode:
authorAdrian Chadd <adrian@FreeBSD.org>2020-05-13 00:05:11 +0000
committerAdrian Chadd <adrian@FreeBSD.org>2020-05-13 00:05:11 +0000
commit84f950a54dbedd700d799fb57e6068417d227070 (patch)
treef797fa292701a1fe83825fa4df06eeac889fba87 /sys/dev/ath/if_ath.c
parent83b4342743d473cdd21a703958cbc30ab6602387 (diff)
Notes
Diffstat (limited to 'sys/dev/ath/if_ath.c')
-rw-r--r--sys/dev/ath/if_ath.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/sys/dev/ath/if_ath.c b/sys/dev/ath/if_ath.c
index fa3081cff296a..6d4ccd8f0ae35 100644
--- a/sys/dev/ath/if_ath.c
+++ b/sys/dev/ath/if_ath.c
@@ -4312,6 +4312,11 @@ ath_tx_update_ratectrl(struct ath_softc *sc, struct ieee80211_node *ni,
an = ATH_NODE(ni);
ATH_NODE_UNLOCK_ASSERT(an);
+ /*
+ * XXX TODO: teach the rate control about TXERR_FILT and
+ * see about handling it (eg see how many attempts were
+ * made before it got filtered and account for that.)
+ */
if ((ts->ts_status & HAL_TXERR_FILT) == 0) {
ATH_NODE_LOCK(an);
ath_rate_tx_complete(sc, an, rc, ts, frmlen, nframes, nbad);
@@ -4355,6 +4360,9 @@ ath_tx_process_buf_completion(struct ath_softc *sc, struct ath_txq *txq,
/*
* XXX assume this isn't an aggregate
* frame.
+ *
+ * XXX TODO: also do this for filtered frames?
+ * Once rate control knows about them?
*/
ath_tx_update_ratectrl(sc, ni,
bf->bf_state.bfs_rc, ts,