Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/ic Extent rtl8188eu_txagc[] (in a quite cryptic way ...



details:   https://anonhg.NetBSD.org/src/rev/b89127b3e9a9
branches:  trunk
changeset: 370739:b89127b3e9a9
user:      martin <martin%NetBSD.org@localhost>
date:      Mon Sep 26 19:04:49 2022 +0000

description:
Extent rtl8188eu_txagc[] (in a quite cryptic way duplicating all
zeroes?!) to avoid out of array accesses - there are RTL8192EU
variants with 2 TX chains.

diffstat:

 sys/dev/ic/rtwn_data.h |  40 +++++++++++++++++++++++++++++++++++++++-
 1 files changed, 39 insertions(+), 1 deletions(-)

diffs (54 lines):

diff -r 6eba5fc330ba -r b89127b3e9a9 sys/dev/ic/rtwn_data.h
--- a/sys/dev/ic/rtwn_data.h    Mon Sep 26 17:55:35 2022 +0000
+++ b/sys/dev/ic/rtwn_data.h    Mon Sep 26 19:04:49 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rtwn_data.h,v 1.1 2018/06/29 04:02:10 thorpej Exp $    */
+/*     $NetBSD: rtwn_data.h,v 1.2 2022/09/26 19:04:49 martin Exp $     */
 /*     $OpenBSD: r92creg.h,v 1.16 2017/09/22 13:41:56 kevlo Exp $      */
 
 /*-
@@ -1288,6 +1288,44 @@
        0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* MCS0~7. */
        0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00  /* MCS8~15. */
        }
+       } },
+       { {     /* Chain 1. */
+       {       /* Group 0. */
+       0x00, 0x00, 0x00, 0x00,                         /* CCK1~11. */
+       0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* OFDM6~54. */
+       0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* MCS0~7. */
+       0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00  /* MCS8~15. */
+       },
+       {       /* Group 1. */
+       0x00, 0x00, 0x00, 0x00,                         /* CCK1~11. */
+       0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* OFDM6~54. */
+       0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* MCS0~7. */
+       0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00  /* MCS8~15. */
+       },
+       {       /* Group 2. */
+       0x00, 0x00, 0x00, 0x00,                         /* CCK1~11. */
+       0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* OFDM6~54. */
+       0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* MCS0~7. */
+       0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00  /* MCS8~15. */
+       },
+       {       /* Group 3. */
+       0x00, 0x00, 0x00, 0x00,                         /* CCK1~11. */
+       0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* OFDM6~54. */
+       0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* MCS0~7. */
+       0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00  /* MCS8~15. */
+       },
+       {       /* Group 4. */
+       0x00, 0x00, 0x00, 0x00,                         /* CCK1~11. */
+       0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* OFDM6~54. */
+       0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* MCS0~7. */
+       0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00  /* MCS8~15. */
+       },
+       {       /* Group 5. */
+       0x00, 0x00, 0x00, 0x00,                         /* CCK1~11. */
+       0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* OFDM6~54. */
+       0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* MCS0~7. */
+       0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00  /* MCS8~15. */
+       }
        } }
 };
 



Home | Main Index | Thread Index | Old Index