File tree Expand file tree Collapse file tree 2 files changed +38
-1
lines changed Expand file tree Collapse file tree 2 files changed +38
-1
lines changed Original file line number Diff line number Diff line change @@ -99,10 +99,28 @@ static void eep_6174_dump_base_header(struct atheepmgr *aem)
99
99
100
100
static void eep_6174_dump_power_info (struct atheepmgr * aem )
101
101
{
102
+ #define PR_CTL (__pref , __band , __is_2g ) \
103
+ do { \
104
+ EEP_PRINT_SUBSECT_NAME(__pref " CTL data"); \
105
+ ar9300_dump_ctl(eep->ctlIndex ## __band, \
106
+ (uint8_t *)eep->ctlFreqBin ## __band, \
107
+ (uint8_t *)eep->ctlData ## __band, \
108
+ QCA6174_NUM_ ## __band ## _CTLS, \
109
+ QCA6174_NUM_ ## __band ## _BAND_EDGES, \
110
+ __is_2g); \
111
+ } while (0);
112
+
102
113
const struct eep_6174_priv * emp = aem -> eepmap_priv ;
103
114
const struct qca6174_eeprom * eep = & emp -> eep ;
104
115
105
116
EEP_PRINT_SECT_NAME ("EEPROM Power Info" );
117
+
118
+ if (1 ) /* TODO: 2GHz support test */
119
+ PR_CTL ("2 GHz" , 2 G , 1 );
120
+ if (1 ) /* TODO: 5GHz support test */
121
+ PR_CTL ("5 GHz" , 5 G , 0 );
122
+
123
+ #undef PR_CTL
106
124
}
107
125
108
126
const struct eepmap eepmap_6174 = {
Original file line number Diff line number Diff line change 19
19
20
20
#define QCA6174_CUSTOMER_DATA_SIZE 20
21
21
22
+ #define QCA6174_NUM_2G_CTLS 18
23
+ #define QCA6174_NUM_2G_BAND_EDGES 4
24
+ #define QCA6174_NUM_5G_CTLS 18
25
+ #define QCA6174_NUM_5G_BAND_EDGES 8
26
+
22
27
struct qca6174_base_eep_hdr {
23
28
uint16_t length ;
24
29
uint16_t checksum ;
@@ -32,7 +37,21 @@ struct qca6174_base_eep_hdr {
32
37
struct qca6174_eeprom {
33
38
struct qca6174_base_eep_hdr baseEepHeader ;
34
39
35
- uint8_t __unkn_0040 [8060 ]; /* to match structure size to the EEPROM data size */
40
+ uint8_t __unkn_0040 [2008 ];
41
+
42
+ uint8_t ctlIndex2G [QCA6174_NUM_2G_CTLS ];
43
+ uint8_t __pad_082a [2 ];
44
+ uint8_t ctlFreqBin2G [QCA6174_NUM_2G_CTLS ][QCA6174_NUM_2G_BAND_EDGES ];
45
+ uint8_t ctlData2G [QCA6174_NUM_2G_CTLS ][QCA6174_NUM_2G_BAND_EDGES ];
46
+
47
+ uint8_t __unkn_08bc [3766 ];
48
+
49
+ uint8_t ctlIndex5G [QCA6174_NUM_5G_CTLS ];
50
+ uint8_t __pad_1784 [4 ];
51
+ uint8_t ctlFreqBin5G [QCA6174_NUM_5G_CTLS ][QCA6174_NUM_5G_BAND_EDGES ];
52
+ uint8_t ctlData5G [QCA6174_NUM_5G_CTLS ][QCA6174_NUM_5G_BAND_EDGES ];
53
+
54
+ uint8_t __unkn_18a8 [1812 ]; /* to match structure size to the EEPROM data size */
36
55
} __attribute__ ((packed ));
37
56
38
57
/* Structure size watchdog */
You can’t perform that action at this time.
0 commit comments