mirror of
https://github.com/Mange/rtl8192eu-linux-driver
synced 2024-11-23 14:05:00 +00:00
1387cf623d
Version information: 20140812_rtl8192EU_linux_v4.3.1.1_11320 2014-08-12 version 4.3.1.1_11320 Source: ftp://files.dlink.com.au/products/DWA-131/REV_E/Drivers/DWA-131_Linux_driver_v4.3.1.1.zip This version does not currently work on newer kernels, but it does contain USB ID 2001:3319, which a lot of other repos in GitHub does not.
137 lines
3.4 KiB
C
137 lines
3.4 KiB
C
/******************************************************************************
|
|
*
|
|
* Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
|
|
*
|
|
* 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.
|
|
*
|
|
* You should have received a copy of the GNU General Public License along with
|
|
* this program; if not, write to the Free Software Foundation, Inc.,
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
|
|
*
|
|
*
|
|
******************************************************************************/
|
|
|
|
#ifndef __ODMANTDIV_H__
|
|
#define __ODMANTDIV_H__
|
|
|
|
|
|
|
|
#define ANT1_2G 0 // = ANT2_5G
|
|
#define ANT2_2G 1 // = ANT1_5G
|
|
|
|
//Antenna Diversty Control Type
|
|
#define ODM_AUTO_ANT 0
|
|
#define ODM_FIX_MAIN_ANT 1
|
|
#define ODM_FIX_AUX_ANT 2
|
|
|
|
#define TX_BY_REG 0
|
|
|
|
#if (DM_ODM_SUPPORT_TYPE != ODM_AP)
|
|
#define ODM_RTL8881A 0 //Just for windows driver to jointly use ODM-driver
|
|
#endif
|
|
|
|
#define ODM_ANTDIV_SUPPORT (ODM_RTL8188E|ODM_RTL8192E|ODM_RTL8723B|ODM_RTL8821|ODM_RTL8881A|ODM_RTL8812)
|
|
#define ODM_N_ANTDIV_SUPPORT (ODM_RTL8188E|ODM_RTL8192E|ODM_RTL8723B)
|
|
#define ODM_AC_ANTDIV_SUPPORT (ODM_RTL8821|ODM_RTL8881A|ODM_RTL8812)
|
|
#define ODM_SMART_ANT_SUPPORT (ODM_RTL8188E|ODM_RTL8192E)
|
|
|
|
#define ODM_ANTDIV_2G_SUPPORT_IC (ODM_RTL8188E|ODM_RTL8192E|ODM_RTL8723B|ODM_RTL8881A)
|
|
#define ODM_ANTDIV_5G_SUPPORT_IC (ODM_RTL8821|ODM_RTL8881A|ODM_RTL8812)
|
|
#define ODM_ANTDIV_2G BIT0
|
|
#define ODM_ANTDIV_5G BIT1
|
|
|
|
#define ANTDIV_ON 1
|
|
#define ANTDIV_OFF 0
|
|
|
|
VOID
|
|
ODM_AntDivInit(
|
|
IN PDM_ODM_T pDM_Odm
|
|
);
|
|
|
|
VOID
|
|
ODM_AntDiv(
|
|
IN PDM_ODM_T pDM_Odm
|
|
);
|
|
|
|
#if (defined(CONFIG_HW_ANTENNA_DIVERSITY))
|
|
|
|
VOID
|
|
ODM_UpdateRxIdleAnt(
|
|
IN PDM_ODM_T pDM_Odm,
|
|
IN u1Byte Ant
|
|
);
|
|
|
|
#if (RTL8723B_SUPPORT == 1)||(RTL8821A_SUPPORT == 1)
|
|
#if (DM_ODM_SUPPORT_TYPE == ODM_WIN)
|
|
VOID
|
|
ODM_SW_AntDiv_Callback(
|
|
IN PRT_TIMER pTimer
|
|
);
|
|
|
|
VOID
|
|
ODM_SW_AntDiv_WorkitemCallback(
|
|
IN PVOID pContext
|
|
);
|
|
#endif //#if (DM_ODM_SUPPORT_TYPE == ODM_WIN)
|
|
#if (DM_ODM_SUPPORT_TYPE == ODM_CE)
|
|
VOID
|
|
ODM_SW_AntDiv_Callback(void *FunctionContext);
|
|
#endif //#if (DM_ODM_SUPPORT_TYPE == ODM_CE)
|
|
#endif
|
|
|
|
#if(RTL8188E_SUPPORT == 1 || RTL8192E_SUPPORT == 1)
|
|
#if ( !(DM_ODM_SUPPORT_TYPE == ODM_CE))
|
|
VOID
|
|
odm_FastAntTraining(
|
|
IN PDM_ODM_T pDM_Odm
|
|
);
|
|
|
|
VOID
|
|
odm_FastAntTrainingCallback(
|
|
IN PDM_ODM_T pDM_Odm
|
|
);
|
|
|
|
VOID
|
|
odm_FastAntTrainingWorkItemCallback(
|
|
IN PDM_ODM_T pDM_Odm
|
|
);
|
|
#endif
|
|
#endif
|
|
|
|
VOID
|
|
ODM_Process_RSSIForAntDiv(
|
|
IN OUT PDM_ODM_T pDM_Odm,
|
|
IN PODM_PHY_INFO_T pPhyInfo,
|
|
IN PODM_PACKET_INFO_T pPktinfo
|
|
);
|
|
|
|
#if (DM_ODM_SUPPORT_TYPE & (ODM_WIN|ODM_CE))
|
|
VOID
|
|
ODM_SetTxAntByTxInfo(
|
|
IN PDM_ODM_T pDM_Odm,
|
|
IN pu1Byte pDesc,
|
|
IN u1Byte macId
|
|
);
|
|
|
|
#else// (DM_ODM_SUPPORT_TYPE == ODM_AP)
|
|
VOID
|
|
ODM_SetTxAntByTxInfo(
|
|
//IN PDM_ODM_T pDM_Odm,
|
|
struct rtl8192cd_priv *priv,
|
|
struct tx_desc *pdesc,
|
|
struct tx_insn *txcfg,
|
|
unsigned short aid
|
|
);
|
|
|
|
#endif
|
|
|
|
#endif //#if (defined(CONFIG_HW_ANTENNA_DIVERSITY))
|
|
#endif //#ifndef __ODMANTDIV_H__
|