Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src-draft/trunk]: src/sys/dev/ic Add MCS rate entries



details:   https://anonhg.NetBSD.org/src-all/rev/08f7d6398b8b
branches:  trunk
changeset: 371145:08f7d6398b8b
user:      Martin Husemann <martin%NetBSD.org@localhost>
date:      Sun Jun 19 12:40:00 2022 +0200

description:
Add MCS rate entries

diffstat:

 sys/dev/ic/rt2860reg.h |  39 +++++++++++++++++++++++++++++++++++++--
 1 files changed, 37 insertions(+), 2 deletions(-)

diffs (70 lines):

diff -r e5e57b3e1c84 -r 08f7d6398b8b sys/dev/ic/rt2860reg.h
--- a/sys/dev/ic/rt2860reg.h    Sat May 14 23:30:45 2022 +1000
+++ b/sys/dev/ic/rt2860reg.h    Sun Jun 19 12:40:00 2022 +0200
@@ -1043,10 +1043,12 @@
 #define RT5390_EEPROM_IQ_GAIN_CAL_TX1_CH140_TO_CH165_5GHZ      0x14e
 #define RT5390_EEPROM_IQ_PHASE_CAL_TX1_CH140_TO_CH165_5GHZ     0x14f
 
+/* These are indexes into the rt2860_rates[] array */
 #define RT2860_RIDX_CCK1        0
 #define RT2860_RIDX_CCK11       3
 #define RT2860_RIDX_OFDM6       4
-#define RT2860_RIDX_MAX                11
+#define        RT2860_RIDX_MCS0        12
+#define RT2860_RIDX_MAX                36
 static const struct rt2860_rate {
        uint8_t         rate;
        uint8_t         mcs;
@@ -1055,10 +1057,13 @@
        uint16_t        sp_ack_dur;
        uint16_t        lp_ack_dur;
 } rt2860_rates[] = {
+       /* CCK rates (11b) */
        {   2, 0, IEEE80211_T_DS,   0, 314, 314 },
        {   4, 1, IEEE80211_T_DS,   1, 258, 162 },
        {  11, 2, IEEE80211_T_DS,   2, 223, 127 },
        {  22, 3, IEEE80211_T_DS,   3, 213, 117 },
+
+       /* OFDM rates (11a / 11g) */
        {  12, 0, IEEE80211_T_OFDM, 4,  60,  60 },
        {  18, 1, IEEE80211_T_OFDM, 4,  52,  52 },
        {  24, 2, IEEE80211_T_OFDM, 6,  48,  48 },
@@ -1066,7 +1071,37 @@
        {  48, 4, IEEE80211_T_OFDM, 8,  44,  44 },
        {  72, 5, IEEE80211_T_OFDM, 8,  40,  40 },
        {  96, 6, IEEE80211_T_OFDM, 8,  40,  40 },
-       { 108, 7, IEEE80211_T_OFDM, 8,  40,  40 }
+       { 108, 7, IEEE80211_T_OFDM, 8,  40,  40 },
+
+       /* MCS - single stream */
+       {  0x80, 0, IEEE80211_T_HT, 4, 60, 60 },
+       {  0x81, 1, IEEE80211_T_HT, 4, 60, 60 },
+       {  0x82, 2, IEEE80211_T_HT, 4, 60, 60 },
+       {  0x83, 3, IEEE80211_T_HT, 4, 60, 60 },
+       {  0x84, 4, IEEE80211_T_HT, 4, 60, 60 },
+       {  0x85, 5, IEEE80211_T_HT, 4, 60, 60 },
+       {  0x86, 6, IEEE80211_T_HT, 4, 60, 60 },
+       {  0x87, 7, IEEE80211_T_HT, 4, 60, 60 },
+
+       /* MCS - 2 streams */
+       {  0x88, 8, IEEE80211_T_HT, 4, 60, 60 },
+       {  0x89, 9, IEEE80211_T_HT, 4, 60, 60 },
+       {  0x8a, 10, IEEE80211_T_HT, 4, 60, 60 },
+       {  0x8b, 11, IEEE80211_T_HT, 4, 60, 60 },
+       {  0x8c, 12, IEEE80211_T_HT, 4, 60, 60 },
+       {  0x8d, 13, IEEE80211_T_HT, 4, 60, 60 },
+       {  0x8e, 14, IEEE80211_T_HT, 4, 60, 60 },
+       {  0x8f, 15, IEEE80211_T_HT, 4, 60, 60 },
+
+       /* MCS - 3 streams */
+       {  0x90, 16, IEEE80211_T_HT, 4, 60, 60 },
+       {  0x91, 17, IEEE80211_T_HT, 4, 60, 60 },
+       {  0x92, 18, IEEE80211_T_HT, 4, 60, 60 },
+       {  0x93, 19, IEEE80211_T_HT, 4, 60, 60 },
+       {  0x94, 20, IEEE80211_T_HT, 4, 60, 60 },
+       {  0x95, 21, IEEE80211_T_HT, 4, 60, 60 },
+       {  0x96, 22, IEEE80211_T_HT, 4, 60, 60 },
+       {  0x97, 23, IEEE80211_T_HT, 4, 60, 60 },
 };
 
 /*



Home | Main Index | Thread Index | Old Index