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_win.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
*****************************************************************************/
15
16
#ifndef __PHYDM_FEATURES_WIN_H__
17
#define __PHYDM_FEATURES_WIN_H__
18
19
#if (RTL8814A_SUPPORT || RTL8821C_SUPPORT || RTL8822B_SUPPORT ||\
20
RTL8197F_SUPPORT || RTL8192F_SUPPORT || RTL8198F_SUPPORT ||\
21
RTL8822C_SUPPORT || RTL8814B_SUPPORT)
22
#define PHYDM_LA_MODE_SUPPORT 1
23
#else
24
#define PHYDM_LA_MODE_SUPPORT 0
25
#endif
26
27
#if (RTL8822B_SUPPORT || RTL8812A_SUPPORT || RTL8197F_SUPPORT ||\
28
RTL8192F_SUPPORT)
29
#define DYN_ANT_WEIGHTING_SUPPORT
30
#endif
31
32
#if (RTL8822B_SUPPORT || RTL8821C_SUPPORT)
33
#define FAHM_SUPPORT
34
#endif
35
#define NHM_SUPPORT
36
#define CLM_SUPPORT
37
38
#if (RTL8822C_SUPPORT)
39
#define NHM_DYM_PW_TH_SUPPORT
40
#endif
41
42
#if (RTL8822C_SUPPORT)
43
/*#define PHYDM_PHYSTAUS_AUTO_SWITCH*/
44
#endif
45
46
/*#define PHYDM_TDMA_DIG_SUPPORT*/
47
48
#if (RTL8814B_SUPPORT)
49
/*#define PHYDM_TDMA_DIG_SUPPORT*/
50
#ifdef PHYDM_TDMA_DIG_SUPPORT
51
/*#define IS_USE_NEW_TDMA*/ /*new tdma dig test*/
52
#endif
53
#endif
54
55
#if (RTL8197F_SUPPORT || RTL8822B_SUPPORT || RTL8814B_SUPPORT)
56
/*#define PHYDM_LNA_SAT_CHK_SUPPORT*/
57
#ifdef PHYDM_LNA_SAT_CHK_SUPPORT
58
59
#if (RTL8197F_SUPPORT)
60
/*#define PHYDM_LNA_SAT_CHK_SUPPORT_TYPE1*/
61
#endif
62
63
#if (RTL8822B_SUPPORT)
64
/*#define PHYDM_LNA_SAT_CHK_TYPE2*/
65
#endif
66
67
#if (RTL8814B_SUPPORT)
68
/*#define PHYDM_LNA_SAT_CHK_TYPE1*/
69
#endif
70
#endif
71
#endif
72
73
#if (RTL8822B_SUPPORT || RTL8710B_SUPPORT || RTL8723D_SUPPORT ||\
74
RTL8192F_SUPPORT)
75
#define PHYDM_POWER_TRAINING_SUPPORT
76
#endif
77
78
#if (RTL8822C_SUPPORT || RTL8814B_SUPPORT)
79
#define PHYDM_PMAC_TX_SETTING_SUPPORT
80
#endif
81
82
#if (RTL8822C_SUPPORT || RTL8814B_SUPPORT)
83
#define PHYDM_MP_SUPPORT
84
#endif
85
86
#if (RTL8822C_SUPPORT)
87
#define PHYDM_CCK_RX_PATHDIV_SUPPORT
88
#endif
89
90
#if (RTL8822B_SUPPORT)
91
#define PHYDM_TXA_CALIBRATION
92
#endif
93
94
#if (RTL8188E_SUPPORT || RTL8192E_SUPPORT)
95
#define PHYDM_PRIMARY_CCA
96
#endif
97
98
#if (RTL8188F_SUPPORT || RTL8710B_SUPPORT || RTL8821C_SUPPORT ||\
99
RTL8822B_SUPPORT || RTL8192F_SUPPORT)
100
#define PHYDM_DC_CANCELLATION
101
#endif
102
103
#if (RTL8822B_SUPPORT || RTL8197F_SUPPORT || RTL8192F_SUPPORT)
104
#define CONFIG_ADAPTIVE_SOML
105
#endif
106
107
#if (RTL8192F_SUPPORT)
108
#define CONFIG_8912F_SPUR_CALIBRATION
109
#endif
110
111
/*Antenna Diversity*/
112
#define CONFIG_PHYDM_ANTENNA_DIVERSITY
113
#ifdef CONFIG_PHYDM_ANTENNA_DIVERSITY
114
115
#if (RTL8723B_SUPPORT || RTL8821A_SUPPORT || RTL8188F_SUPPORT ||\
116
RTL8821C_SUPPORT || RTL8723D_SUPPORT)
117
#define CONFIG_S0S1_SW_ANTENNA_DIVERSITY
118
#endif
119
120
#if (RTL8822B_SUPPORT)
121
/*#define ODM_EVM_ENHANCE_ANTDIV*/
122
/*#define CONFIG_2T3R_ANTENNA*/
123
/*#define CONFIG_2T4R_ANTENNA*/
124
#endif
125
126
/* --[SmtAnt]-----------------------------------------*/
127
#if (RTL8821A_SUPPORT)
128
/*#define CONFIG_HL_SMART_ANTENNA_TYPE1*/
129
#define CONFIG_FAT_PATCH
130
#endif
131
132
#if (RTL8822B_SUPPORT)
133
/*#define CONFIG_HL_SMART_ANTENNA_TYPE2*/
134
#endif
135
136
#if (defined(CONFIG_HL_SMART_ANTENNA_TYPE1) || defined(CONFIG_HL_SMART_ANTENNA_TYPE2))
137
#define CONFIG_HL_SMART_ANTENNA
138
#endif
139
140
/* --------------------------------------------------*/
141
142
#endif
143
144
#if (RTL8822B_SUPPORT || RTL8822C_SUPPORT || RTL8192F_SUPPORT)
145
#define CONFIG_PATH_DIVERSITY
146
#endif
147
148
/*[SmartAntenna]*/
149
#define CONFIG_SMART_ANTENNA
150
#ifdef CONFIG_SMART_ANTENNA
151
/*#define CONFIG_CUMITEK_SMART_ANTENNA*/
152
#endif
153
/* --------------------------------------------------*/
154
155
#if (RTL8188E_SUPPORT || RTL8192E_SUPPORT)
156
#define CONFIG_RECEIVER_BLOCKING
157
#endif
158
159
#if (RTL8812A_SUPPORT || RTL8821A_SUPPORT || RTL8881A_SUPPORT ||\
160
RTL8192E_SUPPORT || RTL8723B_SUPPORT)
161
#define CONFIG_RA_FW_DBG_CODE
162
#endif
163
164
/* #ifdef CONFIG_SUPPORT_DYNAMIC_TXPWR */
165
#define CONFIG_DYNAMIC_TX_TWR
166
/* #endif */
167
#define CONFIG_PSD_TOOL
168
#define PHYDM_SUPPORT_ADAPTIVITY
169
#define PHYDM_SUPPORT_CCKPD
170
/*#define CONFIG_RA_DYNAMIC_RTY_LIMIT*/
171
#define CONFIG_ANT_DETECTION
172
#define CONFIG_BB_TXBF_API
173
#define ODM_CONFIG_BT_COEXIST
174
#define CONFIG_PHYDM_DFS_MASTER
175
#define PHYDM_SUPPORT_RSSI_MONITOR
176
#define PHYDM_AUTO_DEGBUG
177
#define CONFIG_PHYDM_DEBUG_FUNCTION
178
#define CFG_DIG_DAMPING_CHK
179
180
#ifdef PHYDM_BEAMFORMING_SUPPORT
181
#if (RTL8812A_SUPPORT || RTL8821A_SUPPORT || RTL8192E_SUPPORT ||\
182
RTL8814A_SUPPORT || RTL8881A_SUPPORT)
183
#define PHYDM_BEAMFORMING_VERSION1
184
#endif
185
#if (RTL8192F_SUPPORT || RTL8195B_SUPPORT || RTL8821C_SUPPORT ||\
186
RTL8822B_SUPPORT || RTL8197F_SUPPORT || RTL8198F_SUPPORT ||\
187
RTL8822C_SUPPORT || RTL8814B_SUPPORT)
188
#define DRIVER_BEAMFORMING_VERSION2
189
#endif
190
#endif
191
192
#if (RTL8822B_SUPPORT || RTL8192F_SUPPORT)
193
/*#define CONFIG_DIRECTIONAL_BF*/
194
#endif
195
196
#if (RTL8822C_SUPPORT)
197
#define CONFIG_MU_RSOML
198
#endif
199
200
#endif
201
202