Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F144641233
D48113.1775974488.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D48113.1775974488.diff
View Options
diff --git a/sys/dev/rtwn/rtl8812a/r12a_tx.c b/sys/dev/rtwn/rtl8812a/r12a_tx.c
--- a/sys/dev/rtwn/rtl8812a/r12a_tx.c
+++ b/sys/dev/rtwn/rtl8812a/r12a_tx.c
@@ -56,14 +56,35 @@
#include <dev/rtwn/rtl8812a/r12a.h>
#include <dev/rtwn/rtl8812a/r12a_tx_desc.h>
+/*
+ * This function actually handles the secondary channel mapping,
+ * not the primary channel mapping. It hints to the MAC where
+ * to handle duplicate transmission of the RTS/CTS and payload
+ * frames when the requested transmit channel width is less than
+ * the configured channel width.
+ *
+ * Note: the vendor driver and linux rtw88 driver both leave this
+ * field currently set to 0.
+ *
+ * See the rtl8812au vendor driver, hal/rtl8812a_xmit.c:SCMapping_8812()
+ * and where it's used (and ignored.)
+ */
static int
r12a_get_primary_channel(struct rtwn_softc *sc, struct ieee80211_channel *c)
{
+#if 0
/* XXX VHT80; VHT40 */
if (IEEE80211_IS_CHAN_HT40U(c))
return (R12A_TXDW5_PRIM_CHAN_20_80_2);
else
return (R12A_TXDW5_PRIM_CHAN_20_80_3);
+#endif
+
+ /*
+ * For now just return the VHT_DATA_SC_DONOT_CARE value
+ * from the reference driver.
+ */
+ return (0);
}
static void
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Apr 12, 6:14 AM (7 h, 16 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28329151
Default Alt Text
D48113.1775974488.diff (1 KB)
Attached To
Mode
D48113: rtwn: don't set the RTS/CTS primary channel field for RTL8812AU/RTL8821AU
Attached
Detach File
Event Timeline
Log In to Comment