Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Paste
P653
local hcakery in rtwn to convert TX HT to VHT rates (against my local tree)
Active
Public
Actions
Authored by
adrian
on Nov 22 2024, 4:12 PM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Flag For Later
Award Token
Tags
None
Referenced Files
F103252902: local hcakery in rtwn to convert TX HT to VHT rates (against my local tree)
Nov 22 2024, 4:12 PM
2024-11-22 16:12:48 (UTC+0)
Subscribers
None
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) !=
Event Timeline
adrian
created this paste.
Nov 22 2024, 4:12 PM
2024-11-22 16:12:48 (UTC+0)
adrian
created this object in space
S1 Global
.
Log In to Comment