Page MenuHomeFreeBSD

local hcakery in rtwn to convert TX HT to VHT rates (against my local tree)

Authored By
adrian
Nov 22 2024, 4:12 PM
Size
1 KB
Referenced Files
None
Subscribers
None

local hcakery in rtwn to convert TX HT to VHT rates (against my local tree)

diff --git a/sys/dev/rtwn/rtl8812a/r12a_tx.c b/sys/dev/rtwn/rtl8812a/r12a_tx.c
index e4b792da662f..f292b1982415 100644
--- a/sys/dev/rtwn/rtl8812a/r12a_tx.c
+++ b/sys/dev/rtwn/rtl8812a/r12a_tx.c
@@ -277,6 +277,21 @@ r12a_fill_tx_desc(struct rtwn_softc *sc, struct ieee80211_node *ni,
if (ismcast)
txd->flags0 |= R12A_FLAGS0_BMCAST;
+#if 1
+ /* LOCAL HACK */
+ /*
+ * If it's an HT MCS 0..7 frame, and the node is VHT, then
+ * map it to VHT MCS 0..7. That's purely just to test
+ * out that the VHT packet transmission stuff is working OK.
+ */
+ if ((type == IEEE80211_FC0_TYPE_DATA) &&
+ (ni->ni_flags & IEEE80211_NODE_VHT) &&
+ (RTWN_RATE_IS_HT(ridx)) &&
+ (ridx < RTWN_RIDX_HT_MCS(7))) {
+ ridx = RTWN_RIDX_VHT_MCS(0, (ridx - RTWN_RIDX_HT_MCS_SHIFT));
+ }
+#endif
+
if (!ismcast) {
/* Unicast frame, check if an ACK is expected. */
if (!qos || (qos & IEEE80211_QOS_ACKPOLICY) !=

File Metadata

Mime Type
text/plain; charset=utf-8
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14805537
Default Alt Text
local hcakery in rtwn to convert TX HT to VHT rates (against my local tree) (1 KB)

Event Timeline