aboutsummaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorAdrian Chadd <adrian@FreeBSD.org>2016-04-26 01:34:21 +0000
committerAdrian Chadd <adrian@FreeBSD.org>2016-04-26 01:34:21 +0000
commitf026d6931a01b46883f2292f2d431aa66aee5ee5 (patch)
tree151ce548f6aad065ba246e4fa0707fad63d04d87 /sys/dev
parent6605a047e734723fabdfc9f78ae5acec0cc4153f (diff)
Notes
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/ath/if_ath_tx_ht.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/sys/dev/ath/if_ath_tx_ht.c b/sys/dev/ath/if_ath_tx_ht.c
index af0f77975d9f..a20607e3b863 100644
--- a/sys/dev/ath/if_ath_tx_ht.c
+++ b/sys/dev/ath/if_ath_tx_ht.c
@@ -272,8 +272,11 @@ ath_tx_rate_fill_rcflags(struct ath_softc *sc, struct ath_buf *bf)
* can receive (at least) 1 stream STBC, AND it's
* MCS 0-7, AND we have at least two chains enabled,
* enable STBC.
+ *
+ * XXX TODO: .. and the rate is an 11n rate?
*/
if (ic->ic_htcaps & IEEE80211_HTCAP_TXSTBC &&
+ ni->ni_vap->iv_flags_ht & IEEE80211_FHT_STBC_TX &&
ni->ni_htcap & IEEE80211_HTCAP_RXSTBC_1STREAM &&
(sc->sc_cur_txchainmask > 1) &&
HT_RC_2_STREAMS(rate) == 1) {
@@ -281,10 +284,6 @@ ath_tx_rate_fill_rcflags(struct ath_softc *sc, struct ath_buf *bf)
}
/*
- * XXX TODO: LDPC
- */
-
- /*
* Dual / Triple stream rate?
*/
if (HT_RC_2_STREAMS(rate) == 2)
@@ -565,6 +564,12 @@ ath_rateseries_setup(struct ath_softc *sc, struct ieee80211_node *ni,
}
/*
+ * TODO: If we're all doing 11n rates then we can set LDPC.
+ * If we've been asked to /do/ LDPC but we are handed a
+ * legacy rate, then we should complain. Loudly.
+ */
+
+ /*
* PktDuration doesn't include slot, ACK, RTS, etc timing -
* it's just the packet duration
*/