Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F103252902
local hcakery in rtwn to convert TX HT to VHT rates (against my local tree)
No One
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Authored By
adrian
Nov 22 2024, 4:12 PM
2024-11-22 16:12:48 (UTC+0)
Size
1 KB
Referenced Files
None
Subscribers
None
local hcakery in rtwn to convert TX HT to VHT rates (against my local tree)
View Options
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
Details
Attached
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)
Attached To
Mode
P653 local hcakery in rtwn to convert TX HT to VHT rates (against my local tree)
Attached
Detach File
Event Timeline
Log In to Comment