hc
2024-05-08 f309769f8af08599af39b6de4f675784ce76530d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
/******************************************************************************
 *
 * Copyright(c) 2007 - 2017  Realtek Corporation.
 *
 * This program is free software; you can redistribute it and/or modify it
 * under the terms of version 2 of the GNU General Public License as
 * published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
 * more details.
 *
 * The full GNU General Public License is included in this distribution in the
 * file called LICENSE.
 *
 * Contact Information:
 * wlanfae <wlanfae@realtek.com>
 * Realtek Corporation, No. 2, Innovation Road II, Hsinchu Science Park,
 * Hsinchu 300, Taiwan.
 *
 * Larry Finger <Larry.Finger@lwfinger.net>
 *
 *****************************************************************************/
 
#ifndef __PHYDM_FEATURES_CE_H__
#define __PHYDM_FEATURES_CE_H__
 
#if (RTL8814A_SUPPORT || RTL8821C_SUPPORT || RTL8822B_SUPPORT ||\
   RTL8197F_SUPPORT || RTL8192F_SUPPORT || RTL8198F_SUPPORT ||\
   RTL8822C_SUPPORT || RTL8723F_SUPPORT)
   #define PHYDM_LA_MODE_SUPPORT            1
#else
   #define PHYDM_LA_MODE_SUPPORT            0
#endif
 
#if (RTL8822B_SUPPORT || RTL8812A_SUPPORT || RTL8197F_SUPPORT ||\
   RTL8192F_SUPPORT)
   #define DYN_ANT_WEIGHTING_SUPPORT
#endif
 
#if (RTL8822B_SUPPORT || RTL8821C_SUPPORT || RTL8822C_SUPPORT ||\
   RTL8814B_SUPPORT || RTL8723F_SUPPORT)
   #define FAHM_SUPPORT
#endif
 
#if (RTL8822C_SUPPORT || RTL8723F_SUPPORT)
   #define IFS_CLM_SUPPORT
#endif
   #define NHM_SUPPORT
   #define CLM_SUPPORT
 
#if (RTL8822C_SUPPORT || RTL8723F_SUPPORT)
   #define EDCCA_CLM_SUPPORT
#endif
 
#if (RTL8822C_SUPPORT)
   #define NHM_DYM_PW_TH_SUPPORT
#endif
 
#if (RTL8822C_SUPPORT)
   /*@#define PHYDM_PHYSTAUS_AUTO_SWITCH*/
#endif
 
/*@#define PHYDM_TDMA_DIG_SUPPORT*/
 
#if (RTL8822B_SUPPORT || RTL8192F_SUPPORT || RTL8821C_SUPPORT ||\
   RTL8822C_SUPPORT || RTL8723D_SUPPORT )
   #ifdef CONFIG_TDMADIG
   #define PHYDM_TDMA_DIG_SUPPORT
   #ifdef PHYDM_TDMA_DIG_SUPPORT
   #define IS_USE_NEW_TDMA /*new tdma dig test*/
   #endif
   #endif
#endif
 
#if (RTL8814B_SUPPORT)
   /*@#define PHYDM_TDMA_DIG_SUPPORT*/
   #ifdef PHYDM_TDMA_DIG_SUPPORT
   /*@#define IS_USE_NEW_TDMA*/ /*new tdma dig test*/
   #endif
#endif
 
#if (RTL8197F_SUPPORT || RTL8822B_SUPPORT || RTL8814B_SUPPORT)
   /*@#define PHYDM_LNA_SAT_CHK_SUPPORT*/
   #ifdef PHYDM_LNA_SAT_CHK_SUPPORT
 
       #if (RTL8197F_SUPPORT)
       /*@#define PHYDM_LNA_SAT_CHK_SUPPORT_TYPE1*/
       #endif
 
       #if (RTL8822B_SUPPORT)
       /*@#define PHYDM_LNA_SAT_CHK_TYPE2*/
       #endif
 
       #if (RTL8814B_SUPPORT)
       /*@#define PHYDM_LNA_SAT_CHK_TYPE1*/
       #endif
   #endif
#endif
 
#if (RTL8822B_SUPPORT || RTL8192F_SUPPORT || RTL8723D_SUPPORT)
   #define PHYDM_POWER_TRAINING_SUPPORT
#endif
 
#if (RTL8822C_SUPPORT || RTL8814B_SUPPORT || RTL8723F_SUPPORT)
   #define PHYDM_PMAC_TX_SETTING_SUPPORT
#endif
 
#if (RTL8822C_SUPPORT || RTL8814B_SUPPORT || RTL8723F_SUPPORT)
   #define PHYDM_MP_SUPPORT
#endif
 
#if (RTL8822C_SUPPORT)
   #define    PHYDM_CCK_RX_PATHDIV_SUPPORT
#endif
 
#if (RTL8822B_SUPPORT)
   #define PHYDM_TXA_CALIBRATION
#endif
 
#if (RTL8188E_SUPPORT)
   #define    PHYDM_PRIMARY_CCA
#endif
 
#if (RTL8188F_SUPPORT || RTL8710B_SUPPORT || RTL8821C_SUPPORT ||\
   RTL8822B_SUPPORT || RTL8192F_SUPPORT)
   #define    PHYDM_DC_CANCELLATION
