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