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_iot.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_IOT_H__
27
#define __PHYDM_FEATURES_IOT_H__
28
29
#if (RTL8814A_SUPPORT || RTL8821C_SUPPORT || RTL8822B_SUPPORT ||\
30
RTL8197F_SUPPORT || RTL8192F_SUPPORT || RTL8198F_SUPPORT ||\
31
RTL8822C_SUPPORT || RTL8195B_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
/*#define PHYDM_TDMA_DIG_SUPPORT*/
49
50
#if (RTL8197F_SUPPORT || RTL8822B_SUPPORT)
51
/*#define PHYDM_LNA_SAT_CHK_SUPPORT*/
52
#ifdef PHYDM_LNA_SAT_CHK_SUPPORT
53
#if (RTL8197F_SUPPORT)
54
/*#define PHYDM_LNA_SAT_CHK_SUPPORT_TYPE1*/
55
#endif
56
57
#if (RTL8822B_SUPPORT)
58
/*#define PHYDM_LNA_SAT_CHK_TYPE2*/
59
#endif
60
#endif
61
#endif
62
63
#if (RTL8822B_SUPPORT || RTL8721D_SUPPORT || RTL8710C_SUPPORT)
64
#define PHYDM_POWER_TRAINING_SUPPORT
65
#endif
66
67
#if (RTL8822C_SUPPORT)
68
/* #define PHYDM_PMAC_TX_SETTING_SUPPORT */
69
#endif
70
71
#if (RTL8822C_SUPPORT)
72
/* #define PHYDM_MP_SUPPORT */
73
#endif
74
75
#if (RTL8822B_SUPPORT)
76
#define PHYDM_TXA_CALIBRATION
77
#endif
78
79
#if (RTL8188E_SUPPORT)
80
#define PHYDM_PRIMARY_CCA
81
#endif
82
83
#if (RTL8188F_SUPPORT || RTL8710B_SUPPORT || RTL8821C_SUPPORT ||\
84
RTL8822B_SUPPORT || RTL8721D_SUPPORT || RTL8710C_SUPPORT)
85
#define PHYDM_DC_CANCELLATION
86
#endif
87
88
#if (RTL8822B_SUPPORT || RTL8197F_SUPPORT || RTL8192F_SUPPORT)
89
#define CONFIG_ADAPTIVE_SOML
90
#endif
91
92
#if (RTL8822B_SUPPORT)
93
/*#define CONFIG_DYNAMIC_RX_PATH*/
94
#endif
95
96
#if (RTL8822B_SUPPORT == 1)
97
/* #define CONFIG_8822B_SPUR_CALIBRATION */
98
#endif
99
100
#if (RTL8188E_SUPPORT || RTL8192E_SUPPORT)
101
#define CONFIG_RECEIVER_BLOCKING
102
#endif
103
104
#ifdef CONFIG_SUPPORT_DYNAMIC_TXPWR
105
#define CONFIG_DYNAMIC_TX_TWR
106
#endif
107
#define PHYDM_SUPPORT_CCKPD
108
#define PHYDM_SUPPORT_ADAPTIVITY
109
110
/*Antenna Diversity*/
111
#ifdef CONFIG_ANTENNA_DIVERSITY
112
#define CONFIG_PHYDM_ANTENNA_DIVERSITY
113
114
#ifdef CONFIG_PHYDM_ANTENNA_DIVERSITY
115
116
#if (RTL8723B_SUPPORT || RTL8821A_SUPPORT ||\
117
RTL8188F_SUPPORT || RTL8821C_SUPPORT)
118
#define CONFIG_S0S1_SW_ANTENNA_DIVERSITY
119
#endif
120
121
#if (RTL8821A_SUPPORT)
122
/*#define CONFIG_HL_SMART_ANTENNA_TYPE1*/
123
#endif
124
125
#if (RTL8822B_SUPPORT)
126
/*#define CONFIG_HL_SMART_ANTENNA_TYPE2*/
127
#endif
128
#endif
129
#endif
130
131
/*[SmartAntenna]*/
132
/*#define CONFIG_SMART_ANTENNA*/
133
#ifdef CONFIG_SMART_ANTENNA
134
/*#define CONFIG_CUMITEK_SMART_ANTENNA*/
135
#endif
136
/* --------------------------------------------------*/
137
138
#ifdef CONFIG_DFS_MASTER
139
#define CONFIG_PHYDM_DFS_MASTER
140
#endif
141
142
#if (RTL8812A_SUPPORT || RTL8821A_SUPPORT || RTL8881A_SUPPORT ||\
143
RTL8192E_SUPPORT || RTL8723B_SUPPORT)
144
/*#define CONFIG_RA_FW_DBG_CODE*/
145
#endif
146
147
#define CONFIG_PSD_TOOL
148
/*#define CONFIG_RA_DBG_CMD*/
149
/*#define CONFIG_ANT_DETECTION*/
150
/*#define CONFIG_PATH_DIVERSITY*/
151
/*#define CONFIG_RA_DYNAMIC_RTY_LIMIT*/
152
//#define CONFIG_BB_TXBF_API
153
#define CONFIG_PHYDM_DEBUG_FUNCTION
154
155
#ifdef CONFIG_BT_COEXIST
156
#define ODM_CONFIG_BT_COEXIST
157
#endif
158
#define PHYDM_SUPPORT_RSSI_MONITOR
159
/*#define PHYDM_AUTO_DEGBUG*/
160
#define CFG_DIG_DAMPING_CHK
161
162
#ifdef PHYDM_BEAMFORMING_SUPPORT
163
#if (RTL8192F_SUPPORT || RTL8195B_SUPPORT || RTL8821C_SUPPORT ||\
164
RTL8822B_SUPPORT || RTL8197F_SUPPORT || RTL8198F_SUPPORT ||\
165
RTL8822C_SUPPORT || RTL8814B_SUPPORT)
166
#define DRIVER_BEAMFORMING_VERSION2
167
#define CONFIG_BB_TXBF_API
168
#endif
169
#endif
170
171
#endif
172
173