2017-05-11 18:47:23 +00:00
|
|
|
/******************************************************************************
|
|
|
|
*
|
2019-11-09 10:12:08 +00:00
|
|
|
* Copyright(c) 2007 - 2017 Realtek Corporation.
|
|
|
|
*
|
2017-05-11 18:47:23 +00:00
|
|
|
* This program is free software; you can redistribute it and/or modify it
|
|
|
|
* under the terms of version 2 of the GNU General Public License as
|
|
|
|
* published by the Free Software Foundation.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful, but WITHOUT
|
|
|
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
|
|
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
|
|
|
* more details.
|
|
|
|
*
|
2019-11-09 10:12:08 +00:00
|
|
|
*****************************************************************************/
|
2017-05-11 18:47:23 +00:00
|
|
|
#ifndef __HAL_IC_CFG_H__
|
|
|
|
#define __HAL_IC_CFG_H__
|
|
|
|
|
|
|
|
#define RTL8188E_SUPPORT 0
|
|
|
|
#define RTL8812A_SUPPORT 0
|
|
|
|
#define RTL8821A_SUPPORT 0
|
|
|
|
#define RTL8723B_SUPPORT 0
|
2019-11-09 10:12:08 +00:00
|
|
|
#define RTL8723D_SUPPORT 0
|
2017-05-11 18:47:23 +00:00
|
|
|
#define RTL8192E_SUPPORT 0
|
2019-11-09 10:12:08 +00:00
|
|
|
#define RTL8192F_SUPPORT 0
|
2017-05-11 18:47:23 +00:00
|
|
|
#define RTL8814A_SUPPORT 0
|
|
|
|
#define RTL8195A_SUPPORT 0
|
2019-11-09 10:12:08 +00:00
|
|
|
#define RTL8197F_SUPPORT 0
|
2017-05-11 18:47:23 +00:00
|
|
|
#define RTL8703B_SUPPORT 0
|
|
|
|
#define RTL8188F_SUPPORT 0
|
|
|
|
#define RTL8822B_SUPPORT 0
|
|
|
|
#define RTL8821B_SUPPORT 0
|
2019-11-09 10:12:08 +00:00
|
|
|
#define RTL8821C_SUPPORT 0
|
|
|
|
#define RTL8710B_SUPPORT 0
|
|
|
|
#define RTL8814B_SUPPORT 0
|
|
|
|
#define RTL8824B_SUPPORT 0
|
|
|
|
#define RTL8198F_SUPPORT 0
|
|
|
|
#define RTL8195B_SUPPORT 0
|
|
|
|
#define RTL8822C_SUPPORT 0
|
|
|
|
#define RTL8812F_SUPPORT 0
|
|
|
|
#define RTL8197G_SUPPORT 0
|
|
|
|
#define RTL8721D_SUPPORT 0
|
2017-05-11 18:47:23 +00:00
|
|
|
|
|
|
|
/*#if (RTL8188E_SUPPORT==1)*/
|
|
|
|
#define RATE_ADAPTIVE_SUPPORT 0
|
|
|
|
#define POWER_TRAINING_ACTIVE 0
|
|
|
|
|
2019-11-09 10:12:08 +00:00
|
|
|
#ifdef CONFIG_MULTIDRV
|
2017-05-11 18:47:23 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_RTL8188E
|
2019-11-09 10:12:08 +00:00
|
|
|
#undef RTL8188E_SUPPORT
|
|
|
|
#undef RATE_ADAPTIVE_SUPPORT
|
|
|
|
#undef POWER_TRAINING_ACTIVE
|
2017-05-11 18:47:23 +00:00
|
|
|
|
2019-11-09 10:12:08 +00:00
|
|
|
#define RTL8188E_SUPPORT 1
|
|
|
|
#define RATE_ADAPTIVE_SUPPORT 1
|
|
|
|
#define POWER_TRAINING_ACTIVE 1
|
2017-05-11 18:47:23 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_RTL8812A
|
2019-11-09 10:12:08 +00:00
|
|
|
#undef RTL8812A_SUPPORT
|
|
|
|
#define RTL8812A_SUPPORT 1
|
|
|
|
#ifndef CONFIG_FW_C2H_PKT
|
|
|
|
#define CONFIG_FW_C2H_PKT
|
|
|
|
#endif
|
|
|
|
#define CONFIG_RTS_FULL_BW
|
2017-05-11 18:47:23 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_RTL8821A
|
2019-11-09 10:12:08 +00:00
|
|
|
#undef RTL8821A_SUPPORT
|
|
|
|
#define RTL8821A_SUPPORT 1
|
|
|
|
#ifndef CONFIG_FW_C2H_PKT
|
|
|
|
#define CONFIG_FW_C2H_PKT
|
|
|
|
#endif
|
|
|
|
#define CONFIG_RTS_FULL_BW
|
2017-05-11 18:47:23 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_RTL8192E
|
2019-11-09 10:12:08 +00:00
|
|
|
#undef RTL8192E_SUPPORT
|
|
|
|
#define RTL8192E_SUPPORT 1
|
|
|
|
#ifndef CONFIG_FW_C2H_PKT
|
|
|
|
#define CONFIG_FW_C2H_PKT
|
|
|
|
#endif
|
|
|
|
#define CONFIG_RTS_FULL_BW
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_RTL8192F
|
|
|
|
#undef RTL8192F_SUPPORT
|
|
|
|
#define RTL8192F_SUPPORT 1
|
|
|
|
#ifndef CONFIG_FW_C2H_PKT
|
|
|
|
#define CONFIG_FW_C2H_PKT
|
|
|
|
#endif
|
|
|
|
#ifndef CONFIG_RTW_MAC_HIDDEN_RPT
|
|
|
|
#define CONFIG_RTW_MAC_HIDDEN_RPT
|
|
|
|
#endif
|
|
|
|
/*#define CONFIG_AMPDU_PRETX_CD*/
|
|
|
|
/*#define DBG_LA_MODE*/
|
|
|
|
#ifdef CONFIG_P2P_PS
|
|
|
|
#define CONFIG_P2P_PS_NOA_USE_MACID_SLEEP
|
|
|
|
#endif
|
|
|
|
#define CONFIG_RTS_FULL_BW
|
2017-05-11 18:47:23 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_RTL8723B
|
2019-11-09 10:12:08 +00:00
|
|
|
#undef RTL8723B_SUPPORT
|
|
|
|
#define RTL8723B_SUPPORT 1
|
|
|
|
#ifndef CONFIG_FW_C2H_PKT
|
|
|
|
#define CONFIG_FW_C2H_PKT
|
|
|
|
#endif
|
|
|
|
#define CONFIG_RTS_FULL_BW
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_RTL8723D
|
|
|
|
#undef RTL8723D_SUPPORT
|
|
|
|
#define RTL8723D_SUPPORT 1
|
|
|
|
#ifndef CONFIG_FW_C2H_PKT
|
|
|
|
#define CONFIG_FW_C2H_PKT
|
|
|
|
#endif
|
|
|
|
#ifndef CONFIG_RTW_MAC_HIDDEN_RPT
|
|
|
|
#define CONFIG_RTW_MAC_HIDDEN_RPT
|
|
|
|
#endif
|
|
|
|
#ifndef CONFIG_RTW_CUSTOMER_STR
|
|
|
|
#define CONFIG_RTW_CUSTOMER_STR
|
|
|
|
#endif
|
|
|
|
#define CONFIG_RTS_FULL_BW
|
2017-05-11 18:47:23 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_RTL8814A
|
2019-11-09 10:12:08 +00:00
|
|
|
#undef RTL8814A_SUPPORT
|
|
|
|
#define RTL8814A_SUPPORT 1
|
|
|
|
#ifndef CONFIG_FW_C2H_PKT
|
|
|
|
#define CONFIG_FW_C2H_PKT
|
|
|
|
#endif
|
|
|
|
#define CONFIG_FW_CORRECT_BCN
|
|
|
|
#define CONFIG_RTS_FULL_BW
|
2017-05-11 18:47:23 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_RTL8703B
|
2019-11-09 10:12:08 +00:00
|
|
|
#undef RTL8703B_SUPPORT
|
|
|
|
#define RTL8703B_SUPPORT 1
|
|
|
|
#ifndef CONFIG_FW_C2H_PKT
|
|
|
|
#define CONFIG_FW_C2H_PKT
|
|
|
|
#endif
|
|
|
|
#ifndef CONFIG_RTW_MAC_HIDDEN_RPT
|
|
|
|
#define CONFIG_RTW_MAC_HIDDEN_RPT
|
|
|
|
#endif
|
|
|
|
#define CONFIG_RTS_FULL_BW
|
2017-05-11 18:47:23 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_RTL8188F
|
2019-11-09 10:12:08 +00:00
|
|
|
#undef RTL8188F_SUPPORT
|
|
|
|
#define RTL8188F_SUPPORT 1
|
|
|
|
#ifndef CONFIG_FW_C2H_PKT
|
|
|
|
#define CONFIG_FW_C2H_PKT
|
|
|
|
#endif
|
|
|
|
#ifndef CONFIG_RTW_MAC_HIDDEN_RPT
|
|
|
|
#define CONFIG_RTW_MAC_HIDDEN_RPT
|
|
|
|
#endif
|
|
|
|
#ifndef CONFIG_RTW_CUSTOMER_STR
|
|
|
|
#define CONFIG_RTW_CUSTOMER_STR
|
|
|
|
#endif
|
|
|
|
#define CONFIG_RTS_FULL_BW
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_RTL8188GTV
|
|
|
|
#undef RTL8188F_SUPPORT
|
|
|
|
#define RTL8188F_SUPPORT 1
|
|
|
|
#ifndef CONFIG_FW_C2H_PKT
|
|
|
|
#define CONFIG_FW_C2H_PKT
|
|
|
|
#endif
|
|
|
|
#ifndef CONFIG_RTW_MAC_HIDDEN_RPT
|
|
|
|
#define CONFIG_RTW_MAC_HIDDEN_RPT
|
|
|
|
#endif
|
|
|
|
#ifndef CONFIG_RTW_CUSTOMER_STR
|
|
|
|
#define CONFIG_RTW_CUSTOMER_STR
|
|
|
|
#endif
|
|
|
|
#define CONFIG_RTS_FULL_BW
|
2017-05-11 18:47:23 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_RTL8822B
|
2019-11-09 10:12:08 +00:00
|
|
|
#undef RTL8822B_SUPPORT
|
|
|
|
#define RTL8822B_SUPPORT 1
|
|
|
|
#ifndef CONFIG_FW_C2H_PKT
|
|
|
|
#define CONFIG_FW_C2H_PKT
|
|
|
|
#endif /* CONFIG_FW_C2H_PKT */
|
|
|
|
#define RTW_TX_PA_BIAS /* Adjust TX PA Bias from eFuse */
|
|
|
|
#define CONFIG_DFS /* Enable 5G band 2&3 channel */
|
|
|
|
#define RTW_AMPDU_AGG_RETRY_AND_NEW
|
|
|
|
|
|
|
|
#ifdef CONFIG_WOWLAN
|
|
|
|
#define CONFIG_GTK_OL
|
|
|
|
/*#define CONFIG_ARP_KEEP_ALIVE*/
|
|
|
|
|
|
|
|
#ifdef CONFIG_GPIO_WAKEUP
|
|
|
|
#ifndef WAKEUP_GPIO_IDX
|
|
|
|
#define WAKEUP_GPIO_IDX 6 /* WIFI Chip Side */
|
|
|
|
#endif /* !WAKEUP_GPIO_IDX */
|
|
|
|
#endif /* CONFIG_GPIO_WAKEUP */
|
|
|
|
#endif /* CONFIG_WOWLAN */
|
|
|
|
|
|
|
|
#ifdef CONFIG_CONCURRENT_MODE
|
|
|
|
#define CONFIG_AP_PORT_SWAP
|
|
|
|
#define CONFIG_FW_MULTI_PORT_SUPPORT
|
|
|
|
#endif /* CONFIG_CONCURRENT_MODE */
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Beamforming related definition
|
|
|
|
*/
|
|
|
|
/* Beamforming mechanism is on driver not phydm, always disable it */
|
|
|
|
#define BEAMFORMING_SUPPORT 0
|
|
|
|
/* Only support new beamforming mechanism */
|
|
|
|
#ifdef CONFIG_BEAMFORMING
|
|
|
|
#define RTW_BEAMFORMING_VERSION_2
|
|
|
|
#endif /* CONFIG_BEAMFORMING */
|
|
|
|
|
|
|
|
#ifndef CONFIG_RTW_MAC_HIDDEN_RPT
|
|
|
|
#define CONFIG_RTW_MAC_HIDDEN_RPT
|
|
|
|
#endif /* CONFIG_RTW_MAC_HIDDEN_RPT */
|
|
|
|
|
|
|
|
#ifndef DBG_RX_DFRAME_RAW_DATA
|
|
|
|
#define DBG_RX_DFRAME_RAW_DATA
|
|
|
|
#endif /* DBG_RX_DFRAME_RAW_DATA */
|
|
|
|
|
|
|
|
#ifndef RTW_IQK_FW_OFFLOAD
|
|
|
|
#define RTW_IQK_FW_OFFLOAD
|
|
|
|
#endif /* RTW_IQK_FW_OFFLOAD */
|
|
|
|
|
|
|
|
/* Checksum offload feature */
|
|
|
|
/*#define CONFIG_TCP_CSUM_OFFLOAD_TX*/ /* not ready */
|
|
|
|
#define CONFIG_TCP_CSUM_OFFLOAD_RX
|
|
|
|
|
|
|
|
#define CONFIG_ADVANCE_OTA
|
|
|
|
|
|
|
|
#ifdef CONFIG_MCC_MODE
|
|
|
|
#define CONFIG_MCC_MODE_V2
|
|
|
|
#endif /* CONFIG_MCC_MODE */
|
|
|
|
|
|
|
|
#if defined(CONFIG_TDLS) && defined(CONFIG_TDLS_CH_SW)
|
|
|
|
#define CONFIG_TDLS_CH_SW_V2
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef RTW_CHANNEL_SWITCH_OFFLOAD
|
|
|
|
#ifdef CONFIG_TDLS_CH_SW_V2
|
|
|
|
#define RTW_CHANNEL_SWITCH_OFFLOAD
|
|
|
|
#endif
|
|
|
|
#endif /* RTW_CHANNEL_SWITCH_OFFLOAD */
|
|
|
|
|
|
|
|
#if defined(CONFIG_RTW_MESH) && !defined(RTW_PER_CMD_SUPPORT_FW)
|
|
|
|
/* Supported since fw v22.1 */
|
|
|
|
#define RTW_PER_CMD_SUPPORT_FW
|
|
|
|
#endif /* RTW_PER_CMD_SUPPORT_FW */
|
|
|
|
#define CONFIG_SUPPORT_FIFO_DUMP
|
|
|
|
#define CONFIG_HW_P0_TSF_SYNC
|
|
|
|
#define CONFIG_BCN_RECV_TIME
|
|
|
|
#ifdef CONFIG_P2P_PS
|
|
|
|
#define CONFIG_P2P_PS_NOA_USE_MACID_SLEEP
|
|
|
|
#endif
|
|
|
|
#define CONFIG_RTS_FULL_BW
|
|
|
|
#endif /* CONFIG_RTL8822B */
|
|
|
|
|
|
|
|
#ifdef CONFIG_RTL8821C
|
|
|
|
#undef RTL8821C_SUPPORT
|
|
|
|
#define RTL8821C_SUPPORT 1
|
|
|
|
#ifndef CONFIG_FW_C2H_PKT
|
|
|
|
#define CONFIG_FW_C2H_PKT
|
|
|
|
#endif
|
|
|
|
#ifdef CONFIG_NO_FW
|
|
|
|
#ifdef CONFIG_RTW_MAC_HIDDEN_RPT
|
|
|
|
#undef CONFIG_RTW_MAC_HIDDEN_RPT
|
|
|
|
#endif
|
|
|
|
#else
|
|
|
|
#ifndef CONFIG_RTW_MAC_HIDDEN_RPT
|
|
|
|
#define CONFIG_RTW_MAC_HIDDEN_RPT
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
#define LOAD_FW_HEADER_FROM_DRIVER
|
|
|
|
#define CONFIG_PHY_CAPABILITY_QUERY
|
|
|
|
#ifdef CONFIG_CONCURRENT_MODE
|
|
|
|
#define CONFIG_AP_PORT_SWAP
|
|
|
|
#define CONFIG_FW_MULTI_PORT_SUPPORT
|
|
|
|
#endif
|
|
|
|
#define CONFIG_SUPPORT_FIFO_DUMP
|
|
|
|
#ifndef RTW_IQK_FW_OFFLOAD
|
|
|
|
#define RTW_IQK_FW_OFFLOAD
|
|
|
|
#endif /* RTW_IQK_FW_OFFLOAD */
|
|
|
|
/*#define CONFIG_AMPDU_PRETX_CD*/
|
|
|
|
/*#define DBG_PRE_TX_HANG*/
|
|
|
|
|
|
|
|
/* Beamforming related definition */
|
|
|
|
/* Beamforming mechanism is on driver not phydm, always disable it */
|
|
|
|
#define BEAMFORMING_SUPPORT 0
|
|
|
|
/* Only support new beamforming mechanism */
|
|
|
|
#ifdef CONFIG_BEAMFORMING
|
|
|
|
#define RTW_BEAMFORMING_VERSION_2
|
|
|
|
#endif /* CONFIG_BEAMFORMING */
|
|
|
|
#define CONFIG_HW_P0_TSF_SYNC
|
|
|
|
#define CONFIG_BCN_RECV_TIME
|
|
|
|
#ifdef CONFIG_P2P_PS
|
|
|
|
#define CONFIG_P2P_PS_NOA_USE_MACID_SLEEP
|
|
|
|
#endif
|
|
|
|
#define CONFIG_RTS_FULL_BW
|
|
|
|
#endif /*CONFIG_RTL8821C*/
|
|
|
|
|
|
|
|
#ifdef CONFIG_RTL8710B
|
|
|
|
#undef RTL8710B_SUPPORT
|
|
|
|
#define RTL8710B_SUPPORT 1
|
|
|
|
#ifndef CONFIG_FW_C2H_PKT
|
|
|
|
#define CONFIG_FW_C2H_PKT
|
|
|
|
#endif
|
|
|
|
#define CONFIG_RTS_FULL_BW
|
2017-05-11 18:47:23 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /*__HAL_IC_CFG_H__*/
|