1
0
mirror of https://github.com/aircrack-ng/rtl8812au.git synced 2024-11-15 02:15:44 +00:00
rtl8812au/hal/phydm/phydm_features_ce.h

215 lines
5.1 KiB
C
Raw Normal View History

2018-06-22 16:48:32 +00:00
/******************************************************************************
*
2018-08-24 20:52:34 +00:00
* Copyright(c) 2007 - 2017 Realtek Corporation.
2018-06-22 16:48:32 +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
2018-08-24 20:52:34 +00:00
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
2018-06-22 16:48:32 +00:00
* more details.
*
2018-08-24 20:52:34 +00:00
* The full GNU General Public License is included in this distribution in the
* file called LICENSE.
*
* Contact Information:
* wlanfae <wlanfae@realtek.com>
* Realtek Corporation, No. 2, Innovation Road II, Hsinchu Science Park,
* Hsinchu 300, Taiwan.
*
* Larry Finger <Larry.Finger@lwfinger.net>
*
2018-06-22 16:48:32 +00:00
*****************************************************************************/
2019-05-24 19:43:57 +00:00
#ifndef __PHYDM_FEATURES_CE_H__
2018-08-24 20:52:34 +00:00
#define __PHYDM_FEATURES_CE_H__
2019-05-24 19:43:57 +00:00
#if (RTL8814A_SUPPORT || RTL8821C_SUPPORT || RTL8822B_SUPPORT ||\
RTL8197F_SUPPORT || RTL8192F_SUPPORT || RTL8198F_SUPPORT ||\
RTL8822C_SUPPORT)
#define PHYDM_LA_MODE_SUPPORT 1
#else
#define PHYDM_LA_MODE_SUPPORT 0
#endif
#if (RTL8822B_SUPPORT || RTL8812A_SUPPORT || RTL8197F_SUPPORT ||\
RTL8192F_SUPPORT)
2018-08-24 20:52:34 +00:00
#define DYN_ANT_WEIGHTING_SUPPORT
#endif
2019-05-24 19:43:57 +00:00
#if (RTL8822B_SUPPORT || RTL8821C_SUPPORT)
2018-08-24 20:52:34 +00:00
#define FAHM_SUPPORT
#endif
#define NHM_SUPPORT
#define CLM_SUPPORT
2018-06-22 16:48:32 +00:00
2019-05-24 19:43:57 +00:00
#if (RTL8822B_SUPPORT)
/*@#define PHYDM_PHYSTAUS_SMP_MODE*/
2018-06-22 16:48:32 +00:00
#endif
2019-05-24 19:43:57 +00:00
/*@#define PHYDM_TDMA_DIG_SUPPORT*/
2018-06-22 16:48:32 +00:00
2019-05-24 19:43:57 +00:00
#if (RTL8822B_SUPPORT || RTL8192F_SUPPORT || RTL8821C_SUPPORT)
#ifdef CONFIG_TDMADIG
#define PHYDM_TDMA_DIG_SUPPORT
#ifdef PHYDM_TDMA_DIG_SUPPORT
#define IS_USE_NEW_TDMA /*new tdma dig test*/
#endif
#endif
#endif
#if (RTL8814B_SUPPORT)
/*@#define PHYDM_TDMA_DIG_SUPPORT*/
#ifdef PHYDM_TDMA_DIG_SUPPORT
/*@#define IS_USE_NEW_TDMA*/ /*new tdma dig test*/
#endif
#endif
#if (RTL8197F_SUPPORT || RTL8822B_SUPPORT || RTL8814B_SUPPORT)
/*@#define PHYDM_LNA_SAT_CHK_SUPPORT*/
#ifdef PHYDM_LNA_SAT_CHK_SUPPORT
#if (RTL8197F_SUPPORT)
/*@#define PHYDM_LNA_SAT_CHK_SUPPORT_TYPE1*/
#endif
#if (RTL8822B_SUPPORT)
/*@#define PHYDM_LNA_SAT_CHK_TYPE2*/
#endif
#if (RTL8814B_SUPPORT)
/*@#define PHYDM_LNA_SAT_CHK_TYPE1*/
#endif
#endif
#endif
#if (RTL8822B_SUPPORT || RTL8192F_SUPPORT)
2018-06-22 16:48:32 +00:00
#define PHYDM_POWER_TRAINING_SUPPORT
#endif
2019-05-24 19:43:57 +00:00
#if (RTL8822C_SUPPORT)
#define PHYDM_PMAC_TX_SETTING_SUPPORT
#endif
#if (RTL8822C_SUPPORT)
#define PHYDM_MP_SUPPORT
#endif
#if (RTL8822B_SUPPORT)
2018-06-22 16:48:32 +00:00
#define PHYDM_TXA_CALIBRATION
#endif
2019-05-24 19:43:57 +00:00
#if (RTL8188E_SUPPORT)
2018-06-22 16:48:32 +00:00
#define PHYDM_PRIMARY_CCA
#endif
2019-05-24 19:43:57 +00:00
#if (RTL8188F_SUPPORT || RTL8710B_SUPPORT || RTL8821C_SUPPORT ||\
RTL8822B_SUPPORT || RTL8192F_SUPPORT)
2018-06-22 16:48:32 +00:00
#define PHYDM_DC_CANCELLATION
#endif
2019-05-24 19:43:57 +00:00
#if (RTL8822B_SUPPORT || RTL8197F_SUPPORT || RTL8192F_SUPPORT)
2018-07-02 16:49:32 +00:00
#define CONFIG_ADAPTIVE_SOML
2018-06-22 16:48:32 +00:00
#endif
2019-05-24 19:43:57 +00:00
#if (RTL8188E_SUPPORT || RTL8192E_SUPPORT)
#define CONFIG_RECEIVER_BLOCKING
#endif
2018-06-22 16:48:32 +00:00
2019-05-24 19:43:57 +00:00
#if (RTL8192F_SUPPORT == 1)
/*#define CONFIG_8912F_SPUR_CALIBRATION*/
#endif
2018-06-22 16:48:32 +00:00
#if (RTL8822B_SUPPORT == 1)
2019-05-24 19:43:57 +00:00
#define CONFIG_8822B_SPUR_CALIBRATION
2018-06-22 16:48:32 +00:00
#endif
2019-05-24 19:43:57 +00:00
#ifdef CONFIG_SUPPORT_DYNAMIC_TXPWR
#define CONFIG_DYNAMIC_TX_TWR
2018-06-22 16:48:32 +00:00
#endif
#define PHYDM_SUPPORT_CCKPD
2019-05-24 19:43:57 +00:00
#define PHYDM_SUPPORT_ADAPTIVITY
2018-06-22 16:48:32 +00:00
2019-05-24 19:43:57 +00:00
/*@Antenna Diversity*/
2018-06-22 16:48:32 +00:00
#ifdef CONFIG_ANTENNA_DIVERSITY
#define CONFIG_PHYDM_ANTENNA_DIVERSITY
#ifdef CONFIG_PHYDM_ANTENNA_DIVERSITY
2019-05-24 19:43:57 +00:00
#if (RTL8723B_SUPPORT || RTL8821A_SUPPORT ||\
RTL8188F_SUPPORT || RTL8821C_SUPPORT ||\
RTL8723D_SUPPORT)
2018-06-22 16:48:32 +00:00
#define CONFIG_S0S1_SW_ANTENNA_DIVERSITY
#endif
2019-05-24 19:43:57 +00:00
#if (RTL8821A_SUPPORT)
/*@#define CONFIG_HL_SMART_ANTENNA_TYPE1*/
2018-06-22 16:48:32 +00:00
#endif
2019-05-24 19:43:57 +00:00
#if (RTL8822B_SUPPORT)
/*@#define CONFIG_HL_SMART_ANTENNA_TYPE2*/
2018-06-22 16:48:32 +00:00
#endif
2019-05-24 19:43:57 +00:00
2018-06-22 16:48:32 +00:00
#endif
#endif
2019-05-24 19:43:57 +00:00
/*@[SmartAntenna]*/
/*@#define CONFIG_SMART_ANTENNA*/
2018-06-22 16:48:32 +00:00
#ifdef CONFIG_SMART_ANTENNA
2019-05-24 19:43:57 +00:00
/*@#define CONFIG_CUMITEK_SMART_ANTENNA*/
2018-06-22 16:48:32 +00:00
#endif
2019-05-24 19:43:57 +00:00
/* @--------------------------------------------------*/
2018-06-22 16:48:32 +00:00
#ifdef CONFIG_DFS_MASTER
#define CONFIG_PHYDM_DFS_MASTER
#endif
2019-05-24 19:43:57 +00:00
#if (RTL8812A_SUPPORT || RTL8821A_SUPPORT || RTL8881A_SUPPORT ||\
RTL8192E_SUPPORT || RTL8723B_SUPPORT)
/*@#define CONFIG_RA_FW_DBG_CODE*/
2018-08-24 20:52:34 +00:00
#endif
2018-06-22 16:48:32 +00:00
#define CONFIG_PSD_TOOL
2019-05-24 19:43:57 +00:00
/*@#define CONFIG_ANT_DETECTION*/
/*@#define CONFIG_PATH_DIVERSITY*/
/*@#define CONFIG_RA_DYNAMIC_RTY_LIMIT*/
2018-06-22 16:48:32 +00:00
#define CONFIG_BB_TXBF_API
#define CONFIG_PHYDM_DEBUG_FUNCTION
#ifdef CONFIG_BT_COEXIST
#define ODM_CONFIG_BT_COEXIST
#endif
#define PHYDM_SUPPORT_RSSI_MONITOR
2019-05-24 19:43:57 +00:00
/*@#define PHYDM_AUTO_DEGBUG*/
#define CFG_DIG_DAMPING_CHK
#ifdef PHYDM_BEAMFORMING_SUPPORT
#if (RTL8812A_SUPPORT || RTL8821A_SUPPORT || RTL8192E_SUPPORT ||\
RTL8814A_SUPPORT || RTL8881A_SUPPORT)
#define PHYDM_BEAMFORMING_VERSION1
#endif
#if (RTL8192F_SUPPORT || RTL8195B_SUPPORT || RTL8821C_SUPPORT ||\
RTL8822B_SUPPORT || RTL8197F_SUPPORT || RTL8198F_SUPPORT ||\
RTL8822C_SUPPORT || RTL8814B_SUPPORT)
#define DRIVER_BEAMFORMING_VERSION2
#endif
#endif
#if (RTL8822B_SUPPORT)
#ifdef CONFIG_MCC_MODE
#define CONFIG_MCC_DM
#endif
#endif
#if (RTL8822B_SUPPORT)
#ifdef CONFIG_DYNAMIC_BYPASS_MODE
#define CONFIG_DYNAMIC_BYPASS
#endif
#endif
2018-06-22 16:48:32 +00:00
#endif