xref: /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8723ds/include/hal_ic_cfg.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1 /******************************************************************************
2  *
3  * Copyright(c) 2007 - 2019 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 #ifndef __HAL_IC_CFG_H__
16 #define __HAL_IC_CFG_H__
17 
18 #define RTL8188E_SUPPORT				0
19 #define RTL8812A_SUPPORT				0
20 #define RTL8821A_SUPPORT				0
21 #define RTL8723B_SUPPORT				0
22 #define RTL8723D_SUPPORT				0
23 #define RTL8723F_SUPPORT				0
24 #define RTL8192E_SUPPORT				0
25 #define RTL8192F_SUPPORT				0
26 #define RTL8814A_SUPPORT				0
27 #define RTL8195A_SUPPORT				0
28 #define RTL8197F_SUPPORT				0
29 #define RTL8703B_SUPPORT				0
30 #define RTL8188F_SUPPORT				0
31 #define RTL8822B_SUPPORT				0
32 #define RTL8821B_SUPPORT				0
33 #define RTL8821C_SUPPORT				0
34 #define RTL8710B_SUPPORT				0
35 #define RTL8814B_SUPPORT				0
36 #define RTL8824B_SUPPORT				0
37 #define RTL8198F_SUPPORT				0
38 #define RTL8195B_SUPPORT				0
39 #define RTL8822C_SUPPORT				0
40 #define RTL8721D_SUPPORT				0
41 #define RTL8812F_SUPPORT				0
42 #define RTL8197G_SUPPORT				0
43 #define RTL8710C_SUPPORT				0
44 
45 
46 /*#if (RTL8188E_SUPPORT==1)*/
47 #define RATE_ADAPTIVE_SUPPORT			0
48 #define POWER_TRAINING_ACTIVE			0
49 
50 #ifdef CONFIG_MULTIDRV
51 #endif
52 
53 #ifdef CONFIG_RTL8188E
54 	#undef RTL8188E_SUPPORT
55 	#undef RATE_ADAPTIVE_SUPPORT
56 	#undef POWER_TRAINING_ACTIVE
57 
58 	#define RTL8188E_SUPPORT				1
59 	#define RATE_ADAPTIVE_SUPPORT			1
60 	#define POWER_TRAINING_ACTIVE			1
61 
62 	#ifndef CONFIG_TXPWR_PG_WITH_PWR_IDX
63 	#define CONFIG_TXPWR_PG_WITH_PWR_IDX
64 	#endif
65 #endif
66 
67 #ifdef CONFIG_RTL8812A
68 	#undef RTL8812A_SUPPORT
69 	#define RTL8812A_SUPPORT				1
70 	#ifndef CONFIG_FW_C2H_PKT
71 		#define CONFIG_FW_C2H_PKT
72 	#endif
73 	#ifdef CONFIG_BEAMFORMING
74 		#define CONFIG_BEAMFORMER_FW_NDPA
75 		#define BEAMFORMING_SUPPORT		1	/*for phydm beamforming*/
76 		#define SUPPORT_MU_BF				0
77 	#endif /*CONFIG_BEAMFORMING*/
78 	#define CONFIG_RTS_FULL_BW
79 
80 	#ifndef CONFIG_TXPWR_PG_WITH_PWR_IDX
81 	#define CONFIG_TXPWR_PG_WITH_PWR_IDX
82 	#endif
83 #endif
84 
85 #ifdef CONFIG_RTL8821A
86 	#undef RTL8821A_SUPPORT
87 	#define RTL8821A_SUPPORT				1
88 	#ifndef CONFIG_FW_C2H_PKT
89 		#define CONFIG_FW_C2H_PKT
90 	#endif
91 	#ifdef CONFIG_BEAMFORMING
92 		#define CONFIG_BEAMFORMER_FW_NDPA
93 		#define BEAMFORMING_SUPPORT		1	/*for phydm beamforming*/
94 		#define SUPPORT_MU_BF				0
95 	#endif
96 	#define CONFIG_RTS_FULL_BW
97 
98 	#ifndef CONFIG_TXPWR_PG_WITH_PWR_IDX
99 	#define CONFIG_TXPWR_PG_WITH_PWR_IDX
100 	#endif
101 #endif
102 
103 #ifdef CONFIG_RTL8192E
104 	#undef RTL8192E_SUPPORT
105 	#define RTL8192E_SUPPORT				1
106 	#ifndef CONFIG_FW_C2H_PKT
107 		#define CONFIG_FW_C2H_PKT
108 	#endif
109 	#define CONFIG_RTS_FULL_BW
110 
111 	#ifndef CONFIG_TXPWR_PG_WITH_PWR_IDX
112 	#define CONFIG_TXPWR_PG_WITH_PWR_IDX
113 	#endif
114 #endif
115 
116 #ifdef CONFIG_RTL8192F
117 	#undef RTL8192F_SUPPORT
118 	#define RTL8192F_SUPPORT				1
119 	#ifndef CONFIG_FW_C2H_PKT
120 		#define CONFIG_FW_C2H_PKT
121 	#endif
122 	#ifndef CONFIG_RTW_MAC_HIDDEN_RPT
123 		#define CONFIG_RTW_MAC_HIDDEN_RPT
124 	#endif
125 	/*#define CONFIG_AMPDU_PRETX_CD*/
126 	/*#define DBG_LA_MODE*/
127 	#ifdef CONFIG_P2P_PS
128 		#define CONFIG_P2P_PS_NOA_USE_MACID_SLEEP
129 	#endif
130 	#define CONFIG_RTS_FULL_BW
131 /*	#define CONFIG_NARROWBAND_SUPPORTING	*/
132 	#ifdef CONFIG_NARROWBAND_SUPPORTING
133 		#define CONFIG_NB_VALUE		RTW_NB_CONFIG_NONE	/*RTW_NB_CONFIG_WIDTH_10 or RTW_NB_CONFIG_WIDTH_5	*/
134 	#endif
135 	#ifdef CONFIG_WOWLAN
136 		#define CONFIG_WOW_PATTERN_IN_TXFIFO
137 	#endif
138 
139 	#ifndef CONFIG_TXPWR_PG_WITH_PWR_IDX
140 	#define CONFIG_TXPWR_PG_WITH_PWR_IDX
141 	#endif
142 	#define CONFIG_STOP_RESUME_BCN_BY_TXPAUSE /*to fixed no bcn issue*/
143 	#define CONFIG_TSF_SYNC
144 #endif
145 
146 #ifdef CONFIG_RTL8723B
147 	#undef RTL8723B_SUPPORT
148 	#define RTL8723B_SUPPORT				1
149 	#ifndef CONFIG_FW_C2H_PKT
150 		#define CONFIG_FW_C2H_PKT
151 	#endif
152 	#define CONFIG_RTS_FULL_BW
153 
154 	#ifndef CONFIG_TXPWR_PG_WITH_PWR_IDX
155 	#define CONFIG_TXPWR_PG_WITH_PWR_IDX
156 	#endif
157 #endif
158 
159 #ifdef CONFIG_RTL8723D
160 	#undef RTL8723D_SUPPORT
161 	#define RTL8723D_SUPPORT				1
162 	#ifndef CONFIG_FW_C2H_PKT
163 		#define CONFIG_FW_C2H_PKT
164 	#endif
165 	#ifndef CONFIG_RTW_MAC_HIDDEN_RPT
166 		#define CONFIG_RTW_MAC_HIDDEN_RPT
167 	#endif
168 	#ifndef CONFIG_RTW_CUSTOMER_STR
169 		#define CONFIG_RTW_CUSTOMER_STR
170 	#endif
171 	#define CONFIG_RTS_FULL_BW
172 
173 	#ifndef CONFIG_TXPWR_PG_WITH_PWR_IDX
174 	#define CONFIG_TXPWR_PG_WITH_PWR_IDX
175 	#endif
176 #endif
177 
178 #ifdef CONFIG_RTL8814A
179 	#undef RTL8814A_SUPPORT
180 	#define RTL8814A_SUPPORT				1
181 	#ifndef CONFIG_FW_C2H_PKT
182 		#define CONFIG_FW_C2H_PKT
183 	#endif
184 	#define CONFIG_FW_CORRECT_BCN
185 	#ifdef CONFIG_BEAMFORMING
186 		#define BEAMFORMING_SUPPORT		1	/*for phydm beamforming*/
187 		#define SUPPORT_MU_BF				0
188 	#endif
189 	#define CONFIG_RTS_FULL_BW
190 
191 	#ifndef CONFIG_TXPWR_PG_WITH_PWR_IDX
192 	#define CONFIG_TXPWR_PG_WITH_PWR_IDX
193 	#endif
194 #endif
195 
196 #ifdef CONFIG_RTL8703B
197 	#undef RTL8703B_SUPPORT
198 	#define RTL8703B_SUPPORT				1
199 	#ifndef CONFIG_FW_C2H_PKT
200 		#define CONFIG_FW_C2H_PKT
201 	#endif
202 	#ifndef CONFIG_RTW_MAC_HIDDEN_RPT
203 		#define CONFIG_RTW_MAC_HIDDEN_RPT
204 	#endif
205 	#define CONFIG_RTS_FULL_BW
206 
207 	#ifndef CONFIG_TXPWR_PG_WITH_PWR_IDX
208 	#define CONFIG_TXPWR_PG_WITH_PWR_IDX
209 	#endif
210 #endif
211 
212 #ifdef CONFIG_RTL8188F
213 	#undef RTL8188F_SUPPORT
214 	#define RTL8188F_SUPPORT				1
215 	#ifndef CONFIG_FW_C2H_PKT
216 		#define CONFIG_FW_C2H_PKT
217 	#endif
218 	#ifndef CONFIG_RTW_MAC_HIDDEN_RPT
219 		#define CONFIG_RTW_MAC_HIDDEN_RPT
220 	#endif
221 	#ifndef CONFIG_RTW_CUSTOMER_STR
222 		#define CONFIG_RTW_CUSTOMER_STR
223 	#endif
224 	#define CONFIG_RTS_FULL_BW
225 
226 	#ifndef CONFIG_TXPWR_PG_WITH_PWR_IDX
227 	#define CONFIG_TXPWR_PG_WITH_PWR_IDX
228 	#endif
229 #endif
230 
231 #ifdef CONFIG_RTL8188GTV
232 	#undef RTL8188F_SUPPORT
233 	#define RTL8188F_SUPPORT				1
234 	#ifndef CONFIG_FW_C2H_PKT
235 		#define CONFIG_FW_C2H_PKT
236 	#endif
237 	#ifndef CONFIG_RTW_MAC_HIDDEN_RPT
238 		#define CONFIG_RTW_MAC_HIDDEN_RPT
239 	#endif
240 	#ifndef CONFIG_RTW_CUSTOMER_STR
241 		#define CONFIG_RTW_CUSTOMER_STR
242 	#endif
243 	#define CONFIG_RTS_FULL_BW
244 
245 	#ifndef CONFIG_TXPWR_PG_WITH_PWR_IDX
246 	#define CONFIG_TXPWR_PG_WITH_PWR_IDX
247 	#endif
248 
249 	#if defined(CONFIG_USB_HCI) && !defined(CONFIG_FW_OFFLOAD_SET_TXPWR_IDX)
250 	#define CONFIG_FW_OFFLOAD_SET_TXPWR_IDX
251 	#endif
252 #endif
253 
254 #ifdef CONFIG_RTL8822B
255 	#undef RTL8822B_SUPPORT
256 	#define RTL8822B_SUPPORT				1
257 	#ifndef CONFIG_FW_C2H_PKT
258 		#define CONFIG_FW_C2H_PKT
259 	#endif /* CONFIG_FW_C2H_PKT */
260 	#define RTW_TX_PA_BIAS	/* Adjust TX PA Bias from eFuse */
261 	#define RTW_AMPDU_AGG_RETRY_AND_NEW
262 
263 	#ifdef CONFIG_WOWLAN
264 		#define CONFIG_GTK_OL
265 		/*#define CONFIG_ARP_KEEP_ALIVE*/
266 
267 		#ifdef CONFIG_GPIO_WAKEUP
268 			#ifndef WAKEUP_GPIO_IDX
269 				#define WAKEUP_GPIO_IDX	6	/* WIFI Chip Side */
270 			#endif /* !WAKEUP_GPIO_IDX */
271 		#endif /* CONFIG_GPIO_WAKEUP */
272 	#endif /* CONFIG_WOWLAN */
273 
274 	#ifdef CONFIG_CONCURRENT_MODE
275 		#define CONFIG_AP_PORT_SWAP
276 		#define CONFIG_FW_MULTI_PORT_SUPPORT
277 	#endif /* CONFIG_CONCURRENT_MODE */
278 
279 	/*
280 	 * Beamforming related definition
281 	 */
282 	/* Only support new beamforming mechanism */
283 	#ifdef CONFIG_BEAMFORMING
284 		#define RTW_BEAMFORMING_VERSION_2
285 	#endif /* CONFIG_BEAMFORMING */
286 
287 	#ifndef CONFIG_RTW_MAC_HIDDEN_RPT
288 		#define CONFIG_RTW_MAC_HIDDEN_RPT
289 	#endif /* CONFIG_RTW_MAC_HIDDEN_RPT */
290 
291 	#ifndef DBG_RX_DFRAME_RAW_DATA
292 		#define DBG_RX_DFRAME_RAW_DATA
293 	#endif /* DBG_RX_DFRAME_RAW_DATA */
294 
295 	#ifndef RTW_IQK_FW_OFFLOAD
296 		#define RTW_IQK_FW_OFFLOAD
297 	#endif /* RTW_IQK_FW_OFFLOAD */
298 
299 	/* Checksum offload feature */
300 	/*#define CONFIG_TCP_CSUM_OFFLOAD_TX*/
301 	#if defined(CONFIG_TCP_CSUM_OFFLOAD_TX) && !defined(CONFIG_RTW_NETIF_SG)
302 		#define CONFIG_RTW_NETIF_SG
303 	#endif
304 	#define CONFIG_TCP_CSUM_OFFLOAD_RX
305 
306 	#define CONFIG_ADVANCE_OTA
307 
308 	#ifdef CONFIG_MCC_MODE
309 		#define CONFIG_MCC_MODE_V2
310 		#define CONFIG_MCC_PHYDM_OFFLOAD
311 	#endif /* CONFIG_MCC_MODE */
312 
313 	#if defined(CONFIG_TDLS) && defined(CONFIG_TDLS_CH_SW)
314 		#define CONFIG_TDLS_CH_SW_V2
315 	#endif
316 
317 	#ifndef RTW_CHANNEL_SWITCH_OFFLOAD
318 		#ifdef CONFIG_TDLS_CH_SW_V2
319 			#define RTW_CHANNEL_SWITCH_OFFLOAD
320 		#endif
321 	#endif /* RTW_CHANNEL_SWITCH_OFFLOAD */
322 
323 	#if defined(CONFIG_RTW_MESH) && !defined(RTW_PER_CMD_SUPPORT_FW)
324 		/* Supported since fw v22.1 */
325 		#define RTW_PER_CMD_SUPPORT_FW
326 	#endif /* RTW_PER_CMD_SUPPORT_FW */
327 	#define CONFIG_SUPPORT_FIFO_DUMP
328 	#define CONFIG_HW_P0_TSF_SYNC
329 	#define CONFIG_BCN_RECV_TIME
330 	#ifdef CONFIG_P2P_PS
331 		#define CONFIG_P2P_PS_NOA_USE_MACID_SLEEP
332 	#endif
333 	#define CONFIG_RTS_FULL_BW
334 
335 	#ifdef CONFIG_LPS
336 		#define CONFIG_LPS_ACK	/* Supported after FW v30 & v27.9 */
337 	#endif
338 
339 	#ifndef CONFIG_TXPWR_PG_WITH_PWR_IDX
340 	#define CONFIG_TXPWR_PG_WITH_PWR_IDX
341 	#endif
342 #endif /* CONFIG_RTL8822B */
343 
344 #ifdef CONFIG_RTL8822C
345 	#undef RTL8822C_SUPPORT
346 	#define RTL8822C_SUPPORT				1
347 	/*#define DBG_LA_MODE*/
348 	#ifndef CONFIG_FW_C2H_PKT
349 		#define CONFIG_FW_C2H_PKT
350 	#endif /* CONFIG_FW_C2H_PKT */
351 	#define RTW_TX_PA_BIAS	/* Adjust TX PA Bias from eFuse */
352 
353 	#ifdef CONFIG_WOWLAN
354 		#define CONFIG_GTK_OL
355 		/*#define CONFIG_ARP_KEEP_ALIVE*/
356 
357 		#ifdef CONFIG_GPIO_WAKEUP
358 			#ifndef WAKEUP_GPIO_IDX
359 				#define WAKEUP_GPIO_IDX	6	/* WIFI Chip Side */
360 			#endif /* !WAKEUP_GPIO_IDX */
361 		#endif /* CONFIG_GPIO_WAKEUP */
362 	#endif /* CONFIG_WOWLAN */
363 
364 	#ifdef CONFIG_CONCURRENT_MODE
365 		#define CONFIG_AP_PORT_SWAP
366 		#define CONFIG_FW_MULTI_PORT_SUPPORT
367 	#endif /* CONFIG_CONCURRENT_MODE */
368 
369 	/*
370 	 * Beamforming related definition
371 	 */
372 	/* Only support new beamforming mechanism */
373 	#ifdef CONFIG_BEAMFORMING
374 		#define RTW_BEAMFORMING_VERSION_2
375 	#endif /* CONFIG_BEAMFORMING */
376 
377 	#ifdef CONFIG_NO_FW
378 		#ifdef CONFIG_RTW_MAC_HIDDEN_RPT
379 			#undef CONFIG_RTW_MAC_HIDDEN_RPT
380 		#endif
381 	#else
382 		#ifndef CONFIG_RTW_MAC_HIDDEN_RPT
383 			#define CONFIG_RTW_MAC_HIDDEN_RPT
384 		#endif
385 	#endif
386 
387 	#ifndef DBG_RX_DFRAME_RAW_DATA
388 		#define DBG_RX_DFRAME_RAW_DATA
389 	#endif /* DBG_RX_DFRAME_RAW_DATA */
390 
391 	#ifndef RTW_IQK_FW_OFFLOAD
392 		/* #define RTW_IQK_FW_OFFLOAD */
393 	#endif /* RTW_IQK_FW_OFFLOAD */
394 	#define CONFIG_ADVANCE_OTA
395 
396 	#ifdef CONFIG_MCC_MODE
397 		#define CONFIG_MCC_MODE_V2
398 		#define CONFIG_MCC_PHYDM_OFFLOAD
399 	#endif /* CONFIG_MCC_MODE */
400 
401 	#if defined(CONFIG_TDLS) && defined(CONFIG_TDLS_CH_SW)
402 		#define CONFIG_TDLS_CH_SW_V2
403 	#endif
404 
405 	#ifndef RTW_CHANNEL_SWITCH_OFFLOAD
406 		#ifdef CONFIG_TDLS_CH_SW_V2
407 			#define RTW_CHANNEL_SWITCH_OFFLOAD
408 		#endif
409 	#endif /* RTW_CHANNEL_SWITCH_OFFLOAD */
410 
411 	#if defined(CONFIG_RTW_MESH) && !defined(RTW_PER_CMD_SUPPORT_FW)
412 		/* Supported since fw v22.1 */
413 		#define RTW_PER_CMD_SUPPORT_FW
414 	#endif /* RTW_PER_CMD_SUPPORT_FW */
415 	#define CONFIG_SUPPORT_FIFO_DUMP
416 	#define CONFIG_HW_P0_TSF_SYNC
417 	#define CONFIG_BCN_RECV_TIME
418 
419 	/*#define CONFIG_TCP_CSUM_OFFLOAD_TX*/
420 	#if defined(CONFIG_TCP_CSUM_OFFLOAD_TX) && !defined(CONFIG_RTW_NETIF_SG)
421 		#define CONFIG_RTW_NETIF_SG
422 	#endif
423 	#define CONFIG_TCP_CSUM_OFFLOAD_RX
424 
425 	#ifdef CONFIG_P2P_PS
426 		#define CONFIG_P2P_PS_NOA_USE_MACID_SLEEP
427 	#endif
428 	#define CONFIG_RTS_FULL_BW
429 
430 	#ifdef CONFIG_LPS
431 		#define CONFIG_LPS_ACK	/* Supported after FW v07 */
432 		#define CONFIG_LPS_1T1R /* Supported after FW v07 */
433 	#endif
434 
435 	#define CONFIG_BT_EFUSE_MASK
436 
437 	#ifndef CONFIG_TXPWR_PG_WITH_PWR_IDX
438 	#define CONFIG_TXPWR_PG_WITH_PWR_IDX
439 	#endif
440 	#ifndef CONFIG_TXPWR_PG_WITH_TSSI_OFFSET
441 	#define CONFIG_TXPWR_PG_WITH_TSSI_OFFSET
442 	#endif
443 
444 	#define CONFIG_RTL8822C_XCAP_NEW_POLICY
445 
446 	#define CONFIG_SUPPORT_DYNAMIC_TXPWR
447 #endif /* CONFIG_RTL8822C */
448 
449 #ifdef CONFIG_RTL8821C
450 	#undef RTL8821C_SUPPORT
451 	#define RTL8821C_SUPPORT				1
452 	#ifndef CONFIG_FW_C2H_PKT
453 		#define CONFIG_FW_C2H_PKT
454 	#endif
455 	#ifdef CONFIG_NO_FW
456 		#ifdef CONFIG_RTW_MAC_HIDDEN_RPT
457 			#undef CONFIG_RTW_MAC_HIDDEN_RPT
458 		#endif
459 	#else
460 		#ifndef CONFIG_RTW_MAC_HIDDEN_RPT
461 			#define CONFIG_RTW_MAC_HIDDEN_RPT
462 		#endif
463 	#endif
464 	#define LOAD_FW_HEADER_FROM_DRIVER
465 	#define CONFIG_PHY_CAPABILITY_QUERY
466 	#ifdef CONFIG_CONCURRENT_MODE
467 	#define CONFIG_AP_PORT_SWAP
468 	#define CONFIG_FW_MULTI_PORT_SUPPORT
469 	#endif
470 	#define CONFIG_SUPPORT_FIFO_DUMP
471 	#ifndef RTW_IQK_FW_OFFLOAD
472 		#define RTW_IQK_FW_OFFLOAD
473 	#endif /* RTW_IQK_FW_OFFLOAD */
474 	/*#define CONFIG_AMPDU_PRETX_CD*/
475 	/*#define DBG_PRE_TX_HANG*/
476 
477 	/* Beamforming related definition */
478 	/* Only support new beamforming mechanism */
479 	#ifdef CONFIG_BEAMFORMING
480 		#define RTW_BEAMFORMING_VERSION_2
481 	#endif /* CONFIG_BEAMFORMING */
482 	#define CONFIG_HW_P0_TSF_SYNC
483 	#define CONFIG_BCN_RECV_TIME
484 	#ifdef CONFIG_P2P_PS
485 		#define CONFIG_P2P_PS_NOA_USE_MACID_SLEEP
486 	#endif
487 	#define CONFIG_RTS_FULL_BW
488 
489 	#ifdef CONFIG_LPS
490 		/* #define CONFIG_LPS_ACK */	/* Supported after FW v25 */
491 	#endif
492 
493 	#ifndef CONFIG_TXPWR_PG_WITH_PWR_IDX
494 	#define CONFIG_TXPWR_PG_WITH_PWR_IDX
495 	#endif
496 
497 	#define CONFIG_BT_EFUSE_MASK
498 #endif /*CONFIG_RTL8821C*/
499 
500 #ifdef CONFIG_RTL8710B
501 	#undef RTL8710B_SUPPORT
502 	#define RTL8710B_SUPPORT				1
503 	#ifndef CONFIG_FW_C2H_PKT
504 		#define CONFIG_FW_C2H_PKT
505 	#endif
506 	#define CONFIG_RTS_FULL_BW
507 
508 	#ifndef CONFIG_TXPWR_PG_WITH_PWR_IDX
509 	#define CONFIG_TXPWR_PG_WITH_PWR_IDX
510 	#endif
511 #endif
512 
513 #ifdef CONFIG_RTL8814B
514 	#undef RTL8814B_SUPPORT
515 	#define RTL8814B_SUPPORT				1
516 	#ifndef CONFIG_FW_C2H_PKT
517 		#define CONFIG_FW_C2H_PKT
518 	#endif /* CONFIG_FW_C2H_PKT */
519 	#define RTW_TX_PA_BIAS	/* Adjust TX PA Bias from eFuse */
520 	#define RTW_AMPDU_AGG_RETRY_AND_NEW
521 
522 	#ifdef CONFIG_WOWLAN
523 		#define CONFIG_GTK_OL
524 		/*#define CONFIG_ARP_KEEP_ALIVE*/
525 
526 		#ifdef CONFIG_GPIO_WAKEUP
527 			#ifndef WAKEUP_GPIO_IDX
528 				#define WAKEUP_GPIO_IDX	6	/* WIFI Chip Side */
529 			#endif /* !WAKEUP_GPIO_IDX */
530 		#endif /* CONFIG_GPIO_WAKEUP */
531 	#endif /* CONFIG_WOWLAN */
532 
533 	#ifdef CONFIG_CONCURRENT_MODE
534 		/*#define CONFIG_AP_PORT_SWAP*/
535 		#define CONFIG_FW_MULTI_PORT_SUPPORT
536 	#endif /* CONFIG_CONCURRENT_MODE */
537 
538 	/*
539 	 * Beamforming related definition
540 	 */
541 	/* Only support new beamforming mechanism */
542 	#ifdef CONFIG_BEAMFORMING
543 		#define RTW_BEAMFORMING_VERSION_2
544 	#endif /* CONFIG_BEAMFORMING */
545 
546 	#ifndef DBG_RX_DFRAME_RAW_DATA
547 		#define DBG_RX_DFRAME_RAW_DATA
548 	#endif /* DBG_RX_DFRAME_RAW_DATA */
549 
550 	#ifndef RTW_IQK_FW_OFFLOAD
551 		#define RTW_IQK_FW_OFFLOAD
552 	#endif /* RTW_IQK_FW_OFFLOAD */
553 
554 	/* Checksum offload feature */
555 	/*#define CONFIG_TCP_CSUM_OFFLOAD_TX*/ /* not ready */
556 	#define CONFIG_TCP_CSUM_OFFLOAD_RX
557 
558 	#define CONFIG_ADVANCE_OTA
559 
560 	#ifdef CONFIG_MCC_MODE
561 		#define CONFIG_MCC_MODE_V2
562 		#define CONFIG_MCC_PHYDM_OFFLOAD
563 	#endif /* CONFIG_MCC_MODE */
564 
565 	#if defined(CONFIG_TDLS) && defined(CONFIG_TDLS_CH_SW)
566 		#define CONFIG_TDLS_CH_SW_V2
567 	#endif
568 
569 	#ifndef RTW_CHANNEL_SWITCH_OFFLOAD
570 		#ifdef CONFIG_TDLS_CH_SW_V2
571 			#define RTW_CHANNEL_SWITCH_OFFLOAD
572 		#endif
573 	#endif /* RTW_CHANNEL_SWITCH_OFFLOAD */
574 
575 	#if defined(CONFIG_RTW_MESH) && !defined(RTW_PER_CMD_SUPPORT_FW)
576 		/* Supported since fw v22.1 */
577 		#define RTW_PER_CMD_SUPPORT_FW
578 	#endif /* RTW_PER_CMD_SUPPORT_FW */
579 	#define CONFIG_SUPPORT_FIFO_DUMP
580 	#define CONFIG_HW_P0_TSF_SYNC
581 	#define CONFIG_BCN_RECV_TIME
582 	#ifdef CONFIG_P2P_PS
583 		#define CONFIG_P2P_PS_NOA_USE_MACID_SLEEP
584 	#endif
585 	#define CONFIG_RTS_FULL_BW
586 
587 	#define CONFIG_PROTSEL_PORT
588 	#define CONFIG_PROTSEL_ATIMDTIM
589 	#define CONFIG_PROTSEL_MACSLEEP
590 
591 	#define CONFIG_HAS_HW_VAR_BCN_CTRL_ADDR
592 	#define CONFIG_HAS_HW_VAR_BCN_FUNC
593 	#define CONFIG_HAS_HW_VAR_MLME_DISCONNECT
594 	#define CONFIG_HAS_HW_VAR_MLME_JOIN
595 	#define CONFIG_HAS_HW_VAR_CORRECT_TSF
596 	#define CONFIG_HAS_TX_BEACON_PAUSE
597 
598 	#define CONFIG_RTW_TX_NPATH_EN		/* 8814B is always 4TX */
599 
600 	#ifdef CONFIG_LPS
601 		#define CONFIG_LPS_ACK	/* Supported after FW v04 */
602 	#endif
603 
604 	#ifndef CONFIG_TXPWR_PG_WITH_PWR_IDX
605 	#define CONFIG_TXPWR_PG_WITH_PWR_IDX
606 	#endif
607 	#ifndef CONFIG_TXPWR_PG_WITH_TSSI_OFFSET
608 	#define CONFIG_TXPWR_PG_WITH_TSSI_OFFSET
609 	#endif
610 #endif /* CONFIG_RTL8814B */
611 #ifdef CONFIG_RTL8723F
612 	#undef RTL8723F_SUPPORT
613 	#define RTL8723F_SUPPORT				1
614 
615 	/* Use HALMAC architecture, necessary for 8723F */
616 	#define RTW_HALMAC
617 
618 	/*#define DBG_LA_MODE*/
619 
620 	#ifndef CONFIG_FW_C2H_PKT
621 		#define CONFIG_FW_C2H_PKT
622 	#endif /* CONFIG_FW_C2H_PKT */
623 
624 	#define RTW_TX_PA_BIAS	/* Adjust TX PA Bias from eFuse */
625 
626 	#ifdef CONFIG_WOWLAN
627 		#define CONFIG_WOW_PATTERN_IN_TXFIFO
628 	#endif
629 
630 	#ifdef CONFIG_WOWLAN
631 		#define CONFIG_GTK_OL
632 		/*#define CONFIG_ARP_KEEP_ALIVE*/
633 
634 		#ifdef CONFIG_GPIO_WAKEUP
635 			#ifndef WAKEUP_GPIO_IDX
636 				#define WAKEUP_GPIO_IDX	12	/* WIFI Chip Side */
637 			#endif /* !WAKEUP_GPIO_IDX */
638 		#endif /* CONFIG_GPIO_WAKEUP */
639 	#endif /* CONFIG_WOWLAN */
640 
641 	#ifdef CONFIG_CONCURRENT_MODE
642 		#define CONFIG_AP_PORT_SWAP
643 		#define CONFIG_FW_MULTI_PORT_SUPPORT
644 	#endif /* CONFIG_CONCURRENT_MODE */
645 
646 	#ifdef CONFIG_NO_FW
647 		#ifdef CONFIG_RTW_MAC_HIDDEN_RPT
648 			#undef CONFIG_RTW_MAC_HIDDEN_RPT
649 		#endif
650 	#else
651 		#ifndef CONFIG_RTW_MAC_HIDDEN_RPT
652 			#define CONFIG_RTW_MAC_HIDDEN_RPT
653 		#endif
654 	#endif
655 
656 	#ifndef DBG_RX_DFRAME_RAW_DATA
657 		#define DBG_RX_DFRAME_RAW_DATA
658 	#endif /* DBG_RX_DFRAME_RAW_DATA */
659 
660 	/*#define RTW_IQK_FW_OFFLOAD*/
661 	#define CONFIG_ADVANCE_OTA
662 
663 	#ifdef CONFIG_MCC_MODE
664 		#define CONFIG_MCC_MODE_V2
665 		#define CONFIG_MCC_PHYDM_OFFLOAD
666 	#endif /* CONFIG_MCC_MODE */
667 
668 	#if defined(CONFIG_TDLS) && defined(CONFIG_TDLS_CH_SW)
669 		#define CONFIG_TDLS_CH_SW_V2
670 	#endif
671 
672 	#ifndef RTW_CHANNEL_SWITCH_OFFLOAD
673 		#ifdef CONFIG_TDLS_CH_SW_V2
674 			#define RTW_CHANNEL_SWITCH_OFFLOAD
675 		#endif
676 	#endif /* RTW_CHANNEL_SWITCH_OFFLOAD */
677 
678 	#if defined(CONFIG_RTW_MESH) && !defined(RTW_PER_CMD_SUPPORT_FW)
679 		/* Supported since fw v22.1 */
680 		#define RTW_PER_CMD_SUPPORT_FW
681 	#endif /* RTW_PER_CMD_SUPPORT_FW */
682 	#define CONFIG_SUPPORT_FIFO_DUMP
683 	#define CONFIG_HW_P0_TSF_SYNC
684 	#define CONFIG_BCN_RECV_TIME
685 
686 	/*#define CONFIG_TCP_CSUM_OFFLOAD_TX*/
687 	#if defined(CONFIG_TCP_CSUM_OFFLOAD_TX) && !defined(CONFIG_RTW_NETIF_SG)
688 		#define CONFIG_RTW_NETIF_SG
689 	#endif
690 	#define CONFIG_TCP_CSUM_OFFLOAD_RX
691 
692 	#ifdef CONFIG_P2P_PS
693 		#define CONFIG_P2P_PS_NOA_USE_MACID_SLEEP
694 	#endif
695 
696 	#define CONFIG_RTS_FULL_BW
697 
698 	#ifdef CONFIG_LPS
699 		#define CONFIG_LPS_ACK
700 	#endif
701 
702 	#ifndef CONFIG_TXPWR_PG_WITH_PWR_IDX
703 	#define CONFIG_TXPWR_PG_WITH_PWR_IDX
704 	#endif
705 	#ifndef CONFIG_TXPWR_PG_WITH_TSSI_OFFSET
706 	#define CONFIG_TXPWR_PG_WITH_TSSI_OFFSET
707 	#endif
708 
709 	#define CONFIG_BT_EFUSE_MASK
710 
711 	#define CONFIG_WRITE_BCN_LEN_TO_FW
712 #endif /* CONFIG_RTL8723F */
713 #endif /*__HAL_IC_CFG_H__*/
714