#endif
 
#if (RTL8822B_SUPPORT || RTL8197F_SUPPORT || RTL8192F_SUPPORT)
   #define    CONFIG_ADAPTIVE_SOML
#endif
 
#if (RTL8188E_SUPPORT || RTL8192E_SUPPORT)
   #define    CONFIG_RECEIVER_BLOCKING
#endif
 
#if (RTL8821C_SUPPORT || RTL8822C_SUPPORT || RTL8822B_SUPPORT)
   #define CONFIG_BW_INDICATION
#endif
 
#if (RTL8192F_SUPPORT)
   /*#define    CONFIG_8912F_SPUR_CALIBRATION*/
#endif
 
#if (RTL8822B_SUPPORT)
   #define    CONFIG_8822B_SPUR_CALIBRATION
#endif
 
#ifdef CONFIG_SUPPORT_DYNAMIC_TXPWR
#define CONFIG_DYNAMIC_TX_TWR
#endif
#if (RTL8822C_SUPPORT)
#define PHYDM_HW_IGI
#endif
#define PHYDM_SUPPORT_CCKPD
#define PHYDM_SUPPORT_ADAPTIVITY
 
/*@Antenna Diversity*/
#ifdef CONFIG_ANTENNA_DIVERSITY
   #define CONFIG_PHYDM_ANTENNA_DIVERSITY
 
   #ifdef CONFIG_PHYDM_ANTENNA_DIVERSITY
 
       #if (RTL8723B_SUPPORT || RTL8821A_SUPPORT ||\
            RTL8188F_SUPPORT || RTL8821C_SUPPORT ||\
            RTL8723D_SUPPORT||RTL8723F_SUPPORT)
           #define    CONFIG_S0S1_SW_ANTENNA_DIVERSITY
       #endif
 
       #if (RTL8821A_SUPPORT)
           /*@#define CONFIG_HL_SMART_ANTENNA_TYPE1*/
       #endif
 
       #if (RTL8822B_SUPPORT)
           /*@#define CONFIG_HL_SMART_ANTENNA_TYPE2*/
       #endif
 
   #endif
#endif
 
#if (RTL8822B_SUPPORT || RTL8822C_SUPPORT || RTL8192F_SUPPORT)
   #define CONFIG_PATH_DIVERSITY
#endif
 
/*@[SmartAntenna]*/
/*@#define    CONFIG_SMART_ANTENNA*/
#ifdef CONFIG_SMART_ANTENNA
   /*@#define    CONFIG_CUMITEK_SMART_ANTENNA*/
#endif
/* @--------------------------------------------------*/
 
#ifdef CONFIG_DFS_MASTER
   #define CONFIG_PHYDM_DFS_MASTER
#endif
 
#if (RTL8812A_SUPPORT || RTL8821A_SUPPORT || RTL8881A_SUPPORT ||\
   RTL8192E_SUPPORT || RTL8723B_SUPPORT)
   /*@#define    CONFIG_RA_FW_DBG_CODE*/
#endif
 
#define    CONFIG_PSD_TOOL
/*@#define    CONFIG_ANT_DETECTION*/
/*@#define    CONFIG_RA_DYNAMIC_RTY_LIMIT*/
#define    CONFIG_BB_TXBF_API
#define    CONFIG_PHYDM_DEBUG_FUNCTION
 
#ifdef CONFIG_BT_COEXIST
   #define    ODM_CONFIG_BT_COEXIST
#endif
#define    PHYDM_SUPPORT_RSSI_MONITOR
#define    PHYDM_AUTO_DEGBUG
#define CFG_DIG_DAMPING_CHK
 
 
#ifdef PHYDM_BEAMFORMING_SUPPORT
   #if (RTL8812A_SUPPORT || RTL8821A_SUPPORT || RTL8192E_SUPPORT ||\
        RTL8814A_SUPPORT || RTL8881A_SUPPORT)
       #define    PHYDM_BEAMFORMING_VERSION1
   #endif
   #if (RTL8192F_SUPPORT || RTL8195B_SUPPORT || RTL8821C_SUPPORT ||\
        RTL8822B_SUPPORT || RTL8197F_SUPPORT || RTL8198F_SUPPORT ||\
        RTL8822C_SUPPORT || RTL8814B_SUPPORT)
       #define    DRIVER_BEAMFORMING_VERSION2
   #endif
#endif
 
#if (RTL8822B_SUPPORT || RTL8822C_SUPPORT)
   #ifdef CONFIG_MCC_MODE
   #define    CONFIG_MCC_DM
   #endif
#endif
 
#if (RTL8822B_SUPPORT)
   #ifdef CONFIG_DYNAMIC_BYPASS_MODE
   #define    CONFIG_DYNAMIC_BYPASS
   #endif
#endif
 
#if (RTL8822B_SUPPORT || RTL8192F_SUPPORT)
   #define CONFIG_DIRECTIONAL_BF
#endif
 
#if (RTL8822C_SUPPORT)
   #define CONFIG_MU_RSOML
#endif
 
#endif