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_ap.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_AP_H__
17
#define __PHYDM_FEATURES_AP_H__
18
19
#if (RTL8814A_SUPPORT || RTL8821C_SUPPORT || RTL8822B_SUPPORT ||\
20
RTL8197F_SUPPORT || RTL8192F_SUPPORT || RTL8198F_SUPPORT ||\
21
RTL8822C_SUPPORT || RTL8812F_SUPPORT || RTL8814B_SUPPORT ||\
22
RTL8197G_SUPPORT)
23
#define PHYDM_LA_MODE_SUPPORT 1
24
#else
25
#define PHYDM_LA_MODE_SUPPORT 0
26
#endif
27
28
#if (RTL8822B_SUPPORT || RTL8812A_SUPPORT || RTL8197F_SUPPORT ||\
29
RTL8192F_SUPPORT)
30
#define DYN_ANT_WEIGHTING_SUPPORT
31
#endif
32
33
#if (RTL8822B_SUPPORT || RTL8821C_SUPPORT)
34
#define FAHM_SUPPORT
35
#endif
36
#define NHM_SUPPORT
37
#define CLM_SUPPORT
38
39
#if (RTL8812F_SUPPORT)
40
/*#define PHYDM_PHYSTAUS_AUTO_SWITCH*/
41
#endif
42
43
#if (RTL8197F_SUPPORT)
44
/*#define PHYDM_TDMA_DIG_SUPPORT*/
45
#endif
46
47
#if (RTL8198F_SUPPORT || RTL8814B_SUPPORT || RTL8812F_SUPPORT ||\
48
RTL8197G_SUPPORT)
49
#define PHYDM_TDMA_DIG_SUPPORT 1
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 ||\
56
RTL8198F_SUPPORT || RTL8814B_SUPPORT || RTL8812F_SUPPORT)
57
#define PHYDM_LNA_SAT_CHK_SUPPORT
58
#ifdef PHYDM_LNA_SAT_CHK_SUPPORT
59
60
#if (RTL8197F_SUPPORT)
61
/*#define PHYDM_LNA_SAT_CHK_SUPPORT_TYPE1*/
62
#endif
63
64
#if (RTL8822B_SUPPORT)
65
/*#define PHYDM_LNA_SAT_CHK_TYPE2*/
66
#endif
67
68
#if (RTL8198F_SUPPORT || RTL8814B_SUPPORT || RTL8812F_SUPPORT)
69
#define PHYDM_LNA_SAT_CHK_TYPE1
70
#endif
71
#endif
72
#endif
73
74
#if (RTL8822B_SUPPORT)
75
/*#define PHYDM_POWER_TRAINING_SUPPORT*/
76
#endif
77
78
#if (RTL8814B_SUPPORT || RTL8198F_SUPPORT || RTL8822C_SUPPORT ||\
79
RTL8812F_SUPPORT || RTL8197G_SUPPORT)
80
#define PHYDM_PMAC_TX_SETTING_SUPPORT
81
#endif
82
83
#if (RTL8814B_SUPPORT || RTL8198F_SUPPORT || RTL8822C_SUPPORT ||\
84
RTL8812F_SUPPORT || RTL8197G_SUPPORT)
85
#define PHYDM_MP_SUPPORT
86
#endif
87
88
#if (RTL8822B_SUPPORT)
89
#define PHYDM_TXA_CALIBRATION
90
#endif
91
92
#if (RTL8188E_SUPPORT || RTL8197F_SUPPORT || RTL8192F_SUPPORT)
93
#define PHYDM_PRIMARY_CCA
94
#endif
95
96
#if (RTL8188F_SUPPORT || RTL8710B_SUPPORT || RTL8821C_SUPPORT ||\
97
RTL8822B_SUPPORT || RTL8192F_SUPPORT)
98
#define PHYDM_DC_CANCELLATION
99
#endif
100
101
#if (RTL8822B_SUPPORT || RTL8197F_SUPPORT || RTL8192F_SUPPORT)
102
#define CONFIG_ADAPTIVE_SOML
103
#endif
104
105
#if (RTL8812A_SUPPORT || RTL8821A_SUPPORT || RTL8881A_SUPPORT ||\
106
RTL8192E_SUPPORT || RTL8723B_SUPPORT)
107
/*#define CONFIG_RA_FW_DBG_CODE*/
108
#endif
109
110
#if (RTL8192F_SUPPORT == 1)
111
/*#define CONFIG_8912F_SPUR_CALIBRATION*/
112
#endif
113
114
#if (RTL8822B_SUPPORT == 1)
115
/* #define CONFIG_8822B_SPUR_CALIBRATION */
116
#endif
117
118
#if (RTL8197G_SUPPORT)
119
#define CONFIG_DIRECTIONAL_BF
120
#endif
121
122
#ifdef CONFIG_SUPPORT_DYNAMIC_TXPWR
123
#define CONFIG_DYNAMIC_TX_TWR
124
#endif
125
/*#define CONFIG_PSD_TOOL*/
126
#define PHYDM_SUPPORT_CCKPD
127
#define PHYDM_SUPPORT_ADAPTIVITY
128
/*#define CONFIG_PATH_DIVERSITY*/
129
/*#define CONFIG_RA_DYNAMIC_RTY_LIMIT*/
130
/*#define CONFIG_RA_DYNAMIC_RATE_ID*/
131
#define CONFIG_BB_TXBF_API
132
/*#define ODM_CONFIG_BT_COEXIST*/
133
#define PHYDM_SUPPORT_RSSI_MONITOR
134
#if !defined(CONFIG_DISABLE_PHYDM_DEBUG_FUNCTION)
135
#define CONFIG_PHYDM_DEBUG_FUNCTION
136
#endif
137
138
/* [ Configure Antenna Diversity ] */
139
#if (RTL8188F_SUPPORT)
140
#ifdef CONFIG_ANTENNA_DIVERSITY
141
#define CONFIG_PHYDM_ANTENNA_DIVERSITY
142
#define CONFIG_S0S1_SW_ANTENNA_DIVERSITY
143
#endif
144
#endif
145
146
#if defined(CONFIG_RTL_8881A_ANT_SWITCH) || defined(CONFIG_SLOT_0_ANT_SWITCH) || defined(CONFIG_SLOT_1_ANT_SWITCH) || defined(CONFIG_RTL_8197F_ANT_SWITCH)
147
#define CONFIG_PHYDM_ANTENNA_DIVERSITY
148
#define ODM_EVM_ENHANCE_ANTDIV
149
/*#define SKIP_EVM_ANTDIV_TRAINING_PATCH*/
150
151
/*----------*/
152
#ifdef CONFIG_NO_2G_DIVERSITY_8197F
153
#define CONFIG_NO_2G_DIVERSITY
154
#elif defined(CONFIG_2G_CGCS_RX_DIVERSITY_8197F)
155
#define CONFIG_2G_CGCS_RX_DIVERSITY
156
#elif defined(CONFIG_2G_CG_TRX_DIVERSITY_8197F)
157
#define CONFIG_2G_CG_TRX_DIVERSITY
158
#endif
159
160
#if (!defined(CONFIG_NO_2G_DIVERSITY) && !defined(CONFIG_2G5G_CG_TRX_DIVERSITY_8881A) && !defined(CONFIG_2G_CGCS_RX_DIVERSITY) && !defined(CONFIG_2G_CG_TRX_DIVERSITY) && !defined(CONFIG_2G_CG_SMART_ANT_DIVERSITY))
161
#define CONFIG_NO_2G_DIVERSITY
162
#endif
163
164
#ifdef CONFIG_NO_5G_DIVERSITY_8881A
165
#define CONFIG_NO_5G_DIVERSITY
166
#elif defined(CONFIG_5G_CGCS_RX_DIVERSITY_8881A)
167
#define CONFIG_5G_CGCS_RX_DIVERSITY
168
#elif defined(CONFIG_5G_CG_TRX_DIVERSITY_8881A)
169
#define CONFIG_5G_CG_TRX_DIVERSITY
170
#elif defined(CONFIG_2G5G_CG_TRX_DIVERSITY_8881A)
171
#define CONFIG_2G5G_CG_TRX_DIVERSITY
172
#endif
173
#if (!defined(CONFIG_NO_5G_DIVERSITY) && !defined(CONFIG_5G_CGCS_RX_DIVERSITY) && !defined(CONFIG_5G_CG_TRX_DIVERSITY) && !defined(CONFIG_2G5G_CG_TRX_DIVERSITY) && !defined(CONFIG_5G_CG_SMART_ANT_DIVERSITY))
174
#define CONFIG_NO_5G_DIVERSITY
175
#endif
176
/*----------*/
177
#if (defined(CONFIG_NO_2G_DIVERSITY) && defined(CONFIG_NO_5G_DIVERSITY))
178
#define CONFIG_NOT_SUPPORT_ANTDIV
179
#elif (!defined(CONFIG_NO_2G_DIVERSITY) && defined(CONFIG_NO_5G_DIVERSITY))
180
#define CONFIG_2G_SUPPORT_ANTDIV
181
#elif (defined(CONFIG_NO_2G_DIVERSITY) && !defined(CONFIG_NO_5G_DIVERSITY))
182
#define CONFIG_5G_SUPPORT_ANTDIV
183
#elif ((!defined(CONFIG_NO_2G_DIVERSITY) && !defined(CONFIG_NO_5G_DIVERSITY)) || defined(CONFIG_2G5G_CG_TRX_DIVERSITY))
184
#define CONFIG_2G5G_SUPPORT_ANTDIV
185
#endif
186
/*----------*/
187
#endif /*Antenna Diveristy*/
188
189
/*[SmartAntenna]*/
190
/*#define CONFIG_SMART_ANTENNA*/
191
#ifdef CONFIG_SMART_ANTENNA
192
/*#define CONFIG_CUMITEK_SMART_ANTENNA*/
193
#endif
194
#define CFG_DIG_DAMPING_CHK
195
/* --------------------------------------------------*/
196
#ifdef PHYDM_BEAMFORMING_SUPPORT
197
#if (RTL8192F_SUPPORT || RTL8195B_SUPPORT || RTL8821C_SUPPORT ||\
198
RTL8822B_SUPPORT || RTL8197F_SUPPORT || RTL8198F_SUPPORT ||\
199
RTL8814B_SUPPORT || RTL8812F_SUPPORT)
200
#define DRIVER_BEAMFORMING_VERSION2
201
#endif
202
#endif
203
204
#endif
205
206