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
|
#
# RTL WLan AP Driver All In One Configure
#
#
# Wireless LAN
#
# Driver Module/Build In Driver ==> :=m/:=y
CONFIG_RTL8192CD :=m
# RTK Platform ?
RTK_BSP :=n
# Select Support WLan Chip
CONFIG_RTL_92C_SUPPORT :=n
CONFIG_RTL_92D_SUPPORT :=n
CONFIG_RTL_88E_SUPPORT :=n
CONFIG_RTL_92E_SUPPORT :=y
CONFIG_RTL_8812_SUPPORT :=n
CONCURRENT_MODE :=y
# RTL Platform Support
CONFIG_RTL_819X :=n
CONFIG_RTL_819XD :=n
# Driver Configuration
CONFIG_RTL8190_PRIV_SKB :=n
CONFIG_RTL_WAPI_SUPPORT :=n
# If Use External PA, LNA ?
CONFIG_EXT_PA :=n
CONFIG_EXT_LNA :=n
# If Support Dynamic Freqence Selection ?
CONFIG_RTL_DFS_SUPPORT :=n
# If Enable Virtual AP ?
CONFIG_RTL_VAP_SUPPORT :=y
# If Support Client Mode ?
CONFIG_RTL_CLIENT_MODE_SUPPORT :=y
CONFIG_RTL_REPEATER_MODE_SUPPORT :=y
CONFIG_RTL_SUPPORT_MULTI_PROFILE :=y
# If Support Wireless Distribution System ?
CONFIG_RTL_WDS_SUPPORT :=y
# If Enable On-Chip EFuse ?
CONFIG_ENABLE_EFUSE :=y
# If support non-HAL Chip ? (92C, 92D, 88E, 8812)
CONFIG_RTL_WLAN_HAL_NOT_EXIST :=y
CONFIG_RTL_COMAPI_CFGFILE :=n
CONFIG_RTL_COMAPI_WLTOOLS :=n
CONFIG_MP_PSD_SUPPORT :=n
CONFIG_RTL_P2P_SUPPORT :=n
CONFIG_RTL_MESH_SUPPORT :=n
CONFIG_RTL_WLAN_DOS_FILTER :=n
CONFIG_TXPWR_LMT :=n
CONFIG_RTL_WPS2_SUPPORT :=y
# Select WLan PHY Clock Source, 40MHz/25MHz. For WLan module, we use 40MHz usually
CONFIG_PHY_EAT_40MHZ :=y
######## Don't Modify Following Code ########
EXTRA_CFLAGS += -DCONFIG_RTL8192CD
ifeq ($(RTK_BSP),n)
EXTRA_CFLAGS += -DNOT_RTK_BSP
EXTRA_CFLAGS += -DCONFIG_WIRELESS_LAN_MODULE
endif
ifeq ($(CONFIG_RTL_92C_SUPPORT),y)
CONFIG_RTL_WLAN_HAL_NOT_EXIST :=y
EXTRA_CFLAGS += -DCONFIG_RTL_92C_SUPPORT
endif
ifeq ($(CONFIG_RTL_92D_SUPPORT),y)
CONFIG_RTL_WLAN_HAL_NOT_EXIST :=y
EXTRA_CFLAGS += -DCONFIG_RTL_92D_SUPPORT
#EXTRA_CFLAGS += -DCONFIG_RTL_92D_DMDP
endif
ifeq ($(CONFIG_RTL_88E_SUPPORT),y)
CONFIG_RTL_WLAN_HAL_NOT_EXIST :=y
CONFIG_RTL_ODM_WLAN_DRIVER :=y
EXTRA_CFLAGS += -DCONFIG_RTL_88E_SUPPORT
endif
ifeq ($(CONFIG_RTL_8812_SUPPORT),y)
# CONFIG_RTL_DFS_SUPPORT :=n
CONFIG_RTL_WLAN_HAL_NOT_EXIST :=y
CONFIG_RTL_ODM_WLAN_DRIVER :=y
EXTRA_CFLAGS += -DCONFIG_RTL_8812_SUPPORT
endif
ifeq ($(CONFIG_RTL_92E_SUPPORT),y)
CONFIG_WLAN_HAL :=y
CONFIG_WLAN_HAL_88XX :=y
CONFIG_WLAN_HAL_8192EE :=y
CONFIG_RTL_ODM_WLAN_DRIVER :=y
EXTRA_CFLAGS += -DCONFIG_WLAN_HAL_8192EE
endif
ifeq ($(CONFIG_WLAN_HAL),y)
EXTRA_CFLAGS += -DCONFIG_WLAN_HAL
ifeq ($(CONFIG_WLAN_HAL_88XX),y)
EXTRA_CFLAGS += -DCONFIG_WLAN_HAL_88XX
endif
ifeq ($(CONFIG_WLAN_HAL_8881A),y)
RTL_WLAN_DATA_DIR := WlanHAL/Data/8881A
endif
else
EXTRA_CFLAGS += -DCONFIG_RTL_WLAN_HAL_NOT_EXIST
endif
ifeq ($(CONFIG_RTL_WLAN_HAL_NOT_EXIST),y)
EXTRA_CFLAGS += -DCONFIG_RTL_WLAN_HAL_NOT_EXIST
endif
ifeq ($(CONFIG_RTL_ODM_WLAN_DRIVER),y)
EXTRA_CFLAGS += -DCONFIG_RTL_ODM_WLAN_DRIVER
endif
# TODO: We need to assign which NIC is using external PA and LNA
ifeq ($(CONFIG_EXT_PA),y)
EXTRA_CFLAGS += -DCONFIG_SLOT_0_EXT_PA
EXTRA_CFLAGS += -DCONFIG_SLOT_1_EXT_PA
endif
ifeq ($(CONFIG_EXT_LNA),y)
EXTRA_CFLAGS += -DCONFIG_SLOT_0_EXT_LNA
EXTRA_CFLAGS += -DCONFIG_SLOT_1_EXT_LNA
endif
ifeq ($(CONFIG_RTL_DFS_SUPPORT),y)
EXTRA_CFLAGS += -DCONFIG_RTL_DFS_SUPPORT
endif
ifeq ($(CONFIG_RTL_VAP_SUPPORT),y)
EXTRA_CFLAGS += -DCONFIG_RTL_VAP_SUPPORT
endif
ifeq ($(CONFIG_RTL_CLIENT_MODE_SUPPORT),y)
EXTRA_CFLAGS += -DCONFIG_RTL_CLIENT_MODE_SUPPORT
endif
ifeq ($(CONFIG_RTL_REPEATER_MODE_SUPPORT),y)
EXTRA_CFLAGS += -DCONFIG_RTL_REPEATER_MODE_SUPPORT
endif
ifeq ($(CONFIG_RTL_SUPPORT_MULTI_PROFILE),y)
EXTRA_CFLAGS += -DCONFIG_RTL_SUPPORT_MULTI_PROFILE
endif
ifeq ($(CONFIG_RTL_WDS_SUPPORT),y)
EXTRA_CFLAGS += -DCONFIG_RTL_WDS_SUPPORT
endif
ifeq ($(CONFIG_ENABLE_EFUSE),y)
EXTRA_CFLAGS += -DCONFIG_ENABLE_EFUSE
endif
ifeq ($(CONFIG_RTL_COMAPI_CFGFILE),y)
EXTRA_CFLAGS += -DCONFIG_RTL_COMAPI_CFGFILE
endif
ifeq ($(CONFIG_RTL_COMAPI_WLTOOLS),y)
EXTRA_CFLAGS += -DCONFIG_RTL_COMAPI_WLTOOLS
endif
ifeq ($(CONFIG_MP_PSD_SUPPORT),y)
EXTRA_CFLAGS += -DCONFIG_MP_PSD_SUPPORT
endif
ifeq ($(CONFIG_RTL_P2P_SUPPORT),y)
EXTRA_CFLAGS += -DCONFIG_RTL_P2P_SUPPORT
endif
ifeq ($(CONFIG_TXPWR_LMT),y)
EXTRA_CFLAGS += -DCONFIG_TXPWR_LMT
endif
ifeq ($(CONFIG_RTL_MESH_SUPPORT),y)
EXTRA_CFLAGS += -DCONFIG_RTL_MESH_SUPPORT
endif
ifeq ($(CONFIG_RTL_WLAN_DOS_FILTER),y)
EXTRA_CFLAGS += -DCONFIG_RTL_WLAN_DOS_FILTER
endif
ifeq ($(CONCURRENT_MODE),y)
EXTRA_CFLAGS += -DCONCURRENT_MODE
endif
ifeq ($(CONFIG_RTL8190_PRIV_SKB),y)
EXTRA_CFLAGS += -DCONFIG_RTL8190_PRIV_SKB
endif
ifeq ($(CONFIG_RTL_WPS2_SUPPORT),y)
EXTRA_CFLAGS += -DCONFIG_RTL_WPS2_SUPPORT
endif
ifeq ($(CONFIG_PHY_EAT_40MHZ),y)
EXTRA_CFLAGS += -DCONFIG_PHY_EAT_40MHZ
endif
ifeq ($(CONFIG_RTL_WAPI_SUPPORT),y)
EXTRA_CFLAGS += -DCONFIG_RTL_WAPI_SUPPORT
endif
|