mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2024-11-10 07:29:40 +00:00
rtl8188eu: More cleanups of code
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
3535ad59e3
commit
d597e07a9e
62 changed files with 1765 additions and 1768 deletions
206
core/rtw_efuse.c
206
core/rtw_efuse.c
|
@ -52,14 +52,14 @@ u8 fakeBTEfuseModifiedMap[EFUSE_BT_MAX_MAP_LEN]={0};
|
||||||
|
|
||||||
bool
|
bool
|
||||||
Efuse_Read1ByteFromFakeContent(
|
Efuse_Read1ByteFromFakeContent(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN u16 Offset,
|
u16 Offset,
|
||||||
IN OUT u8 *Value );
|
u8 *Value );
|
||||||
bool
|
bool
|
||||||
Efuse_Read1ByteFromFakeContent(
|
Efuse_Read1ByteFromFakeContent(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN u16 Offset,
|
u16 Offset,
|
||||||
IN OUT u8 *Value )
|
u8 *Value )
|
||||||
{
|
{
|
||||||
if (Offset >= EFUSE_MAX_HW_SIZE)
|
if (Offset >= EFUSE_MAX_HW_SIZE)
|
||||||
{
|
{
|
||||||
|
@ -75,14 +75,14 @@ Efuse_Read1ByteFromFakeContent(
|
||||||
|
|
||||||
bool
|
bool
|
||||||
Efuse_Write1ByteToFakeContent(
|
Efuse_Write1ByteToFakeContent(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN u16 Offset,
|
u16 Offset,
|
||||||
IN u8 Value );
|
u8 Value );
|
||||||
bool
|
bool
|
||||||
Efuse_Write1ByteToFakeContent(
|
Efuse_Write1ByteToFakeContent(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN u16 Offset,
|
u16 Offset,
|
||||||
IN u8 Value )
|
u8 Value )
|
||||||
{
|
{
|
||||||
if (Offset >= EFUSE_MAX_HW_SIZE)
|
if (Offset >= EFUSE_MAX_HW_SIZE)
|
||||||
{
|
{
|
||||||
|
@ -117,9 +117,9 @@ Efuse_Write1ByteToFakeContent(
|
||||||
*---------------------------------------------------------------------------*/
|
*---------------------------------------------------------------------------*/
|
||||||
void
|
void
|
||||||
Efuse_PowerSwitch(
|
Efuse_PowerSwitch(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN u8 bWrite,
|
u8 bWrite,
|
||||||
IN u8 PwrState)
|
u8 PwrState)
|
||||||
{
|
{
|
||||||
pAdapter->HalFunc.EfusePowerSwitch(pAdapter, bWrite, PwrState);
|
pAdapter->HalFunc.EfusePowerSwitch(pAdapter, bWrite, PwrState);
|
||||||
}
|
}
|
||||||
|
@ -251,7 +251,7 @@ efuse_ReadEFuse(
|
||||||
u16 _offset,
|
u16 _offset,
|
||||||
u16 _size_byte,
|
u16 _size_byte,
|
||||||
u8 *pbuf,
|
u8 *pbuf,
|
||||||
IN bool bPseudoTest
|
bool bPseudoTest
|
||||||
);
|
);
|
||||||
void
|
void
|
||||||
efuse_ReadEFuse(
|
efuse_ReadEFuse(
|
||||||
|
@ -260,7 +260,7 @@ efuse_ReadEFuse(
|
||||||
u16 _offset,
|
u16 _offset,
|
||||||
u16 _size_byte,
|
u16 _size_byte,
|
||||||
u8 *pbuf,
|
u8 *pbuf,
|
||||||
IN bool bPseudoTest
|
bool bPseudoTest
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
Adapter->HalFunc.ReadEFuse(Adapter, efuseType, _offset, _size_byte, pbuf, bPseudoTest);
|
Adapter->HalFunc.ReadEFuse(Adapter, efuseType, _offset, _size_byte, pbuf, bPseudoTest);
|
||||||
|
@ -268,11 +268,11 @@ efuse_ReadEFuse(
|
||||||
|
|
||||||
void
|
void
|
||||||
EFUSE_GetEfuseDefinition(
|
EFUSE_GetEfuseDefinition(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN u8 efuseType,
|
u8 efuseType,
|
||||||
IN u8 type,
|
u8 type,
|
||||||
OUT void *pOut,
|
void *pOut,
|
||||||
IN bool bPseudoTest
|
bool bPseudoTest
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
pAdapter->HalFunc.EFUSEGetEfuseDefinition(pAdapter, efuseType, type, pOut, bPseudoTest);
|
pAdapter->HalFunc.EFUSEGetEfuseDefinition(pAdapter, efuseType, type, pOut, bPseudoTest);
|
||||||
|
@ -296,8 +296,8 @@ EFUSE_GetEfuseDefinition(
|
||||||
*---------------------------------------------------------------------------*/
|
*---------------------------------------------------------------------------*/
|
||||||
u8
|
u8
|
||||||
EFUSE_Read1Byte(
|
EFUSE_Read1Byte(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN u16 Address)
|
u16 Address)
|
||||||
{
|
{
|
||||||
u8 data;
|
u8 data;
|
||||||
u8 Bytetemp = {0x00};
|
u8 Bytetemp = {0x00};
|
||||||
|
@ -361,14 +361,14 @@ EFUSE_Read1Byte(
|
||||||
|
|
||||||
void
|
void
|
||||||
EFUSE_Write1Byte(
|
EFUSE_Write1Byte(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN u16 Address,
|
u16 Address,
|
||||||
IN u8 Value);
|
u8 Value);
|
||||||
void
|
void
|
||||||
EFUSE_Write1Byte(
|
EFUSE_Write1Byte(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN u16 Address,
|
u16 Address,
|
||||||
IN u8 Value)
|
u8 Value)
|
||||||
{
|
{
|
||||||
u8 Bytetemp = {0x00};
|
u8 Bytetemp = {0x00};
|
||||||
u8 temp = {0x00};
|
u8 temp = {0x00};
|
||||||
|
@ -414,10 +414,10 @@ EFUSE_Write1Byte(
|
||||||
/* 11/16/2008 MH Read one byte from real Efuse. */
|
/* 11/16/2008 MH Read one byte from real Efuse. */
|
||||||
u8
|
u8
|
||||||
efuse_OneByteRead(
|
efuse_OneByteRead(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN u16 addr,
|
u16 addr,
|
||||||
IN u8 *data,
|
u8 *data,
|
||||||
IN bool bPseudoTest)
|
bool bPseudoTest)
|
||||||
{
|
{
|
||||||
u8 tmpidx = 0;
|
u8 tmpidx = 0;
|
||||||
u8 bResult;
|
u8 bResult;
|
||||||
|
@ -455,10 +455,10 @@ efuse_OneByteRead(
|
||||||
/* 11/16/2008 MH Write one byte to reald Efuse. */
|
/* 11/16/2008 MH Write one byte to reald Efuse. */
|
||||||
u8
|
u8
|
||||||
efuse_OneByteWrite(
|
efuse_OneByteWrite(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN u16 addr,
|
u16 addr,
|
||||||
IN u8 data,
|
u8 data,
|
||||||
IN bool bPseudoTest)
|
bool bPseudoTest)
|
||||||
{
|
{
|
||||||
u8 tmpidx = 0;
|
u8 tmpidx = 0;
|
||||||
u8 bResult;
|
u8 bResult;
|
||||||
|
@ -498,10 +498,10 @@ efuse_OneByteWrite(
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
Efuse_PgPacketRead( IN PADAPTER pAdapter,
|
Efuse_PgPacketRead( PADAPTER pAdapter,
|
||||||
IN u8 offset,
|
u8 offset,
|
||||||
IN u8 *data,
|
u8 *data,
|
||||||
IN bool bPseudoTest)
|
bool bPseudoTest)
|
||||||
{
|
{
|
||||||
int ret=0;
|
int ret=0;
|
||||||
|
|
||||||
|
@ -511,11 +511,11 @@ Efuse_PgPacketRead( IN PADAPTER pAdapter,
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
Efuse_PgPacketWrite(IN PADAPTER pAdapter,
|
Efuse_PgPacketWrite( PADAPTER pAdapter,
|
||||||
IN u8 offset,
|
u8 offset,
|
||||||
IN u8 word_en,
|
u8 word_en,
|
||||||
IN u8 *data,
|
u8 *data,
|
||||||
IN bool bPseudoTest)
|
bool bPseudoTest)
|
||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
|
@ -526,11 +526,11 @@ Efuse_PgPacketWrite(IN PADAPTER pAdapter,
|
||||||
|
|
||||||
|
|
||||||
int
|
int
|
||||||
Efuse_PgPacketWrite_BT(IN PADAPTER pAdapter,
|
Efuse_PgPacketWrite_BT( PADAPTER pAdapter,
|
||||||
IN u8 offset,
|
u8 offset,
|
||||||
IN u8 word_en,
|
u8 word_en,
|
||||||
IN u8 *data,
|
u8 *data,
|
||||||
IN bool bPseudoTest)
|
bool bPseudoTest)
|
||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
|
@ -557,9 +557,9 @@ Efuse_PgPacketWrite_BT(IN PADAPTER pAdapter,
|
||||||
*
|
*
|
||||||
*---------------------------------------------------------------------------*/
|
*---------------------------------------------------------------------------*/
|
||||||
void
|
void
|
||||||
efuse_WordEnableDataRead(IN u8 word_en,
|
efuse_WordEnableDataRead( u8 word_en,
|
||||||
IN u8 *sourdata,
|
u8 *sourdata,
|
||||||
IN u8 *targetdata)
|
u8 *targetdata)
|
||||||
{
|
{
|
||||||
if (!(word_en&BIT(0)))
|
if (!(word_en&BIT(0)))
|
||||||
{
|
{
|
||||||
|
@ -585,11 +585,11 @@ efuse_WordEnableDataRead(IN u8 word_en,
|
||||||
|
|
||||||
|
|
||||||
u8
|
u8
|
||||||
Efuse_WordEnableDataWrite( IN PADAPTER pAdapter,
|
Efuse_WordEnableDataWrite( PADAPTER pAdapter,
|
||||||
IN u16 efuse_addr,
|
u16 efuse_addr,
|
||||||
IN u8 word_en,
|
u8 word_en,
|
||||||
IN u8 *data,
|
u8 *data,
|
||||||
IN bool bPseudoTest)
|
bool bPseudoTest)
|
||||||
{
|
{
|
||||||
u8 ret=0;
|
u8 ret=0;
|
||||||
|
|
||||||
|
@ -916,16 +916,16 @@ exit:
|
||||||
*---------------------------------------------------------------------------*/
|
*---------------------------------------------------------------------------*/
|
||||||
void
|
void
|
||||||
Efuse_ReadAllMap(
|
Efuse_ReadAllMap(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN u8 efuseType,
|
u8 efuseType,
|
||||||
IN OUT u8 *Efuse,
|
u8 *Efuse,
|
||||||
IN bool bPseudoTest);
|
bool bPseudoTest);
|
||||||
void
|
void
|
||||||
Efuse_ReadAllMap(
|
Efuse_ReadAllMap(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN u8 efuseType,
|
u8 efuseType,
|
||||||
IN OUT u8 *Efuse,
|
u8 *Efuse,
|
||||||
IN bool bPseudoTest)
|
bool bPseudoTest)
|
||||||
{
|
{
|
||||||
u16 mapLen=0;
|
u16 mapLen=0;
|
||||||
|
|
||||||
|
@ -958,9 +958,9 @@ Efuse_ReadAllMap(
|
||||||
*---------------------------------------------------------------------------*/
|
*---------------------------------------------------------------------------*/
|
||||||
static void
|
static void
|
||||||
efuse_ShadowRead1Byte(
|
efuse_ShadowRead1Byte(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN u16 Offset,
|
u16 Offset,
|
||||||
IN OUT u8 *Value)
|
u8 *Value)
|
||||||
{
|
{
|
||||||
EEPROM_EFUSE_PRIV *pEEPROM = GET_EEPROM_EFUSE_PRIV(pAdapter);
|
EEPROM_EFUSE_PRIV *pEEPROM = GET_EEPROM_EFUSE_PRIV(pAdapter);
|
||||||
|
|
||||||
|
@ -971,9 +971,9 @@ efuse_ShadowRead1Byte(
|
||||||
//---------------Read Two Bytes
|
//---------------Read Two Bytes
|
||||||
static void
|
static void
|
||||||
efuse_ShadowRead2Byte(
|
efuse_ShadowRead2Byte(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN u16 Offset,
|
u16 Offset,
|
||||||
IN OUT u16 *Value)
|
u16 *Value)
|
||||||
{
|
{
|
||||||
EEPROM_EFUSE_PRIV *pEEPROM = GET_EEPROM_EFUSE_PRIV(pAdapter);
|
EEPROM_EFUSE_PRIV *pEEPROM = GET_EEPROM_EFUSE_PRIV(pAdapter);
|
||||||
|
|
||||||
|
@ -985,9 +985,9 @@ efuse_ShadowRead2Byte(
|
||||||
//---------------Read Four Bytes
|
//---------------Read Four Bytes
|
||||||
static void
|
static void
|
||||||
efuse_ShadowRead4Byte(
|
efuse_ShadowRead4Byte(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN u16 Offset,
|
u16 Offset,
|
||||||
IN OUT u32 *Value)
|
u32 *Value)
|
||||||
{
|
{
|
||||||
EEPROM_EFUSE_PRIV *pEEPROM = GET_EEPROM_EFUSE_PRIV(pAdapter);
|
EEPROM_EFUSE_PRIV *pEEPROM = GET_EEPROM_EFUSE_PRIV(pAdapter);
|
||||||
|
|
||||||
|
@ -1020,15 +1020,15 @@ efuse_ShadowRead4Byte(
|
||||||
#ifdef PLATFORM
|
#ifdef PLATFORM
|
||||||
static void
|
static void
|
||||||
efuse_ShadowWrite1Byte(
|
efuse_ShadowWrite1Byte(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN u16 Offset,
|
u16 Offset,
|
||||||
IN u8 Value);
|
u8 Value);
|
||||||
#endif //PLATFORM
|
#endif //PLATFORM
|
||||||
static void
|
static void
|
||||||
efuse_ShadowWrite1Byte(
|
efuse_ShadowWrite1Byte(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN u16 Offset,
|
u16 Offset,
|
||||||
IN u8 Value)
|
u8 Value)
|
||||||
{
|
{
|
||||||
EEPROM_EFUSE_PRIV *pEEPROM = GET_EEPROM_EFUSE_PRIV(pAdapter);
|
EEPROM_EFUSE_PRIV *pEEPROM = GET_EEPROM_EFUSE_PRIV(pAdapter);
|
||||||
|
|
||||||
|
@ -1039,9 +1039,9 @@ efuse_ShadowWrite1Byte(
|
||||||
//---------------Write Two Bytes
|
//---------------Write Two Bytes
|
||||||
static void
|
static void
|
||||||
efuse_ShadowWrite2Byte(
|
efuse_ShadowWrite2Byte(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN u16 Offset,
|
u16 Offset,
|
||||||
IN u16 Value)
|
u16 Value)
|
||||||
{
|
{
|
||||||
EEPROM_EFUSE_PRIV *pEEPROM = GET_EEPROM_EFUSE_PRIV(pAdapter);
|
EEPROM_EFUSE_PRIV *pEEPROM = GET_EEPROM_EFUSE_PRIV(pAdapter);
|
||||||
|
|
||||||
|
@ -1053,9 +1053,9 @@ efuse_ShadowWrite2Byte(
|
||||||
//---------------Write Four Bytes
|
//---------------Write Four Bytes
|
||||||
static void
|
static void
|
||||||
efuse_ShadowWrite4Byte(
|
efuse_ShadowWrite4Byte(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN u16 Offset,
|
u16 Offset,
|
||||||
IN u32 Value)
|
u32 Value)
|
||||||
{
|
{
|
||||||
EEPROM_EFUSE_PRIV *pEEPROM = GET_EEPROM_EFUSE_PRIV(pAdapter);
|
EEPROM_EFUSE_PRIV *pEEPROM = GET_EEPROM_EFUSE_PRIV(pAdapter);
|
||||||
|
|
||||||
|
@ -1133,10 +1133,10 @@ void EFUSE_ShadowMapUpdate(
|
||||||
*---------------------------------------------------------------------------*/
|
*---------------------------------------------------------------------------*/
|
||||||
void
|
void
|
||||||
EFUSE_ShadowRead(
|
EFUSE_ShadowRead(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN u8 Type,
|
u8 Type,
|
||||||
IN u16 Offset,
|
u16 Offset,
|
||||||
IN OUT u32 *Value )
|
u32 *Value )
|
||||||
{
|
{
|
||||||
if (Type == 1)
|
if (Type == 1)
|
||||||
efuse_ShadowRead1Byte(pAdapter, Offset, (u8 *)Value);
|
efuse_ShadowRead1Byte(pAdapter, Offset, (u8 *)Value);
|
||||||
|
@ -1165,16 +1165,16 @@ EFUSE_ShadowRead(
|
||||||
*---------------------------------------------------------------------------*/
|
*---------------------------------------------------------------------------*/
|
||||||
void
|
void
|
||||||
EFUSE_ShadowWrite(
|
EFUSE_ShadowWrite(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN u8 Type,
|
u8 Type,
|
||||||
IN u16 Offset,
|
u16 Offset,
|
||||||
IN OUT u32 Value);
|
u32 Value);
|
||||||
void
|
void
|
||||||
EFUSE_ShadowWrite(
|
EFUSE_ShadowWrite(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN u8 Type,
|
u8 Type,
|
||||||
IN u16 Offset,
|
u16 Offset,
|
||||||
IN OUT u32 Value)
|
u32 Value)
|
||||||
{
|
{
|
||||||
#if (MP_DRIVER == 0)
|
#if (MP_DRIVER == 0)
|
||||||
return;
|
return;
|
||||||
|
@ -1194,11 +1194,11 @@ EFUSE_ShadowWrite(
|
||||||
|
|
||||||
void
|
void
|
||||||
Efuse_InitSomeVar(
|
Efuse_InitSomeVar(
|
||||||
IN PADAPTER pAdapter
|
PADAPTER pAdapter
|
||||||
);
|
);
|
||||||
void
|
void
|
||||||
Efuse_InitSomeVar(
|
Efuse_InitSomeVar(
|
||||||
IN PADAPTER pAdapter
|
PADAPTER pAdapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
u8 i;
|
u8 i;
|
||||||
|
|
|
@ -359,8 +359,8 @@ void free_mp_priv(struct mp_priv *pmp_priv)
|
||||||
|
|
||||||
s32
|
s32
|
||||||
MPT_InitializeAdapter(
|
MPT_InitializeAdapter(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN u8 Channel
|
u8 Channel
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(pAdapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(pAdapter);
|
||||||
|
@ -470,7 +470,7 @@ MPT_InitializeAdapter(
|
||||||
*---------------------------------------------------------------------------*/
|
*---------------------------------------------------------------------------*/
|
||||||
void
|
void
|
||||||
MPT_DeInitAdapter(
|
MPT_DeInitAdapter(
|
||||||
IN PADAPTER pAdapter
|
PADAPTER pAdapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
PMPT_CONTEXT pMptCtx = &pAdapter->mppriv.MptCtx;
|
PMPT_CONTEXT pMptCtx = &pAdapter->mppriv.MptCtx;
|
||||||
|
@ -719,7 +719,7 @@ end_of_mp_stop_test:
|
||||||
*
|
*
|
||||||
* Overview: Change RF Setting when we siwthc channel/rate/BW for MP.
|
* Overview: Change RF Setting when we siwthc channel/rate/BW for MP.
|
||||||
*
|
*
|
||||||
* Input: IN PADAPTER pAdapter
|
* Input: PADAPTER pAdapter
|
||||||
*
|
*
|
||||||
* Output: NONE
|
* Output: NONE
|
||||||
*
|
*
|
||||||
|
|
|
@ -23,6 +23,7 @@
|
||||||
#include <osdep_service.h>
|
#include <osdep_service.h>
|
||||||
#include <drv_types.h>
|
#include <drv_types.h>
|
||||||
#include <osdep_intf.h>
|
#include <osdep_intf.h>
|
||||||
|
#include <linux/usb.h>
|
||||||
|
|
||||||
#ifdef CONFIG_BT_COEXIST
|
#ifdef CONFIG_BT_COEXIST
|
||||||
#include <rtl8723a_hal.h>
|
#include <rtl8723a_hal.h>
|
||||||
|
|
|
@ -2837,10 +2837,10 @@ int tdls_verify_mic(u8 *kck, u8 trans_seq,
|
||||||
|
|
||||||
#ifdef PLATFORM_WINDOWS
|
#ifdef PLATFORM_WINDOWS
|
||||||
void rtw_use_tkipkey_handler (
|
void rtw_use_tkipkey_handler (
|
||||||
IN void * SystemSpecific1,
|
void * SystemSpecific1,
|
||||||
IN void * FunctionContext,
|
void * FunctionContext,
|
||||||
IN void * SystemSpecific2,
|
void * SystemSpecific2,
|
||||||
IN void * SystemSpecific3
|
void * SystemSpecific3
|
||||||
)
|
)
|
||||||
#endif
|
#endif
|
||||||
#ifdef PLATFORM_LINUX
|
#ifdef PLATFORM_LINUX
|
||||||
|
|
|
@ -52,7 +52,7 @@ extern unsigned char RSN_TKIP_CIPHER[4];
|
||||||
|
|
||||||
#define R2T_PHY_DELAY (0)
|
#define R2T_PHY_DELAY (0)
|
||||||
|
|
||||||
//#define WAIT_FOR_BCN_TO_MIN (3000)
|
//#define WAIT_FOR_BCN_TO_M (3000)
|
||||||
#define WAIT_FOR_BCN_TO_MIN (6000)
|
#define WAIT_FOR_BCN_TO_MIN (6000)
|
||||||
#define WAIT_FOR_BCN_TO_MAX (20000)
|
#define WAIT_FOR_BCN_TO_MAX (20000)
|
||||||
|
|
||||||
|
|
|
@ -146,9 +146,9 @@ static u2Byte DynamicTxRPTTiming[6]={0x186a, 0x30d4, 0x493e, 0x61a8, 0x7a12 ,0x9
|
||||||
|
|
||||||
static void
|
static void
|
||||||
odm_SetTxRPTTiming_8188E(
|
odm_SetTxRPTTiming_8188E(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN PODM_RA_INFO_T pRaInfo,
|
PODM_RA_INFO_T pRaInfo,
|
||||||
IN u1Byte extend
|
u1Byte extend
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
u1Byte idx = 0;
|
u1Byte idx = 0;
|
||||||
|
@ -175,8 +175,8 @@ odm_SetTxRPTTiming_8188E(
|
||||||
|
|
||||||
static int
|
static int
|
||||||
odm_RateDown_8188E(
|
odm_RateDown_8188E(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN PODM_RA_INFO_T pRaInfo
|
PODM_RA_INFO_T pRaInfo
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
u1Byte RateID, LowestRate, HighestRate;
|
u1Byte RateID, LowestRate, HighestRate;
|
||||||
|
@ -248,8 +248,8 @@ RateDownFinish:
|
||||||
|
|
||||||
static int
|
static int
|
||||||
odm_RateUp_8188E(
|
odm_RateUp_8188E(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN PODM_RA_INFO_T pRaInfo
|
PODM_RA_INFO_T pRaInfo
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
u1Byte RateID, HighestRate;
|
u1Byte RateID, HighestRate;
|
||||||
|
@ -323,8 +323,8 @@ static void odm_ResetRaCounter_8188E( IN PODM_RA_INFO_T pRaInfo){
|
||||||
|
|
||||||
static void
|
static void
|
||||||
odm_RateDecision_8188E(
|
odm_RateDecision_8188E(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN PODM_RA_INFO_T pRaInfo
|
PODM_RA_INFO_T pRaInfo
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
u1Byte RateID = 0, RtyPtID = 0, PenaltyID1 = 0, PenaltyID2 = 0;
|
u1Byte RateID = 0, RtyPtID = 0, PenaltyID1 = 0, PenaltyID2 = 0;
|
||||||
|
@ -415,8 +415,8 @@ odm_RateDecision_8188E(
|
||||||
|
|
||||||
static int
|
static int
|
||||||
odm_ARFBRefresh_8188E(
|
odm_ARFBRefresh_8188E(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN PODM_RA_INFO_T pRaInfo
|
PODM_RA_INFO_T pRaInfo
|
||||||
)
|
)
|
||||||
{ // Wilson 2011/10/26
|
{ // Wilson 2011/10/26
|
||||||
u4Byte MaskFromReg;
|
u4Byte MaskFromReg;
|
||||||
|
@ -519,7 +519,7 @@ odm_ARFBRefresh_8188E(
|
||||||
#if POWER_TRAINING_ACTIVE == 1
|
#if POWER_TRAINING_ACTIVE == 1
|
||||||
static void
|
static void
|
||||||
odm_PTTryState_8188E(
|
odm_PTTryState_8188E(
|
||||||
IN PODM_RA_INFO_T pRaInfo
|
PODM_RA_INFO_T pRaInfo
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
pRaInfo->PTTryState=0;
|
pRaInfo->PTTryState=0;
|
||||||
|
@ -579,7 +579,7 @@ odm_PTTryState_8188E(
|
||||||
|
|
||||||
static void
|
static void
|
||||||
odm_PTDecision_8188E(
|
odm_PTDecision_8188E(
|
||||||
IN PODM_RA_INFO_T pRaInfo
|
PODM_RA_INFO_T pRaInfo
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
u1Byte stage_BUF;
|
u1Byte stage_BUF;
|
||||||
|
@ -622,8 +622,8 @@ odm_PTDecision_8188E(
|
||||||
|
|
||||||
static void
|
static void
|
||||||
odm_RATxRPTTimerSetting(
|
odm_RATxRPTTimerSetting(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN u2Byte minRptTime
|
u2Byte minRptTime
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
ODM_RT_TRACE(pDM_Odm,ODM_COMP_RATE_ADAPTIVE, ODM_DBG_TRACE,(" =====>odm_RATxRPTTimerSetting()\n"));
|
ODM_RT_TRACE(pDM_Odm,ODM_COMP_RATE_ADAPTIVE, ODM_DBG_TRACE,(" =====>odm_RATxRPTTimerSetting()\n"));
|
||||||
|
@ -645,7 +645,7 @@ odm_RATxRPTTimerSetting(
|
||||||
|
|
||||||
void
|
void
|
||||||
ODM_RASupport_Init(
|
ODM_RASupport_Init(
|
||||||
IN PDM_ODM_T pDM_Odm
|
PDM_ODM_T pDM_Odm
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
ODM_RT_TRACE(pDM_Odm,ODM_COMP_RATE_ADAPTIVE, ODM_DBG_LOUD, ("=====>ODM_RASupport_Init()\n"));
|
ODM_RT_TRACE(pDM_Odm,ODM_COMP_RATE_ADAPTIVE, ODM_DBG_LOUD, ("=====>ODM_RASupport_Init()\n"));
|
||||||
|
@ -660,8 +660,8 @@ ODM_RASupport_Init(
|
||||||
|
|
||||||
int
|
int
|
||||||
ODM_RAInfo_Init(
|
ODM_RAInfo_Init(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN u1Byte MacID
|
u1Byte MacID
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
PODM_RA_INFO_T pRaInfo = &pDM_Odm->RAInfo[MacID];
|
PODM_RA_INFO_T pRaInfo = &pDM_Odm->RAInfo[MacID];
|
||||||
|
@ -748,8 +748,8 @@ ODM_RAInfo_Init_all(
|
||||||
|
|
||||||
u1Byte
|
u1Byte
|
||||||
ODM_RA_GetShortGI_8188E(
|
ODM_RA_GetShortGI_8188E(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN u1Byte MacID
|
u1Byte MacID
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
if ((NULL == pDM_Odm) || (MacID >= ASSOCIATE_ENTRY_NUM))
|
if ((NULL == pDM_Odm) || (MacID >= ASSOCIATE_ENTRY_NUM))
|
||||||
|
@ -761,8 +761,8 @@ ODM_RA_GetShortGI_8188E(
|
||||||
|
|
||||||
u1Byte
|
u1Byte
|
||||||
ODM_RA_GetDecisionRate_8188E(
|
ODM_RA_GetDecisionRate_8188E(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN u1Byte MacID
|
u1Byte MacID
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
u1Byte DecisionRate = 0;
|
u1Byte DecisionRate = 0;
|
||||||
|
@ -777,8 +777,8 @@ ODM_RA_GetDecisionRate_8188E(
|
||||||
|
|
||||||
u1Byte
|
u1Byte
|
||||||
ODM_RA_GetHwPwrStatus_8188E(
|
ODM_RA_GetHwPwrStatus_8188E(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN u1Byte MacID
|
u1Byte MacID
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
u1Byte PTStage = 5;
|
u1Byte PTStage = 5;
|
||||||
|
@ -816,9 +816,9 @@ ODM_RA_UpdateRateInfo_8188E(
|
||||||
|
|
||||||
void
|
void
|
||||||
ODM_RA_SetRSSI_8188E(
|
ODM_RA_SetRSSI_8188E(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN u1Byte MacID,
|
u1Byte MacID,
|
||||||
IN u1Byte Rssi
|
u1Byte Rssi
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
PODM_RA_INFO_T pRaInfo = NULL;
|
PODM_RA_INFO_T pRaInfo = NULL;
|
||||||
|
@ -834,8 +834,8 @@ ODM_RA_SetRSSI_8188E(
|
||||||
|
|
||||||
void
|
void
|
||||||
ODM_RA_Set_TxRPT_Time(
|
ODM_RA_Set_TxRPT_Time(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN u2Byte minRptTime
|
u2Byte minRptTime
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
#if (DM_ODM_SUPPORT_TYPE & (ODM_AP))
|
#if (DM_ODM_SUPPORT_TYPE & (ODM_AP))
|
||||||
|
@ -847,11 +847,11 @@ ODM_RA_Set_TxRPT_Time(
|
||||||
|
|
||||||
void
|
void
|
||||||
ODM_RA_TxRPT2Handle_8188E(
|
ODM_RA_TxRPT2Handle_8188E(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN pu1Byte TxRPT_Buf,
|
pu1Byte TxRPT_Buf,
|
||||||
IN u2Byte TxRPT_Len,
|
u2Byte TxRPT_Len,
|
||||||
IN u4Byte MacIDValidEntry0,
|
u4Byte MacIDValidEntry0,
|
||||||
IN u4Byte MacIDValidEntry1
|
u4Byte MacIDValidEntry1
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
PODM_RA_INFO_T pRAInfo = NULL;
|
PODM_RA_INFO_T pRAInfo = NULL;
|
||||||
|
@ -982,8 +982,8 @@ ODM_RA_TxRPT2Handle_8188E(
|
||||||
|
|
||||||
static void
|
static void
|
||||||
odm_RATxRPTTimerSetting(
|
odm_RATxRPTTimerSetting(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN u2Byte minRptTime
|
u2Byte minRptTime
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
|
@ -992,7 +992,7 @@ odm_RATxRPTTimerSetting(
|
||||||
|
|
||||||
void
|
void
|
||||||
ODM_RASupport_Init(
|
ODM_RASupport_Init(
|
||||||
IN PDM_ODM_T pDM_Odm
|
PDM_ODM_T pDM_Odm
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
|
@ -1000,8 +1000,8 @@ ODM_RASupport_Init(
|
||||||
|
|
||||||
int
|
int
|
||||||
ODM_RAInfo_Init(
|
ODM_RAInfo_Init(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN u1Byte MacID
|
u1Byte MacID
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -1017,8 +1017,8 @@ ODM_RAInfo_Init_all(
|
||||||
|
|
||||||
u1Byte
|
u1Byte
|
||||||
ODM_RA_GetShortGI_8188E(
|
ODM_RA_GetShortGI_8188E(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN u1Byte MacID
|
u1Byte MacID
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -1026,16 +1026,16 @@ ODM_RA_GetShortGI_8188E(
|
||||||
|
|
||||||
u1Byte
|
u1Byte
|
||||||
ODM_RA_GetDecisionRate_8188E(
|
ODM_RA_GetDecisionRate_8188E(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN u1Byte MacID
|
u1Byte MacID
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
u1Byte
|
u1Byte
|
||||||
ODM_RA_GetHwPwrStatus_8188E(
|
ODM_RA_GetHwPwrStatus_8188E(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN u1Byte MacID
|
u1Byte MacID
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -1055,9 +1055,9 @@ ODM_RA_UpdateRateInfo_8188E(
|
||||||
|
|
||||||
void
|
void
|
||||||
ODM_RA_SetRSSI_8188E(
|
ODM_RA_SetRSSI_8188E(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN u1Byte MacID,
|
u1Byte MacID,
|
||||||
IN u1Byte Rssi
|
u1Byte Rssi
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
|
@ -1065,8 +1065,8 @@ ODM_RA_SetRSSI_8188E(
|
||||||
|
|
||||||
void
|
void
|
||||||
ODM_RA_Set_TxRPT_Time(
|
ODM_RA_Set_TxRPT_Time(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN u2Byte minRptTime
|
u2Byte minRptTime
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
|
@ -1074,11 +1074,11 @@ ODM_RA_Set_TxRPT_Time(
|
||||||
|
|
||||||
void
|
void
|
||||||
ODM_RA_TxRPT2Handle_8188E(
|
ODM_RA_TxRPT2Handle_8188E(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN pu1Byte TxRPT_Buf,
|
pu1Byte TxRPT_Buf,
|
||||||
IN u2Byte TxRPT_Len,
|
u2Byte TxRPT_Len,
|
||||||
IN u4Byte MacIDValidEntry0,
|
u4Byte MacIDValidEntry0,
|
||||||
IN u4Byte MacIDValidEntry1
|
u4Byte MacIDValidEntry1
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
|
|
||||||
void
|
void
|
||||||
phy_PathAStandBy(
|
phy_PathAStandBy(
|
||||||
IN PADAPTER pAdapter
|
PADAPTER pAdapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
RTPRINT(FINIT, INIT_IQK, ("Path-A standby mode!\n"));
|
RTPRINT(FINIT, INIT_IQK, ("Path-A standby mode!\n"));
|
||||||
|
@ -41,8 +41,8 @@ phy_PathAStandBy(
|
||||||
|
|
||||||
u1Byte //bit0 = 1 => Tx OK, bit1 = 1 => Rx OK
|
u1Byte //bit0 = 1 => Tx OK, bit1 = 1 => Rx OK
|
||||||
phy_PathA_IQK_8192C(
|
phy_PathA_IQK_8192C(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN bool configPathB
|
bool configPathB
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@ -129,7 +129,7 @@ phy_PathA_IQK_8192C(
|
||||||
|
|
||||||
u1Byte //bit0 = 1 => Tx OK, bit1 = 1 => Rx OK
|
u1Byte //bit0 = 1 => Tx OK, bit1 = 1 => Rx OK
|
||||||
phy_PathB_IQK_8192C(
|
phy_PathB_IQK_8192C(
|
||||||
IN PADAPTER pAdapter
|
PADAPTER pAdapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
u4Byte regEAC, regEB4, regEBC, regEC4, regECC;
|
u4Byte regEAC, regEB4, regEBC, regEC4, regECC;
|
||||||
|
@ -178,10 +178,10 @@ phy_PathB_IQK_8192C(
|
||||||
|
|
||||||
void
|
void
|
||||||
phy_PathAFillIQKMatrix(
|
phy_PathAFillIQKMatrix(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN bool bIQKOK,
|
IN bool bIQKOK,
|
||||||
IN s4Byte result[][8],
|
s4Byte result[][8],
|
||||||
IN u1Byte final_candidate,
|
u1Byte final_candidate,
|
||||||
IN bool bTxOnly
|
IN bool bTxOnly
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
@ -245,11 +245,11 @@ phy_PathAFillIQKMatrix(
|
||||||
|
|
||||||
void
|
void
|
||||||
phy_PathBFillIQKMatrix(
|
phy_PathBFillIQKMatrix(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN bool bIQKOK,
|
IN bool bIQKOK,
|
||||||
IN s4Byte result[][8],
|
s4Byte result[][8],
|
||||||
IN u1Byte final_candidate,
|
u1Byte final_candidate,
|
||||||
IN bool bTxOnly //do Tx only
|
bool bTxOnly //do Tx only
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
u4Byte Oldval_1, X, TX1_A, reg;
|
u4Byte Oldval_1, X, TX1_A, reg;
|
||||||
|
@ -307,10 +307,10 @@ phy_PathBFillIQKMatrix(
|
||||||
|
|
||||||
bool
|
bool
|
||||||
phy_SimularityCompare_92C(
|
phy_SimularityCompare_92C(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN s4Byte result[][8],
|
s4Byte result[][8],
|
||||||
IN u1Byte c1,
|
u1Byte c1,
|
||||||
IN u1Byte c2
|
u1Byte c2
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
u4Byte i, j, diff, SimularityBitMap, bound = 0;
|
u4Byte i, j, diff, SimularityBitMap, bound = 0;
|
||||||
|
@ -379,10 +379,10 @@ return FALSE => do IQK again
|
||||||
*/
|
*/
|
||||||
bool
|
bool
|
||||||
phy_SimularityCompare(
|
phy_SimularityCompare(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN s4Byte result[][8],
|
s4Byte result[][8],
|
||||||
IN u1Byte c1,
|
u1Byte c1,
|
||||||
IN u1Byte c2
|
u1Byte c2
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
if (IS_HARDWARE_TYPE_8192D(pAdapter))
|
if (IS_HARDWARE_TYPE_8192D(pAdapter))
|
||||||
|
@ -394,10 +394,10 @@ phy_SimularityCompare(
|
||||||
|
|
||||||
void
|
void
|
||||||
phy_IQCalibrate_8192C(
|
phy_IQCalibrate_8192C(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN s4Byte result[][8],
|
s4Byte result[][8],
|
||||||
IN u1Byte t,
|
u1Byte t,
|
||||||
IN bool is2T
|
bool is2T
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(pAdapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(pAdapter);
|
||||||
|
@ -650,8 +650,8 @@ phy_IQCalibrate_8192C(
|
||||||
|
|
||||||
void
|
void
|
||||||
phy_LCCalibrate92C(
|
phy_LCCalibrate92C(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN bool is2T
|
bool is2T
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
u1Byte tmpReg;
|
u1Byte tmpReg;
|
||||||
|
@ -714,8 +714,8 @@ phy_LCCalibrate92C(
|
||||||
|
|
||||||
void
|
void
|
||||||
phy_LCCalibrate(
|
phy_LCCalibrate(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN bool is2T
|
bool is2T
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
if (IS_HARDWARE_TYPE_8192D(pAdapter))
|
if (IS_HARDWARE_TYPE_8192D(pAdapter))
|
||||||
|
@ -741,9 +741,9 @@ phy_LCCalibrate(
|
||||||
|
|
||||||
void
|
void
|
||||||
phy_APCalibrate_8192C(
|
phy_APCalibrate_8192C(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN s1Byte delta,
|
s1Byte delta,
|
||||||
IN bool is2T
|
bool is2T
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(pAdapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(pAdapter);
|
||||||
|
@ -1180,8 +1180,8 @@ if (pAdapter->registrypriv.mp_mode == 1)
|
||||||
|
|
||||||
void
|
void
|
||||||
PHY_IQCalibrate_8192C(
|
PHY_IQCalibrate_8192C(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN bool bReCovery
|
bool bReCovery
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(pAdapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(pAdapter);
|
||||||
|
@ -1390,7 +1390,7 @@ if (pAdapter->registrypriv.mp_mode == 1)
|
||||||
|
|
||||||
void
|
void
|
||||||
PHY_LCCalibrate_8192C(
|
PHY_LCCalibrate_8192C(
|
||||||
IN PADAPTER pAdapter
|
PADAPTER pAdapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(pAdapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(pAdapter);
|
||||||
|
@ -1458,8 +1458,8 @@ if (pAdapter->registrypriv.mp_mode == 1)
|
||||||
|
|
||||||
void
|
void
|
||||||
PHY_APCalibrate_8192C(
|
PHY_APCalibrate_8192C(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN s1Byte delta
|
s1Byte delta
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(pAdapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(pAdapter);
|
||||||
|
|
|
@ -632,9 +632,9 @@ phy_PathA_IQK_8188E(
|
||||||
#if (DM_ODM_SUPPORT_TYPE & ODM_AP)
|
#if (DM_ODM_SUPPORT_TYPE & ODM_AP)
|
||||||
IN PDM_ODM_T pDM_Odm,
|
IN PDM_ODM_T pDM_Odm,
|
||||||
#else
|
#else
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
#endif
|
#endif
|
||||||
IN bool configPathB
|
bool configPathB
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
u4Byte regEAC, regE94, regE9C, regEA4;
|
u4Byte regEAC, regE94, regE9C, regEA4;
|
||||||
|
@ -696,9 +696,9 @@ phy_PathA_RxIQK(
|
||||||
#if (DM_ODM_SUPPORT_TYPE & ODM_AP)
|
#if (DM_ODM_SUPPORT_TYPE & ODM_AP)
|
||||||
IN PDM_ODM_T pDM_Odm,
|
IN PDM_ODM_T pDM_Odm,
|
||||||
#else
|
#else
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
#endif
|
#endif
|
||||||
IN bool configPathB
|
bool configPathB
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
u4Byte regEAC, regE94, regE9C, regEA4, u4tmp;
|
u4Byte regEAC, regE94, regE9C, regEA4, u4tmp;
|
||||||
|
@ -841,7 +841,7 @@ phy_PathB_IQK_8188E(
|
||||||
#if (DM_ODM_SUPPORT_TYPE & ODM_AP)
|
#if (DM_ODM_SUPPORT_TYPE & ODM_AP)
|
||||||
IN PDM_ODM_T pDM_Odm
|
IN PDM_ODM_T pDM_Odm
|
||||||
#else
|
#else
|
||||||
IN PADAPTER pAdapter
|
PADAPTER pAdapter
|
||||||
#endif
|
#endif
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
@ -904,11 +904,11 @@ _PHY_PathAFillIQKMatrix(
|
||||||
#if (DM_ODM_SUPPORT_TYPE & ODM_AP)
|
#if (DM_ODM_SUPPORT_TYPE & ODM_AP)
|
||||||
IN PDM_ODM_T pDM_Odm,
|
IN PDM_ODM_T pDM_Odm,
|
||||||
#else
|
#else
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
#endif
|
#endif
|
||||||
IN bool bIQKOK,
|
IN bool bIQKOK,
|
||||||
IN s4Byte result[][8],
|
s4Byte result[][8],
|
||||||
IN u1Byte final_candidate,
|
u1Byte final_candidate,
|
||||||
IN bool bTxOnly
|
IN bool bTxOnly
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
@ -979,12 +979,12 @@ _PHY_PathBFillIQKMatrix(
|
||||||
#if (DM_ODM_SUPPORT_TYPE & ODM_AP)
|
#if (DM_ODM_SUPPORT_TYPE & ODM_AP)
|
||||||
IN PDM_ODM_T pDM_Odm,
|
IN PDM_ODM_T pDM_Odm,
|
||||||
#else
|
#else
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
#endif
|
#endif
|
||||||
IN bool bIQKOK,
|
IN bool bIQKOK,
|
||||||
IN s4Byte result[][8],
|
s4Byte result[][8],
|
||||||
IN u1Byte final_candidate,
|
u1Byte final_candidate,
|
||||||
IN bool bTxOnly //do Tx only
|
bool bTxOnly //do Tx only
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
u4Byte Oldval_1, X, TX1_A, reg;
|
u4Byte Oldval_1, X, TX1_A, reg;
|
||||||
|
@ -1048,7 +1048,7 @@ _PHY_PathBFillIQKMatrix(
|
||||||
#if !(DM_ODM_SUPPORT_TYPE & ODM_MP)
|
#if !(DM_ODM_SUPPORT_TYPE & ODM_MP)
|
||||||
bool
|
bool
|
||||||
ODM_CheckPowerStatus(
|
ODM_CheckPowerStatus(
|
||||||
IN PADAPTER Adapter)
|
PADAPTER Adapter)
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
||||||
|
@ -1083,11 +1083,11 @@ _PHY_SaveADDARegisters(
|
||||||
#if (DM_ODM_SUPPORT_TYPE & ODM_AP)
|
#if (DM_ODM_SUPPORT_TYPE & ODM_AP)
|
||||||
IN PDM_ODM_T pDM_Odm,
|
IN PDM_ODM_T pDM_Odm,
|
||||||
#else
|
#else
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
#endif
|
#endif
|
||||||
IN pu4Byte ADDAReg,
|
pu4Byte ADDAReg,
|
||||||
IN pu4Byte ADDABackup,
|
pu4Byte ADDABackup,
|
||||||
IN u4Byte RegisterNum
|
u4Byte RegisterNum
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
u4Byte i;
|
u4Byte i;
|
||||||
|
@ -1116,10 +1116,10 @@ _PHY_SaveMACRegisters(
|
||||||
#if (DM_ODM_SUPPORT_TYPE & ODM_AP)
|
#if (DM_ODM_SUPPORT_TYPE & ODM_AP)
|
||||||
IN PDM_ODM_T pDM_Odm,
|
IN PDM_ODM_T pDM_Odm,
|
||||||
#else
|
#else
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
#endif
|
#endif
|
||||||
IN pu4Byte MACReg,
|
pu4Byte MACReg,
|
||||||
IN pu4Byte MACBackup
|
pu4Byte MACBackup
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
u4Byte i;
|
u4Byte i;
|
||||||
|
@ -1146,11 +1146,11 @@ _PHY_ReloadADDARegisters(
|
||||||
#if (DM_ODM_SUPPORT_TYPE & ODM_AP)
|
#if (DM_ODM_SUPPORT_TYPE & ODM_AP)
|
||||||
IN PDM_ODM_T pDM_Odm,
|
IN PDM_ODM_T pDM_Odm,
|
||||||
#else
|
#else
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
#endif
|
#endif
|
||||||
IN pu4Byte ADDAReg,
|
pu4Byte ADDAReg,
|
||||||
IN pu4Byte ADDABackup,
|
pu4Byte ADDABackup,
|
||||||
IN u4Byte RegiesterNum
|
u4Byte RegiesterNum
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
u4Byte i;
|
u4Byte i;
|
||||||
|
@ -1176,10 +1176,10 @@ _PHY_ReloadMACRegisters(
|
||||||
#if (DM_ODM_SUPPORT_TYPE & ODM_AP)
|
#if (DM_ODM_SUPPORT_TYPE & ODM_AP)
|
||||||
IN PDM_ODM_T pDM_Odm,
|
IN PDM_ODM_T pDM_Odm,
|
||||||
#else
|
#else
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
#endif
|
#endif
|
||||||
IN pu4Byte MACReg,
|
pu4Byte MACReg,
|
||||||
IN pu4Byte MACBackup
|
pu4Byte MACBackup
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
u4Byte i;
|
u4Byte i;
|
||||||
|
@ -1205,11 +1205,11 @@ _PHY_PathADDAOn(
|
||||||
#if (DM_ODM_SUPPORT_TYPE & ODM_AP)
|
#if (DM_ODM_SUPPORT_TYPE & ODM_AP)
|
||||||
IN PDM_ODM_T pDM_Odm,
|
IN PDM_ODM_T pDM_Odm,
|
||||||
#else
|
#else
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
#endif
|
#endif
|
||||||
IN pu4Byte ADDAReg,
|
pu4Byte ADDAReg,
|
||||||
IN bool isPathAOn,
|
bool isPathAOn,
|
||||||
IN bool is2T
|
bool is2T
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
u4Byte pathOn;
|
u4Byte pathOn;
|
||||||
|
@ -1245,10 +1245,10 @@ _PHY_MACSettingCalibration(
|
||||||
#if (DM_ODM_SUPPORT_TYPE & ODM_AP)
|
#if (DM_ODM_SUPPORT_TYPE & ODM_AP)
|
||||||
IN PDM_ODM_T pDM_Odm,
|
IN PDM_ODM_T pDM_Odm,
|
||||||
#else
|
#else
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
#endif
|
#endif
|
||||||
IN pu4Byte MACReg,
|
pu4Byte MACReg,
|
||||||
IN pu4Byte MACBackup
|
pu4Byte MACBackup
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
u4Byte i = 0;
|
u4Byte i = 0;
|
||||||
|
@ -1302,9 +1302,9 @@ _PHY_PIModeSwitch(
|
||||||
#if (DM_ODM_SUPPORT_TYPE & ODM_AP)
|
#if (DM_ODM_SUPPORT_TYPE & ODM_AP)
|
||||||
IN PDM_ODM_T pDM_Odm,
|
IN PDM_ODM_T pDM_Odm,
|
||||||
#else
|
#else
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
#endif
|
#endif
|
||||||
IN bool PIMode
|
bool PIMode
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
u4Byte mode;
|
u4Byte mode;
|
||||||
|
@ -1329,11 +1329,11 @@ phy_SimularityCompare_8188E(
|
||||||
#if (DM_ODM_SUPPORT_TYPE & ODM_AP)
|
#if (DM_ODM_SUPPORT_TYPE & ODM_AP)
|
||||||
IN PDM_ODM_T pDM_Odm,
|
IN PDM_ODM_T pDM_Odm,
|
||||||
#else
|
#else
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
#endif
|
#endif
|
||||||
IN s4Byte result[][8],
|
s4Byte result[][8],
|
||||||
IN u1Byte c1,
|
u1Byte c1,
|
||||||
IN u1Byte c2
|
u1Byte c2
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
u4Byte i, j, diff, SimularityBitMap, bound = 0;
|
u4Byte i, j, diff, SimularityBitMap, bound = 0;
|
||||||
|
@ -1464,11 +1464,11 @@ phy_IQCalibrate_8188E(
|
||||||
#if (DM_ODM_SUPPORT_TYPE & ODM_AP)
|
#if (DM_ODM_SUPPORT_TYPE & ODM_AP)
|
||||||
IN PDM_ODM_T pDM_Odm,
|
IN PDM_ODM_T pDM_Odm,
|
||||||
#else
|
#else
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
#endif
|
#endif
|
||||||
IN s4Byte result[][8],
|
s4Byte result[][8],
|
||||||
IN u1Byte t,
|
u1Byte t,
|
||||||
IN bool is2T
|
bool is2T
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
#if !(DM_ODM_SUPPORT_TYPE & ODM_AP)
|
#if !(DM_ODM_SUPPORT_TYPE & ODM_AP)
|
||||||
|
@ -1744,9 +1744,9 @@ phy_LCCalibrate_8188E(
|
||||||
#if (DM_ODM_SUPPORT_TYPE & ODM_AP)
|
#if (DM_ODM_SUPPORT_TYPE & ODM_AP)
|
||||||
IN PDM_ODM_T pDM_Odm,
|
IN PDM_ODM_T pDM_Odm,
|
||||||
#else
|
#else
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
#endif
|
#endif
|
||||||
IN bool is2T
|
bool is2T
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
u1Byte tmpReg;
|
u1Byte tmpReg;
|
||||||
|
@ -1835,10 +1835,10 @@ phy_APCalibrate_8188E(
|
||||||
#if (DM_ODM_SUPPORT_TYPE & ODM_AP)
|
#if (DM_ODM_SUPPORT_TYPE & ODM_AP)
|
||||||
IN PDM_ODM_T pDM_Odm,
|
IN PDM_ODM_T pDM_Odm,
|
||||||
#else
|
#else
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
#endif
|
#endif
|
||||||
IN s1Byte delta,
|
s1Byte delta,
|
||||||
IN bool is2T
|
bool is2T
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
#if !(DM_ODM_SUPPORT_TYPE & ODM_AP)
|
#if !(DM_ODM_SUPPORT_TYPE & ODM_AP)
|
||||||
|
@ -2328,9 +2328,9 @@ PHY_IQCalibrate_8188E(
|
||||||
#if (DM_ODM_SUPPORT_TYPE & ODM_AP)
|
#if (DM_ODM_SUPPORT_TYPE & ODM_AP)
|
||||||
IN PDM_ODM_T pDM_Odm,
|
IN PDM_ODM_T pDM_Odm,
|
||||||
#else
|
#else
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
#endif
|
#endif
|
||||||
IN bool bReCovery
|
bool bReCovery
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
#if !(DM_ODM_SUPPORT_TYPE & ODM_AP)
|
#if !(DM_ODM_SUPPORT_TYPE & ODM_AP)
|
||||||
|
@ -2594,7 +2594,7 @@ PHY_LCCalibrate_8188E(
|
||||||
#if (DM_ODM_SUPPORT_TYPE & ODM_AP)
|
#if (DM_ODM_SUPPORT_TYPE & ODM_AP)
|
||||||
IN PDM_ODM_T pDM_Odm
|
IN PDM_ODM_T pDM_Odm
|
||||||
#else
|
#else
|
||||||
IN PADAPTER pAdapter
|
PADAPTER pAdapter
|
||||||
#endif
|
#endif
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
@ -2683,9 +2683,9 @@ PHY_APCalibrate_8188E(
|
||||||
#if (DM_ODM_SUPPORT_TYPE & ODM_AP)
|
#if (DM_ODM_SUPPORT_TYPE & ODM_AP)
|
||||||
IN PDM_ODM_T pDM_Odm,
|
IN PDM_ODM_T pDM_Odm,
|
||||||
#else
|
#else
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
#endif
|
#endif
|
||||||
IN s1Byte delta
|
s1Byte delta
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
#if !(DM_ODM_SUPPORT_TYPE & ODM_AP)
|
#if !(DM_ODM_SUPPORT_TYPE & ODM_AP)
|
||||||
|
@ -2733,10 +2733,10 @@ void phy_SetRFPathSwitch_8188E(
|
||||||
#if (DM_ODM_SUPPORT_TYPE & ODM_AP)
|
#if (DM_ODM_SUPPORT_TYPE & ODM_AP)
|
||||||
IN PDM_ODM_T pDM_Odm,
|
IN PDM_ODM_T pDM_Odm,
|
||||||
#else
|
#else
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
#endif
|
#endif
|
||||||
IN bool bMain,
|
bool bMain,
|
||||||
IN bool is2T
|
bool is2T
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
#if !(DM_ODM_SUPPORT_TYPE & ODM_AP)
|
#if !(DM_ODM_SUPPORT_TYPE & ODM_AP)
|
||||||
|
@ -2782,9 +2782,9 @@ void PHY_SetRFPathSwitch_8188E(
|
||||||
#if (DM_ODM_SUPPORT_TYPE & ODM_AP)
|
#if (DM_ODM_SUPPORT_TYPE & ODM_AP)
|
||||||
IN PDM_ODM_T pDM_Odm,
|
IN PDM_ODM_T pDM_Odm,
|
||||||
#else
|
#else
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
#endif
|
#endif
|
||||||
IN bool bMain
|
bool bMain
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
#if !(DM_ODM_SUPPORT_TYPE & ODM_AP)
|
#if !(DM_ODM_SUPPORT_TYPE & ODM_AP)
|
||||||
|
@ -2824,11 +2824,11 @@ void PHY_SetRFPathSwitch_8188E(
|
||||||
void
|
void
|
||||||
phy_DigitalPredistortion(
|
phy_DigitalPredistortion(
|
||||||
#if !(DM_ODM_SUPPORT_TYPE & ODM_AP)
|
#if !(DM_ODM_SUPPORT_TYPE & ODM_AP)
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
#else
|
#else
|
||||||
IN PDM_ODM_T pDM_Odm,
|
IN PDM_ODM_T pDM_Odm,
|
||||||
#endif
|
#endif
|
||||||
IN bool is2T
|
bool is2T
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
#if ( RT_PLATFORM == PLATFORM_WINDOWS)
|
#if ( RT_PLATFORM == PLATFORM_WINDOWS)
|
||||||
|
@ -3259,7 +3259,7 @@ phy_DigitalPredistortion(
|
||||||
void
|
void
|
||||||
PHY_DigitalPredistortion_8188E(
|
PHY_DigitalPredistortion_8188E(
|
||||||
#if !(DM_ODM_SUPPORT_TYPE & ODM_AP)
|
#if !(DM_ODM_SUPPORT_TYPE & ODM_AP)
|
||||||
IN PADAPTER pAdapter
|
PADAPTER pAdapter
|
||||||
#else
|
#else
|
||||||
IN PDM_ODM_T pDM_Odm
|
IN PDM_ODM_T pDM_Odm
|
||||||
#endif
|
#endif
|
||||||
|
@ -3303,9 +3303,9 @@ bool phy_QueryRFPathSwitch_8188E(
|
||||||
#if (DM_ODM_SUPPORT_TYPE & ODM_AP)
|
#if (DM_ODM_SUPPORT_TYPE & ODM_AP)
|
||||||
IN PDM_ODM_T pDM_Odm,
|
IN PDM_ODM_T pDM_Odm,
|
||||||
#else
|
#else
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
#endif
|
#endif
|
||||||
IN bool is2T
|
bool is2T
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
#if !(DM_ODM_SUPPORT_TYPE & ODM_AP)
|
#if !(DM_ODM_SUPPORT_TYPE & ODM_AP)
|
||||||
|
@ -3349,7 +3349,7 @@ bool PHY_QueryRFPathSwitch_8188E(
|
||||||
#if (DM_ODM_SUPPORT_TYPE & ODM_AP)
|
#if (DM_ODM_SUPPORT_TYPE & ODM_AP)
|
||||||
IN PDM_ODM_T pDM_Odm
|
IN PDM_ODM_T pDM_Odm
|
||||||
#else
|
#else
|
||||||
IN PADAPTER pAdapter
|
PADAPTER pAdapter
|
||||||
#endif
|
#endif
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
|
|
@ -81,11 +81,11 @@ void dump_chip_info(HAL_VERSION ChipVersion)
|
||||||
|
|
||||||
u8 //return the final channel plan decision
|
u8 //return the final channel plan decision
|
||||||
hal_com_get_channel_plan(
|
hal_com_get_channel_plan(
|
||||||
IN PADAPTER padapter,
|
PADAPTER padapter,
|
||||||
IN u8 hw_channel_plan, //channel plan from HW (efuse/eeprom)
|
u8 hw_channel_plan, //channel plan from HW (efuse/eeprom)
|
||||||
IN u8 sw_channel_plan, //channel plan from SW (registry/module param)
|
u8 sw_channel_plan, //channel plan from SW (registry/module param)
|
||||||
IN u8 def_channel_plan, //channel plan used when the former two is invalid
|
u8 def_channel_plan, //channel plan used when the former two is invalid
|
||||||
IN bool AutoLoadFail
|
bool AutoLoadFail
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
u8 swConfig;
|
u8 swConfig;
|
||||||
|
@ -182,7 +182,7 @@ void HalSetBrateCfg(
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_OneOutPipeMapping(
|
_OneOutPipeMapping(
|
||||||
IN PADAPTER pAdapter
|
PADAPTER pAdapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
struct dvobj_priv *pdvobjpriv = adapter_to_dvobj(pAdapter);
|
struct dvobj_priv *pdvobjpriv = adapter_to_dvobj(pAdapter);
|
||||||
|
@ -200,8 +200,8 @@ _OneOutPipeMapping(
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_TwoOutPipeMapping(
|
_TwoOutPipeMapping(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN bool bWIFICfg
|
bool bWIFICfg
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
struct dvobj_priv *pdvobjpriv = adapter_to_dvobj(pAdapter);
|
struct dvobj_priv *pdvobjpriv = adapter_to_dvobj(pAdapter);
|
||||||
|
@ -245,8 +245,8 @@ _TwoOutPipeMapping(
|
||||||
}
|
}
|
||||||
|
|
||||||
static void _ThreeOutPipeMapping(
|
static void _ThreeOutPipeMapping(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN bool bWIFICfg
|
bool bWIFICfg
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
struct dvobj_priv *pdvobjpriv = adapter_to_dvobj(pAdapter);
|
struct dvobj_priv *pdvobjpriv = adapter_to_dvobj(pAdapter);
|
||||||
|
@ -290,8 +290,8 @@ static void _ThreeOutPipeMapping(
|
||||||
|
|
||||||
bool
|
bool
|
||||||
Hal_MappingOutPipe(
|
Hal_MappingOutPipe(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN u8 NumOutPipe
|
u8 NumOutPipe
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
struct registry_priv *pregistrypriv = &pAdapter->registrypriv;
|
struct registry_priv *pregistrypriv = &pAdapter->registrypriv;
|
||||||
|
|
|
@ -42,7 +42,7 @@
|
||||||
|
|
||||||
u1Byte
|
u1Byte
|
||||||
odm_QueryRxPwrPercentage(
|
odm_QueryRxPwrPercentage(
|
||||||
IN s1Byte AntPower
|
s1Byte AntPower
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
if ((AntPower <= -100) || (AntPower >= 20))
|
if ((AntPower <= -100) || (AntPower >= 20))
|
||||||
|
@ -278,7 +278,7 @@ odm_SignalScaleMapping_92CSeries(
|
||||||
s4Byte
|
s4Byte
|
||||||
odm_SignalScaleMapping(
|
odm_SignalScaleMapping(
|
||||||
IN OUT PDM_ODM_T pDM_Odm,
|
IN OUT PDM_ODM_T pDM_Odm,
|
||||||
IN s4Byte CurrSig
|
s4Byte CurrSig
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
if ( (pDM_Odm->SupportPlatform == ODM_MP) &&
|
if ( (pDM_Odm->SupportPlatform == ODM_MP) &&
|
||||||
|
@ -348,7 +348,7 @@ static u1Byte odm_SQ_process_patch_RT_CID_819x_Lenovo(
|
||||||
|
|
||||||
static u1Byte
|
static u1Byte
|
||||||
odm_EVMdbToPercentage(
|
odm_EVMdbToPercentage(
|
||||||
IN s1Byte Value
|
s1Byte Value
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
//
|
//
|
||||||
|
@ -379,10 +379,10 @@ odm_EVMdbToPercentage(
|
||||||
|
|
||||||
void
|
void
|
||||||
odm_RxPhyStatus92CSeries_Parsing(
|
odm_RxPhyStatus92CSeries_Parsing(
|
||||||
IN OUT PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
OUT PODM_PHY_INFO_T pPhyInfo,
|
PODM_PHY_INFO_T pPhyInfo,
|
||||||
IN pu1Byte pPhyStatus,
|
pu1Byte pPhyStatus,
|
||||||
IN PODM_PACKET_INFO_T pPktinfo
|
PODM_PACKET_INFO_T pPktinfo
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
SWAT_T *pDM_SWAT_Table = &pDM_Odm->DM_SWAT_Table;
|
SWAT_T *pDM_SWAT_Table = &pDM_Odm->DM_SWAT_Table;
|
||||||
|
@ -740,7 +740,7 @@ odm_RxPhyStatus92CSeries_Parsing(
|
||||||
|
|
||||||
void
|
void
|
||||||
odm_Init_RSSIForDM(
|
odm_Init_RSSIForDM(
|
||||||
IN OUT PDM_ODM_T pDM_Odm
|
PDM_ODM_T pDM_Odm
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@ -748,9 +748,9 @@ odm_Init_RSSIForDM(
|
||||||
|
|
||||||
void
|
void
|
||||||
odm_Process_RSSIForDM(
|
odm_Process_RSSIForDM(
|
||||||
IN OUT PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN PODM_PHY_INFO_T pPhyInfo,
|
PODM_PHY_INFO_T pPhyInfo,
|
||||||
IN PODM_PACKET_INFO_T pPktinfo
|
PODM_PACKET_INFO_T pPktinfo
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@ -970,10 +970,10 @@ odm_Process_RSSIForDM(
|
||||||
//
|
//
|
||||||
void
|
void
|
||||||
ODM_PhyStatusQuery_92CSeries(
|
ODM_PhyStatusQuery_92CSeries(
|
||||||
IN OUT PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
OUT PODM_PHY_INFO_T pPhyInfo,
|
PODM_PHY_INFO_T pPhyInfo,
|
||||||
IN pu1Byte pPhyStatus,
|
pu1Byte pPhyStatus,
|
||||||
IN PODM_PACKET_INFO_T pPktinfo
|
PODM_PACKET_INFO_T pPktinfo
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@ -1000,10 +1000,10 @@ ODM_PhyStatusQuery_92CSeries(
|
||||||
//
|
//
|
||||||
void
|
void
|
||||||
ODM_PhyStatusQuery_JaguarSeries(
|
ODM_PhyStatusQuery_JaguarSeries(
|
||||||
IN OUT PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
OUT PODM_PHY_INFO_T pPhyInfo,
|
PODM_PHY_INFO_T pPhyInfo,
|
||||||
IN pu1Byte pPhyStatus,
|
pu1Byte pPhyStatus,
|
||||||
IN PODM_PACKET_INFO_T pPktinfo
|
PODM_PACKET_INFO_T pPktinfo
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@ -1012,10 +1012,10 @@ ODM_PhyStatusQuery_JaguarSeries(
|
||||||
|
|
||||||
void
|
void
|
||||||
ODM_PhyStatusQuery(
|
ODM_PhyStatusQuery(
|
||||||
IN OUT PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
OUT PODM_PHY_INFO_T pPhyInfo,
|
PODM_PHY_INFO_T pPhyInfo,
|
||||||
IN pu1Byte pPhyStatus,
|
pu1Byte pPhyStatus,
|
||||||
IN PODM_PACKET_INFO_T pPktinfo
|
PODM_PACKET_INFO_T pPktinfo
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
ODM_PhyStatusQuery_92CSeries(pDM_Odm,pPhyInfo,pPhyStatus,pPktinfo);
|
ODM_PhyStatusQuery_92CSeries(pDM_Odm,pPhyInfo,pPhyStatus,pPktinfo);
|
||||||
|
@ -1024,12 +1024,12 @@ ODM_PhyStatusQuery(
|
||||||
// For future use.
|
// For future use.
|
||||||
void
|
void
|
||||||
ODM_MacStatusQuery(
|
ODM_MacStatusQuery(
|
||||||
IN OUT PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN pu1Byte pMacStatus,
|
pu1Byte pMacStatus,
|
||||||
IN u1Byte MacID,
|
u1Byte MacID,
|
||||||
IN bool bPacketMatchBSSID,
|
bool bPacketMatchBSSID,
|
||||||
IN bool bPacketToSelf,
|
bool bPacketToSelf,
|
||||||
IN bool bPacketBeacon
|
bool bPacketBeacon
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
// 2011/10/19 Driver team will handle in the future.
|
// 2011/10/19 Driver team will handle in the future.
|
||||||
|
@ -1040,9 +1040,9 @@ ODM_MacStatusQuery(
|
||||||
|
|
||||||
HAL_STATUS
|
HAL_STATUS
|
||||||
ODM_ConfigRFWithHeaderFile(
|
ODM_ConfigRFWithHeaderFile(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN ODM_RF_RADIO_PATH_E Content,
|
ODM_RF_RADIO_PATH_E Content,
|
||||||
IN ODM_RF_RADIO_PATH_E eRFPath
|
ODM_RF_RADIO_PATH_E eRFPath
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
//RT_STATUS rtStatus = RT_STATUS_SUCCESS;
|
//RT_STATUS rtStatus = RT_STATUS_SUCCESS;
|
||||||
|
@ -1082,8 +1082,8 @@ ODM_ConfigRFWithHeaderFile(
|
||||||
|
|
||||||
HAL_STATUS
|
HAL_STATUS
|
||||||
ODM_ConfigBBWithHeaderFile(
|
ODM_ConfigBBWithHeaderFile(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN ODM_BB_Config_Type ConfigType
|
ODM_BB_Config_Type ConfigType
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
#if (RTL8723A_SUPPORT == 1)
|
#if (RTL8723A_SUPPORT == 1)
|
||||||
|
@ -1132,7 +1132,7 @@ ODM_ConfigBBWithHeaderFile(
|
||||||
|
|
||||||
HAL_STATUS
|
HAL_STATUS
|
||||||
ODM_ConfigMACWithHeaderFile(
|
ODM_ConfigMACWithHeaderFile(
|
||||||
IN PDM_ODM_T pDM_Odm
|
PDM_ODM_T pDM_Odm
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
u1Byte result = HAL_STATUS_SUCCESS;
|
u1Byte result = HAL_STATUS_SUCCESS;
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
|
|
||||||
void
|
void
|
||||||
ODM_DIG_LowerBound_88E(
|
ODM_DIG_LowerBound_88E(
|
||||||
IN PDM_ODM_T pDM_Odm
|
PDM_ODM_T pDM_Odm
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
pDIG_T pDM_DigTable = &pDM_Odm->DM_DigTable;
|
pDIG_T pDM_DigTable = &pDM_Odm->DM_DigTable;
|
||||||
|
@ -47,7 +47,7 @@ ODM_DIG_LowerBound_88E(
|
||||||
#if (defined(CONFIG_HW_ANTENNA_DIVERSITY))
|
#if (defined(CONFIG_HW_ANTENNA_DIVERSITY))
|
||||||
static void
|
static void
|
||||||
odm_RX_HWAntDivInit(
|
odm_RX_HWAntDivInit(
|
||||||
IN PDM_ODM_T pDM_Odm
|
PDM_ODM_T pDM_Odm
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
u4Byte value32;
|
u4Byte value32;
|
||||||
|
@ -85,7 +85,7 @@ odm_RX_HWAntDivInit(
|
||||||
|
|
||||||
static void
|
static void
|
||||||
odm_TRX_HWAntDivInit(
|
odm_TRX_HWAntDivInit(
|
||||||
IN PDM_ODM_T pDM_Odm
|
PDM_ODM_T pDM_Odm
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
u4Byte value32;
|
u4Byte value32;
|
||||||
|
@ -136,7 +136,7 @@ odm_TRX_HWAntDivInit(
|
||||||
|
|
||||||
static void
|
static void
|
||||||
odm_FastAntTrainingInit(
|
odm_FastAntTrainingInit(
|
||||||
IN PDM_ODM_T pDM_Odm
|
PDM_ODM_T pDM_Odm
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
u4Byte value32, i;
|
u4Byte value32, i;
|
||||||
|
@ -247,7 +247,7 @@ odm_FastAntTrainingInit(
|
||||||
|
|
||||||
void
|
void
|
||||||
ODM_AntennaDiversityInit_88E(
|
ODM_AntennaDiversityInit_88E(
|
||||||
IN PDM_ODM_T pDM_Odm
|
PDM_ODM_T pDM_Odm
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
|
@ -340,9 +340,9 @@ odm_UpdateTxAnt_88E(IN PDM_ODM_T pDM_Odm, IN u1Byte Ant, IN u4Byte MacId)
|
||||||
#if (DM_ODM_SUPPORT_TYPE & (ODM_MP|ODM_CE))
|
#if (DM_ODM_SUPPORT_TYPE & (ODM_MP|ODM_CE))
|
||||||
void
|
void
|
||||||
ODM_SetTxAntByTxInfo_88E(
|
ODM_SetTxAntByTxInfo_88E(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN pu1Byte pDesc,
|
pu1Byte pDesc,
|
||||||
IN u1Byte macId
|
u1Byte macId
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
pFAT_T pDM_FatTable = &pDM_Odm->DM_FatTable;
|
pFAT_T pDM_FatTable = &pDM_Odm->DM_FatTable;
|
||||||
|
@ -359,7 +359,7 @@ ODM_SetTxAntByTxInfo_88E(
|
||||||
#else// (DM_ODM_SUPPORT_TYPE == ODM_AP)
|
#else// (DM_ODM_SUPPORT_TYPE == ODM_AP)
|
||||||
void
|
void
|
||||||
ODM_SetTxAntByTxInfo_88E(
|
ODM_SetTxAntByTxInfo_88E(
|
||||||
IN PDM_ODM_T pDM_Odm
|
PDM_ODM_T pDM_Odm
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
@ -367,10 +367,10 @@ ODM_SetTxAntByTxInfo_88E(
|
||||||
|
|
||||||
void
|
void
|
||||||
ODM_AntselStatistics_88E(
|
ODM_AntselStatistics_88E(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN u1Byte antsel_tr_mux,
|
u1Byte antsel_tr_mux,
|
||||||
IN u4Byte MacId,
|
u4Byte MacId,
|
||||||
IN u1Byte RxPWDBAll
|
u1Byte RxPWDBAll
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
pFAT_T pDM_FatTable = &pDM_Odm->DM_FatTable;
|
pFAT_T pDM_FatTable = &pDM_Odm->DM_FatTable;
|
||||||
|
@ -409,7 +409,7 @@ ODM_AntselStatistics_88E(
|
||||||
#define TX_BY_REG 0
|
#define TX_BY_REG 0
|
||||||
static void
|
static void
|
||||||
odm_HWAntDiv(
|
odm_HWAntDiv(
|
||||||
IN PDM_ODM_T pDM_Odm
|
PDM_ODM_T pDM_Odm
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
u4Byte i, MinRSSI=0xFF, AntDivMaxRSSI=0, MaxRSSI=0, LocalMinRSSI, LocalMaxRSSI;
|
u4Byte i, MinRSSI=0xFF, AntDivMaxRSSI=0, MaxRSSI=0, LocalMinRSSI, LocalMaxRSSI;
|
||||||
|
@ -478,7 +478,7 @@ odm_HWAntDiv(
|
||||||
#if (!(DM_ODM_SUPPORT_TYPE == ODM_CE))
|
#if (!(DM_ODM_SUPPORT_TYPE == ODM_CE))
|
||||||
void
|
void
|
||||||
odm_SetNextMACAddrTarget(
|
odm_SetNextMACAddrTarget(
|
||||||
IN PDM_ODM_T pDM_Odm
|
PDM_ODM_T pDM_Odm
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
pFAT_T pDM_FatTable = &pDM_Odm->DM_FatTable;
|
pFAT_T pDM_FatTable = &pDM_Odm->DM_FatTable;
|
||||||
|
@ -535,7 +535,7 @@ odm_SetNextMACAddrTarget(
|
||||||
|
|
||||||
void
|
void
|
||||||
odm_FastAntTraining(
|
odm_FastAntTraining(
|
||||||
IN PDM_ODM_T pDM_Odm
|
PDM_ODM_T pDM_Odm
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
u4Byte i, MaxRSSI=0;
|
u4Byte i, MaxRSSI=0;
|
||||||
|
@ -630,7 +630,7 @@ odm_FastAntTraining(
|
||||||
|
|
||||||
void
|
void
|
||||||
odm_FastAntTrainingCallback(
|
odm_FastAntTrainingCallback(
|
||||||
IN PDM_ODM_T pDM_Odm
|
PDM_ODM_T pDM_Odm
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@ -651,7 +651,7 @@ odm_FastAntTrainingCallback(
|
||||||
|
|
||||||
void
|
void
|
||||||
odm_FastAntTrainingWorkItemCallback(
|
odm_FastAntTrainingWorkItemCallback(
|
||||||
IN PDM_ODM_T pDM_Odm
|
PDM_ODM_T pDM_Odm
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
odm_FastAntTraining(pDM_Odm);
|
odm_FastAntTraining(pDM_Odm);
|
||||||
|
@ -660,7 +660,7 @@ odm_FastAntTrainingWorkItemCallback(
|
||||||
|
|
||||||
void
|
void
|
||||||
ODM_AntennaDiversity_88E(
|
ODM_AntennaDiversity_88E(
|
||||||
IN PDM_ODM_T pDM_Odm
|
PDM_ODM_T pDM_Odm
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
pFAT_T pDM_FatTable = &pDM_Odm->DM_FatTable;
|
pFAT_T pDM_FatTable = &pDM_Odm->DM_FatTable;
|
||||||
|
@ -791,16 +791,16 @@ void odm_FastAntTrainingCallback(void *FunctionContext)
|
||||||
#if (DM_ODM_SUPPORT_TYPE & (ODM_MP|ODM_CE))
|
#if (DM_ODM_SUPPORT_TYPE & (ODM_MP|ODM_CE))
|
||||||
void
|
void
|
||||||
ODM_SetTxAntByTxInfo_88E(
|
ODM_SetTxAntByTxInfo_88E(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN pu1Byte pDesc,
|
pu1Byte pDesc,
|
||||||
IN u1Byte macId
|
u1Byte macId
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
#else// (DM_ODM_SUPPORT_TYPE == ODM_AP)
|
#else// (DM_ODM_SUPPORT_TYPE == ODM_AP)
|
||||||
void
|
void
|
||||||
ODM_SetTxAntByTxInfo_88E(
|
ODM_SetTxAntByTxInfo_88E(
|
||||||
IN PDM_ODM_T pDM_Odm
|
PDM_ODM_T pDM_Odm
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
@ -812,7 +812,7 @@ ODM_SetTxAntByTxInfo_88E(
|
||||||
|
|
||||||
void
|
void
|
||||||
odm_PrimaryCCA_Init(
|
odm_PrimaryCCA_Init(
|
||||||
IN PDM_ODM_T pDM_Odm)
|
PDM_ODM_T pDM_Odm)
|
||||||
{
|
{
|
||||||
pPri_CCA_T PrimaryCCA = &(pDM_Odm->DM_PriCCA);
|
pPri_CCA_T PrimaryCCA = &(pDM_Odm->DM_PriCCA);
|
||||||
PrimaryCCA->DupRTS_flag = 0;
|
PrimaryCCA->DupRTS_flag = 0;
|
||||||
|
@ -824,7 +824,7 @@ odm_PrimaryCCA_Init(
|
||||||
|
|
||||||
bool
|
bool
|
||||||
ODM_DynamicPrimaryCCA_DupRTS(
|
ODM_DynamicPrimaryCCA_DupRTS(
|
||||||
IN PDM_ODM_T pDM_Odm
|
PDM_ODM_T pDM_Odm
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
pPri_CCA_T PrimaryCCA = &(pDM_Odm->DM_PriCCA);
|
pPri_CCA_T PrimaryCCA = &(pDM_Odm->DM_PriCCA);
|
||||||
|
@ -834,7 +834,7 @@ ODM_DynamicPrimaryCCA_DupRTS(
|
||||||
|
|
||||||
void
|
void
|
||||||
odm_DynamicPrimaryCCA(
|
odm_DynamicPrimaryCCA(
|
||||||
IN PDM_ODM_T pDM_Odm
|
PDM_ODM_T pDM_Odm
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
PADAPTER Adapter = pDM_Odm->Adapter; // for NIC
|
PADAPTER Adapter = pDM_Odm->Adapter; // for NIC
|
||||||
|
@ -1209,18 +1209,18 @@ ODM_UpdateRxIdleAnt_88E(IN PDM_ODM_T pDM_Odm, IN u1Byte Ant)
|
||||||
}
|
}
|
||||||
void
|
void
|
||||||
odm_PrimaryCCA_Init(
|
odm_PrimaryCCA_Init(
|
||||||
IN PDM_ODM_T pDM_Odm)
|
PDM_ODM_T pDM_Odm)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
void
|
void
|
||||||
odm_DynamicPrimaryCCA(
|
odm_DynamicPrimaryCCA(
|
||||||
IN PDM_ODM_T pDM_Odm
|
PDM_ODM_T pDM_Odm
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
bool
|
bool
|
||||||
ODM_DynamicPrimaryCCA_DupRTS(
|
ODM_DynamicPrimaryCCA_DupRTS(
|
||||||
IN PDM_ODM_T pDM_Odm
|
PDM_ODM_T pDM_Odm
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
|
@ -24,11 +24,11 @@
|
||||||
|
|
||||||
void
|
void
|
||||||
odm_ConfigRFReg_8188E(
|
odm_ConfigRFReg_8188E(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN u4Byte Addr,
|
u4Byte Addr,
|
||||||
IN u4Byte Data,
|
u4Byte Data,
|
||||||
IN ODM_RF_RADIO_PATH_E RF_PATH,
|
IN ODM_RF_RADIO_PATH_E RF_PATH,
|
||||||
IN u4Byte RegAddr
|
u4Byte RegAddr
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
if (Addr == 0xffe)
|
if (Addr == 0xffe)
|
||||||
|
@ -70,9 +70,9 @@ odm_ConfigRFReg_8188E(
|
||||||
|
|
||||||
void
|
void
|
||||||
odm_ConfigRF_RadioA_8188E(
|
odm_ConfigRF_RadioA_8188E(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN u4Byte Addr,
|
u4Byte Addr,
|
||||||
IN u4Byte Data
|
u4Byte Data
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
u4Byte content = 0x1000; // RF_Content: radioa_txt
|
u4Byte content = 0x1000; // RF_Content: radioa_txt
|
||||||
|
@ -85,9 +85,9 @@ odm_ConfigRF_RadioA_8188E(
|
||||||
|
|
||||||
void
|
void
|
||||||
odm_ConfigRF_RadioB_8188E(
|
odm_ConfigRF_RadioB_8188E(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN u4Byte Addr,
|
u4Byte Addr,
|
||||||
IN u4Byte Data
|
u4Byte Data
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
u4Byte content = 0x1001; // RF_Content: radiob_txt
|
u4Byte content = 0x1001; // RF_Content: radiob_txt
|
||||||
|
@ -101,9 +101,9 @@ odm_ConfigRF_RadioB_8188E(
|
||||||
|
|
||||||
void
|
void
|
||||||
odm_ConfigMAC_8188E(
|
odm_ConfigMAC_8188E(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN u4Byte Addr,
|
u4Byte Addr,
|
||||||
IN u1Byte Data
|
u1Byte Data
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
ODM_Write1Byte(pDM_Odm, Addr, Data);
|
ODM_Write1Byte(pDM_Odm, Addr, Data);
|
||||||
|
@ -112,10 +112,10 @@ odm_ConfigMAC_8188E(
|
||||||
|
|
||||||
void
|
void
|
||||||
odm_ConfigBB_AGC_8188E(
|
odm_ConfigBB_AGC_8188E(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN u4Byte Addr,
|
u4Byte Addr,
|
||||||
IN u4Byte Bitmask,
|
u4Byte Bitmask,
|
||||||
IN u4Byte Data
|
u4Byte Data
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
ODM_SetBBReg(pDM_Odm, Addr, Bitmask, Data);
|
ODM_SetBBReg(pDM_Odm, Addr, Bitmask, Data);
|
||||||
|
@ -127,10 +127,10 @@ odm_ConfigBB_AGC_8188E(
|
||||||
|
|
||||||
void
|
void
|
||||||
odm_ConfigBB_PHY_REG_PG_8188E(
|
odm_ConfigBB_PHY_REG_PG_8188E(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN u4Byte Addr,
|
u4Byte Addr,
|
||||||
IN u4Byte Bitmask,
|
u4Byte Bitmask,
|
||||||
IN u4Byte Data
|
u4Byte Data
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
if (Addr == 0xfe){
|
if (Addr == 0xfe){
|
||||||
|
@ -167,10 +167,10 @@ odm_ConfigBB_PHY_REG_PG_8188E(
|
||||||
|
|
||||||
void
|
void
|
||||||
odm_ConfigBB_PHY_8188E(
|
odm_ConfigBB_PHY_8188E(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN u4Byte Addr,
|
u4Byte Addr,
|
||||||
IN u4Byte Bitmask,
|
u4Byte Bitmask,
|
||||||
IN u4Byte Data
|
u4Byte Data
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
if (Addr == 0xfe){
|
if (Addr == 0xfe){
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
|
|
||||||
void
|
void
|
||||||
ODM_InitDebugSetting(
|
ODM_InitDebugSetting(
|
||||||
IN PDM_ODM_T pDM_Odm
|
PDM_ODM_T pDM_Odm
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
pDM_Odm->DebugLevel = ODM_DBG_TRACE;
|
pDM_Odm->DebugLevel = ODM_DBG_TRACE;
|
||||||
|
|
|
@ -29,8 +29,8 @@
|
||||||
|
|
||||||
u1Byte
|
u1Byte
|
||||||
ODM_Read1Byte(
|
ODM_Read1Byte(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN u4Byte RegAddr
|
u4Byte RegAddr
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
#if (DM_ODM_SUPPORT_TYPE & (ODM_AP|ODM_ADSL))
|
#if (DM_ODM_SUPPORT_TYPE & (ODM_AP|ODM_ADSL))
|
||||||
|
@ -49,8 +49,8 @@ ODM_Read1Byte(
|
||||||
|
|
||||||
u2Byte
|
u2Byte
|
||||||
ODM_Read2Byte(
|
ODM_Read2Byte(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN u4Byte RegAddr
|
u4Byte RegAddr
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
#if (DM_ODM_SUPPORT_TYPE & (ODM_AP|ODM_ADSL))
|
#if (DM_ODM_SUPPORT_TYPE & (ODM_AP|ODM_ADSL))
|
||||||
|
@ -69,8 +69,8 @@ ODM_Read2Byte(
|
||||||
|
|
||||||
u4Byte
|
u4Byte
|
||||||
ODM_Read4Byte(
|
ODM_Read4Byte(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN u4Byte RegAddr
|
u4Byte RegAddr
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
#if (DM_ODM_SUPPORT_TYPE & (ODM_AP|ODM_ADSL))
|
#if (DM_ODM_SUPPORT_TYPE & (ODM_AP|ODM_ADSL))
|
||||||
|
@ -89,9 +89,9 @@ ODM_Read4Byte(
|
||||||
|
|
||||||
void
|
void
|
||||||
ODM_Write1Byte(
|
ODM_Write1Byte(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN u4Byte RegAddr,
|
u4Byte RegAddr,
|
||||||
IN u1Byte Data
|
u1Byte Data
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
#if (DM_ODM_SUPPORT_TYPE & (ODM_AP|ODM_ADSL))
|
#if (DM_ODM_SUPPORT_TYPE & (ODM_AP|ODM_ADSL))
|
||||||
|
@ -110,9 +110,9 @@ ODM_Write1Byte(
|
||||||
|
|
||||||
void
|
void
|
||||||
ODM_Write2Byte(
|
ODM_Write2Byte(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN u4Byte RegAddr,
|
u4Byte RegAddr,
|
||||||
IN u2Byte Data
|
u2Byte Data
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
#if (DM_ODM_SUPPORT_TYPE & (ODM_AP|ODM_ADSL))
|
#if (DM_ODM_SUPPORT_TYPE & (ODM_AP|ODM_ADSL))
|
||||||
|
@ -131,9 +131,9 @@ ODM_Write2Byte(
|
||||||
|
|
||||||
void
|
void
|
||||||
ODM_Write4Byte(
|
ODM_Write4Byte(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN u4Byte RegAddr,
|
u4Byte RegAddr,
|
||||||
IN u4Byte Data
|
u4Byte Data
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
#if (DM_ODM_SUPPORT_TYPE & (ODM_AP|ODM_ADSL))
|
#if (DM_ODM_SUPPORT_TYPE & (ODM_AP|ODM_ADSL))
|
||||||
|
@ -152,10 +152,10 @@ ODM_Write4Byte(
|
||||||
|
|
||||||
void
|
void
|
||||||
ODM_SetMACReg(
|
ODM_SetMACReg(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN u4Byte RegAddr,
|
u4Byte RegAddr,
|
||||||
IN u4Byte BitMask,
|
u4Byte BitMask,
|
||||||
IN u4Byte Data
|
u4Byte Data
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
#if (DM_ODM_SUPPORT_TYPE & (ODM_AP|ODM_ADSL))
|
#if (DM_ODM_SUPPORT_TYPE & (ODM_AP|ODM_ADSL))
|
||||||
|
@ -169,9 +169,9 @@ ODM_SetMACReg(
|
||||||
|
|
||||||
u4Byte
|
u4Byte
|
||||||
ODM_GetMACReg(
|
ODM_GetMACReg(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN u4Byte RegAddr,
|
u4Byte RegAddr,
|
||||||
IN u4Byte BitMask
|
u4Byte BitMask
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
#if (DM_ODM_SUPPORT_TYPE & (ODM_AP|ODM_ADSL))
|
#if (DM_ODM_SUPPORT_TYPE & (ODM_AP|ODM_ADSL))
|
||||||
|
@ -185,10 +185,10 @@ ODM_GetMACReg(
|
||||||
|
|
||||||
void
|
void
|
||||||
ODM_SetBBReg(
|
ODM_SetBBReg(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN u4Byte RegAddr,
|
u4Byte RegAddr,
|
||||||
IN u4Byte BitMask,
|
u4Byte BitMask,
|
||||||
IN u4Byte Data
|
u4Byte Data
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
#if (DM_ODM_SUPPORT_TYPE & (ODM_AP|ODM_ADSL))
|
#if (DM_ODM_SUPPORT_TYPE & (ODM_AP|ODM_ADSL))
|
||||||
|
@ -202,9 +202,9 @@ ODM_SetBBReg(
|
||||||
|
|
||||||
u4Byte
|
u4Byte
|
||||||
ODM_GetBBReg(
|
ODM_GetBBReg(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN u4Byte RegAddr,
|
u4Byte RegAddr,
|
||||||
IN u4Byte BitMask
|
u4Byte BitMask
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
#if (DM_ODM_SUPPORT_TYPE & (ODM_AP|ODM_ADSL))
|
#if (DM_ODM_SUPPORT_TYPE & (ODM_AP|ODM_ADSL))
|
||||||
|
@ -218,11 +218,11 @@ ODM_GetBBReg(
|
||||||
|
|
||||||
void
|
void
|
||||||
ODM_SetRFReg(
|
ODM_SetRFReg(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN ODM_RF_RADIO_PATH_E eRFPath,
|
ODM_RF_RADIO_PATH_E eRFPath,
|
||||||
IN u4Byte RegAddr,
|
u4Byte RegAddr,
|
||||||
IN u4Byte BitMask,
|
u4Byte BitMask,
|
||||||
IN u4Byte Data
|
u4Byte Data
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
#if (DM_ODM_SUPPORT_TYPE & (ODM_AP|ODM_ADSL))
|
#if (DM_ODM_SUPPORT_TYPE & (ODM_AP|ODM_ADSL))
|
||||||
|
@ -236,10 +236,10 @@ ODM_SetRFReg(
|
||||||
|
|
||||||
u4Byte
|
u4Byte
|
||||||
ODM_GetRFReg(
|
ODM_GetRFReg(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN ODM_RF_RADIO_PATH_E eRFPath,
|
ODM_RF_RADIO_PATH_E eRFPath,
|
||||||
IN u4Byte RegAddr,
|
u4Byte RegAddr,
|
||||||
IN u4Byte BitMask
|
u4Byte BitMask
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
#if (DM_ODM_SUPPORT_TYPE & (ODM_AP|ODM_ADSL))
|
#if (DM_ODM_SUPPORT_TYPE & (ODM_AP|ODM_ADSL))
|
||||||
|
@ -258,9 +258,9 @@ ODM_GetRFReg(
|
||||||
//
|
//
|
||||||
void
|
void
|
||||||
ODM_AllocateMemory(
|
ODM_AllocateMemory(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
OUT void * *pPtr,
|
void * *pPtr,
|
||||||
IN u4Byte length
|
u4Byte length
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
#if (DM_ODM_SUPPORT_TYPE & (ODM_AP|ODM_ADSL))
|
#if (DM_ODM_SUPPORT_TYPE & (ODM_AP|ODM_ADSL))
|
||||||
|
@ -276,9 +276,9 @@ ODM_AllocateMemory(
|
||||||
// length could be ignored, used to detect memory leakage.
|
// length could be ignored, used to detect memory leakage.
|
||||||
void
|
void
|
||||||
ODM_FreeMemory(
|
ODM_FreeMemory(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
OUT void * pPtr,
|
void * pPtr,
|
||||||
IN u4Byte length
|
u4Byte length
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
#if (DM_ODM_SUPPORT_TYPE & (ODM_AP|ODM_ADSL))
|
#if (DM_ODM_SUPPORT_TYPE & (ODM_AP|ODM_ADSL))
|
||||||
|
@ -291,10 +291,10 @@ ODM_FreeMemory(
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
s4Byte ODM_CompareMemory(
|
s4Byte ODM_CompareMemory(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN void * pBuf1,
|
void * pBuf1,
|
||||||
IN void * pBuf2,
|
void * pBuf2,
|
||||||
IN u4Byte length
|
u4Byte length
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
#if (DM_ODM_SUPPORT_TYPE & (ODM_AP|ODM_ADSL))
|
#if (DM_ODM_SUPPORT_TYPE & (ODM_AP|ODM_ADSL))
|
||||||
|
@ -313,8 +313,8 @@ s4Byte ODM_CompareMemory(
|
||||||
//
|
//
|
||||||
void
|
void
|
||||||
ODM_AcquireSpinLock(
|
ODM_AcquireSpinLock(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN RT_SPINLOCK_TYPE type
|
RT_SPINLOCK_TYPE type
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
#if (DM_ODM_SUPPORT_TYPE & (ODM_AP|ODM_ADSL))
|
#if (DM_ODM_SUPPORT_TYPE & (ODM_AP|ODM_ADSL))
|
||||||
|
@ -328,8 +328,8 @@ ODM_AcquireSpinLock(
|
||||||
}
|
}
|
||||||
void
|
void
|
||||||
ODM_ReleaseSpinLock(
|
ODM_ReleaseSpinLock(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN RT_SPINLOCK_TYPE type
|
RT_SPINLOCK_TYPE type
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
#if (DM_ODM_SUPPORT_TYPE & (ODM_AP|ODM_ADSL))
|
#if (DM_ODM_SUPPORT_TYPE & (ODM_AP|ODM_ADSL))
|
||||||
|
@ -347,11 +347,11 @@ ODM_ReleaseSpinLock(
|
||||||
//
|
//
|
||||||
void
|
void
|
||||||
ODM_InitializeWorkItem(
|
ODM_InitializeWorkItem(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN PRT_WORK_ITEM pRtWorkItem,
|
PRT_WORK_ITEM pRtWorkItem,
|
||||||
IN RT_WORKITEM_CALL_BACK RtWorkItemCallback,
|
RT_WORKITEM_CALL_BACK RtWorkItemCallback,
|
||||||
IN void * pContext,
|
void * pContext,
|
||||||
IN const char* szID
|
const char* szID
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
#if (DM_ODM_SUPPORT_TYPE & (ODM_AP|ODM_ADSL))
|
#if (DM_ODM_SUPPORT_TYPE & (ODM_AP|ODM_ADSL))
|
||||||
|
@ -367,7 +367,7 @@ ODM_InitializeWorkItem(
|
||||||
|
|
||||||
void
|
void
|
||||||
ODM_StartWorkItem(
|
ODM_StartWorkItem(
|
||||||
IN PRT_WORK_ITEM pRtWorkItem
|
PRT_WORK_ITEM pRtWorkItem
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
#if (DM_ODM_SUPPORT_TYPE & (ODM_AP|ODM_ADSL))
|
#if (DM_ODM_SUPPORT_TYPE & (ODM_AP|ODM_ADSL))
|
||||||
|
@ -382,7 +382,7 @@ ODM_StartWorkItem(
|
||||||
|
|
||||||
void
|
void
|
||||||
ODM_StopWorkItem(
|
ODM_StopWorkItem(
|
||||||
IN PRT_WORK_ITEM pRtWorkItem
|
PRT_WORK_ITEM pRtWorkItem
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
#if (DM_ODM_SUPPORT_TYPE & (ODM_AP|ODM_ADSL))
|
#if (DM_ODM_SUPPORT_TYPE & (ODM_AP|ODM_ADSL))
|
||||||
|
@ -397,7 +397,7 @@ ODM_StopWorkItem(
|
||||||
|
|
||||||
void
|
void
|
||||||
ODM_FreeWorkItem(
|
ODM_FreeWorkItem(
|
||||||
IN PRT_WORK_ITEM pRtWorkItem
|
PRT_WORK_ITEM pRtWorkItem
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
#if (DM_ODM_SUPPORT_TYPE & (ODM_AP|ODM_ADSL))
|
#if (DM_ODM_SUPPORT_TYPE & (ODM_AP|ODM_ADSL))
|
||||||
|
@ -412,7 +412,7 @@ ODM_FreeWorkItem(
|
||||||
|
|
||||||
void
|
void
|
||||||
ODM_ScheduleWorkItem(
|
ODM_ScheduleWorkItem(
|
||||||
IN PRT_WORK_ITEM pRtWorkItem
|
PRT_WORK_ITEM pRtWorkItem
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
#if (DM_ODM_SUPPORT_TYPE & (ODM_AP|ODM_ADSL))
|
#if (DM_ODM_SUPPORT_TYPE & (ODM_AP|ODM_ADSL))
|
||||||
|
@ -427,7 +427,7 @@ ODM_ScheduleWorkItem(
|
||||||
|
|
||||||
void
|
void
|
||||||
ODM_IsWorkItemScheduled(
|
ODM_IsWorkItemScheduled(
|
||||||
IN PRT_WORK_ITEM pRtWorkItem
|
PRT_WORK_ITEM pRtWorkItem
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
#if (DM_ODM_SUPPORT_TYPE & (ODM_AP|ODM_ADSL))
|
#if (DM_ODM_SUPPORT_TYPE & (ODM_AP|ODM_ADSL))
|
||||||
|
@ -446,7 +446,7 @@ ODM_IsWorkItemScheduled(
|
||||||
//
|
//
|
||||||
void
|
void
|
||||||
ODM_StallExecution(
|
ODM_StallExecution(
|
||||||
IN u4Byte usDelay
|
u4Byte usDelay
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
#if (DM_ODM_SUPPORT_TYPE & (ODM_AP|ODM_ADSL))
|
#if (DM_ODM_SUPPORT_TYPE & (ODM_AP|ODM_ADSL))
|
||||||
|
@ -506,9 +506,9 @@ ODM_sleep_us(IN u4Byte us)
|
||||||
|
|
||||||
void
|
void
|
||||||
ODM_SetTimer(
|
ODM_SetTimer(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN PRT_TIMER pTimer,
|
PRT_TIMER pTimer,
|
||||||
IN u4Byte msDelay
|
u4Byte msDelay
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
#if (DM_ODM_SUPPORT_TYPE & (ODM_AP|ODM_ADSL))
|
#if (DM_ODM_SUPPORT_TYPE & (ODM_AP|ODM_ADSL))
|
||||||
|
@ -524,11 +524,11 @@ ODM_SetTimer(
|
||||||
|
|
||||||
void
|
void
|
||||||
ODM_InitializeTimer(
|
ODM_InitializeTimer(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN PRT_TIMER pTimer,
|
PRT_TIMER pTimer,
|
||||||
IN RT_TIMER_CALL_BACK CallBackFunc,
|
RT_TIMER_CALL_BACK CallBackFunc,
|
||||||
IN void * pContext,
|
void * pContext,
|
||||||
IN const char* szID
|
const char* szID
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
#if (DM_ODM_SUPPORT_TYPE & (ODM_AP|ODM_ADSL))
|
#if (DM_ODM_SUPPORT_TYPE & (ODM_AP|ODM_ADSL))
|
||||||
|
@ -547,8 +547,8 @@ ODM_InitializeTimer(
|
||||||
|
|
||||||
void
|
void
|
||||||
ODM_CancelTimer(
|
ODM_CancelTimer(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN PRT_TIMER pTimer
|
PRT_TIMER pTimer
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
#if (DM_ODM_SUPPORT_TYPE & (ODM_AP|ODM_ADSL))
|
#if (DM_ODM_SUPPORT_TYPE & (ODM_AP|ODM_ADSL))
|
||||||
|
@ -564,8 +564,8 @@ ODM_CancelTimer(
|
||||||
|
|
||||||
void
|
void
|
||||||
ODM_ReleaseTimer(
|
ODM_ReleaseTimer(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN PRT_TIMER pTimer
|
PRT_TIMER pTimer
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
#if (DM_ODM_SUPPORT_TYPE & (ODM_AP|ODM_ADSL))
|
#if (DM_ODM_SUPPORT_TYPE & (ODM_AP|ODM_ADSL))
|
||||||
|
@ -595,10 +595,10 @@ ODM_ReleaseTimer(
|
||||||
#if (DM_ODM_SUPPORT_TYPE & ODM_MP)
|
#if (DM_ODM_SUPPORT_TYPE & ODM_MP)
|
||||||
void
|
void
|
||||||
ODM_FillH2CCmd(
|
ODM_FillH2CCmd(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN u1Byte ElementID,
|
u1Byte ElementID,
|
||||||
IN u4Byte CmdLen,
|
u4Byte CmdLen,
|
||||||
IN pu1Byte pCmdBuffer
|
pu1Byte pCmdBuffer
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
if (IS_HARDWARE_TYPE_JAGUAR(Adapter))
|
if (IS_HARDWARE_TYPE_JAGUAR(Adapter))
|
||||||
|
@ -638,13 +638,13 @@ ODM_FillH2CCmd(
|
||||||
#else
|
#else
|
||||||
u4Byte
|
u4Byte
|
||||||
ODM_FillH2CCmd(
|
ODM_FillH2CCmd(
|
||||||
IN pu1Byte pH2CBuffer,
|
pu1Byte pH2CBuffer,
|
||||||
IN u4Byte H2CBufferLen,
|
u4Byte H2CBufferLen,
|
||||||
IN u4Byte CmdNum,
|
u4Byte CmdNum,
|
||||||
IN pu4Byte pElementID,
|
pu4Byte pElementID,
|
||||||
IN pu4Byte pCmdLen,
|
pu4Byte pCmdLen,
|
||||||
IN pu1Byte* pCmbBuffer,
|
pu1Byte* pCmbBuffer,
|
||||||
IN pu1Byte CmdStartSeq
|
pu1Byte CmdStartSeq
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
#if (DM_ODM_SUPPORT_TYPE & (ODM_AP|ODM_ADSL))
|
#if (DM_ODM_SUPPORT_TYPE & (ODM_AP|ODM_ADSL))
|
||||||
|
|
|
@ -629,7 +629,7 @@ void ConstructProbeRsp(_adapter *padapter, u8 *pframe, u32 *pLength, u8 *StaAddr
|
||||||
// 2010.06.23. Added by tynli.
|
// 2010.06.23. Added by tynli.
|
||||||
void
|
void
|
||||||
CheckFwRsvdPageContent(
|
CheckFwRsvdPageContent(
|
||||||
IN PADAPTER Adapter
|
PADAPTER Adapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE* pHalData = GET_HAL_DATA(Adapter);
|
HAL_DATA_TYPE* pHalData = GET_HAL_DATA(Adapter);
|
||||||
|
|
|
@ -42,14 +42,14 @@
|
||||||
|
|
||||||
static void
|
static void
|
||||||
dm_CheckProtection(
|
dm_CheckProtection(
|
||||||
IN PADAPTER Adapter
|
PADAPTER Adapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
dm_CheckStatistics(
|
dm_CheckStatistics(
|
||||||
IN PADAPTER Adapter
|
PADAPTER Adapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
@ -134,7 +134,7 @@ static void dm_CheckPbcGPIO(_adapter *padapter)
|
||||||
//
|
//
|
||||||
void
|
void
|
||||||
dm_InterruptMigration(
|
dm_InterruptMigration(
|
||||||
IN PADAPTER Adapter
|
PADAPTER Adapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
||||||
|
@ -212,7 +212,7 @@ dm_InterruptMigration(
|
||||||
//
|
//
|
||||||
static void
|
static void
|
||||||
dm_InitGPIOSetting(
|
dm_InitGPIOSetting(
|
||||||
IN PADAPTER Adapter
|
PADAPTER Adapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
PHAL_DATA_TYPE pHalData = GET_HAL_DATA(Adapter);
|
PHAL_DATA_TYPE pHalData = GET_HAL_DATA(Adapter);
|
||||||
|
@ -373,7 +373,7 @@ static void Update_ODM_ComInfo_88E(PADAPTER Adapter)
|
||||||
|
|
||||||
void
|
void
|
||||||
rtl8188e_InitHalDm(
|
rtl8188e_InitHalDm(
|
||||||
IN PADAPTER Adapter
|
PADAPTER Adapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
PHAL_DATA_TYPE pHalData = GET_HAL_DATA(Adapter);
|
PHAL_DATA_TYPE pHalData = GET_HAL_DATA(Adapter);
|
||||||
|
@ -398,7 +398,7 @@ rtl8188e_InitHalDm(
|
||||||
|
|
||||||
void
|
void
|
||||||
rtl8188e_HalDmWatchDog(
|
rtl8188e_HalDmWatchDog(
|
||||||
IN PADAPTER Adapter
|
PADAPTER Adapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
bool bFwCurrentInPSMode = _FALSE;
|
bool bFwCurrentInPSMode = _FALSE;
|
||||||
|
|
|
@ -536,8 +536,8 @@ void rtw_IOL_cmd_tx_pkt_buf_dump(ADAPTER *Adapter,int data_len)
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_FWDownloadEnable(
|
_FWDownloadEnable(
|
||||||
IN PADAPTER padapter,
|
PADAPTER padapter,
|
||||||
IN bool enable
|
bool enable
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
u8 tmp;
|
u8 tmp;
|
||||||
|
@ -566,9 +566,9 @@ _FWDownloadEnable(
|
||||||
#define MAX_REG_BOLCK_SIZE 196
|
#define MAX_REG_BOLCK_SIZE 196
|
||||||
static int
|
static int
|
||||||
_BlockWrite(
|
_BlockWrite(
|
||||||
IN PADAPTER padapter,
|
PADAPTER padapter,
|
||||||
IN void * buffer,
|
void * buffer,
|
||||||
IN u32 buffSize
|
u32 buffSize
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
int ret = _SUCCESS;
|
int ret = _SUCCESS;
|
||||||
|
@ -679,10 +679,10 @@ exit:
|
||||||
|
|
||||||
static int
|
static int
|
||||||
_PageWrite(
|
_PageWrite(
|
||||||
IN PADAPTER padapter,
|
PADAPTER padapter,
|
||||||
IN u32 page,
|
u32 page,
|
||||||
IN void * buffer,
|
void * buffer,
|
||||||
IN u32 size
|
u32 size
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
u8 value8;
|
u8 value8;
|
||||||
|
@ -716,9 +716,9 @@ _FillDummy(
|
||||||
|
|
||||||
static int
|
static int
|
||||||
_WriteFW(
|
_WriteFW(
|
||||||
IN PADAPTER padapter,
|
PADAPTER padapter,
|
||||||
IN void * buffer,
|
void * buffer,
|
||||||
IN u32 size
|
u32 size
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
// Since we need dynamic decide method of dwonload fw, so we call this function to get chip version.
|
// Since we need dynamic decide method of dwonload fw, so we call this function to get chip version.
|
||||||
|
@ -1018,8 +1018,8 @@ void rtl8188e_InitializeFirmwareVars(PADAPTER padapter)
|
||||||
//
|
//
|
||||||
void
|
void
|
||||||
SetFwRelatedForWoWLAN8188ES(
|
SetFwRelatedForWoWLAN8188ES(
|
||||||
IN PADAPTER padapter,
|
PADAPTER padapter,
|
||||||
IN u8 bHostIsGoingtoSleep
|
u8 bHostIsGoingtoSleep
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
int status=_FAIL;
|
int status=_FAIL;
|
||||||
|
@ -1076,31 +1076,31 @@ enum{
|
||||||
|
|
||||||
static bool
|
static bool
|
||||||
hal_EfusePgPacketWrite2ByteHeader(
|
hal_EfusePgPacketWrite2ByteHeader(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN u8 efuseType,
|
u8 efuseType,
|
||||||
IN u16 *pAddr,
|
u16 *pAddr,
|
||||||
IN PPGPKT_STRUCT pTargetPkt,
|
PPGPKT_STRUCT pTargetPkt,
|
||||||
IN bool bPseudoTest);
|
bool bPseudoTest);
|
||||||
static bool
|
static bool
|
||||||
hal_EfusePgPacketWrite1ByteHeader(
|
hal_EfusePgPacketWrite1ByteHeader(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN u8 efuseType,
|
u8 efuseType,
|
||||||
IN u16 *pAddr,
|
u16 *pAddr,
|
||||||
IN PPGPKT_STRUCT pTargetPkt,
|
PPGPKT_STRUCT pTargetPkt,
|
||||||
IN bool bPseudoTest);
|
bool bPseudoTest);
|
||||||
static bool
|
static bool
|
||||||
hal_EfusePgPacketWriteData(
|
hal_EfusePgPacketWriteData(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN u8 efuseType,
|
u8 efuseType,
|
||||||
IN u16 *pAddr,
|
u16 *pAddr,
|
||||||
IN PPGPKT_STRUCT pTargetPkt,
|
PPGPKT_STRUCT pTargetPkt,
|
||||||
IN bool bPseudoTest);
|
bool bPseudoTest);
|
||||||
|
|
||||||
static void
|
static void
|
||||||
hal_EfusePowerSwitch_RTL8188E(
|
hal_EfusePowerSwitch_RTL8188E(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN u8 bWrite,
|
u8 bWrite,
|
||||||
IN u8 PwrState)
|
u8 PwrState)
|
||||||
{
|
{
|
||||||
u8 tempval;
|
u8 tempval;
|
||||||
u16 tmpV16;
|
u16 tmpV16;
|
||||||
|
@ -1152,9 +1152,9 @@ hal_EfusePowerSwitch_RTL8188E(
|
||||||
|
|
||||||
static void
|
static void
|
||||||
rtl8188e_EfusePowerSwitch(
|
rtl8188e_EfusePowerSwitch(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN u8 bWrite,
|
u8 bWrite,
|
||||||
IN u8 PwrState)
|
u8 PwrState)
|
||||||
{
|
{
|
||||||
hal_EfusePowerSwitch_RTL8188E(pAdapter, bWrite, PwrState);
|
hal_EfusePowerSwitch_RTL8188E(pAdapter, bWrite, PwrState);
|
||||||
}
|
}
|
||||||
|
@ -1208,7 +1208,7 @@ Hal_EfuseReadEFuse88E(
|
||||||
u16 _offset,
|
u16 _offset,
|
||||||
u16 _size_byte,
|
u16 _size_byte,
|
||||||
u8 *pbuf,
|
u8 *pbuf,
|
||||||
IN bool bPseudoTest
|
bool bPseudoTest
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
//u8 efuseTbl[EFUSE_MAP_LEN_88E];
|
//u8 efuseTbl[EFUSE_MAP_LEN_88E];
|
||||||
|
@ -1399,9 +1399,9 @@ exit:
|
||||||
|
|
||||||
static bool
|
static bool
|
||||||
Hal_EfuseSwitchToBank(
|
Hal_EfuseSwitchToBank(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN u8 bank,
|
u8 bank,
|
||||||
IN bool bPseudoTest
|
bool bPseudoTest
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
bool bRet = _FALSE;
|
bool bRet = _FALSE;
|
||||||
|
@ -1528,7 +1528,7 @@ rtl8188e_ReadEFuse(
|
||||||
u16 _offset,
|
u16 _offset,
|
||||||
u16 _size_byte,
|
u16 _size_byte,
|
||||||
u8 *pbuf,
|
u8 *pbuf,
|
||||||
IN bool bPseudoTest
|
bool bPseudoTest
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
if (bPseudoTest)
|
if (bPseudoTest)
|
||||||
|
@ -1544,10 +1544,10 @@ rtl8188e_ReadEFuse(
|
||||||
//Do not support BT
|
//Do not support BT
|
||||||
void
|
void
|
||||||
Hal_EFUSEGetEfuseDefinition88E(
|
Hal_EFUSEGetEfuseDefinition88E(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN u1Byte efuseType,
|
u1Byte efuseType,
|
||||||
IN u1Byte type,
|
u1Byte type,
|
||||||
OUT void * pOut
|
void * pOut
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
switch (type)
|
switch (type)
|
||||||
|
@ -1612,10 +1612,10 @@ Hal_EFUSEGetEfuseDefinition88E(
|
||||||
}
|
}
|
||||||
void
|
void
|
||||||
Hal_EFUSEGetEfuseDefinition_Pseudo88E(
|
Hal_EFUSEGetEfuseDefinition_Pseudo88E(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN u8 efuseType,
|
u8 efuseType,
|
||||||
IN u8 type,
|
u8 type,
|
||||||
OUT void * pOut
|
void * pOut
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
switch (type)
|
switch (type)
|
||||||
|
@ -1682,11 +1682,11 @@ Hal_EFUSEGetEfuseDefinition_Pseudo88E(
|
||||||
|
|
||||||
static void
|
static void
|
||||||
rtl8188e_EFUSE_GetEfuseDefinition(
|
rtl8188e_EFUSE_GetEfuseDefinition(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN u8 efuseType,
|
u8 efuseType,
|
||||||
IN u8 type,
|
u8 type,
|
||||||
OUT void *pOut,
|
void *pOut,
|
||||||
IN bool bPseudoTest
|
bool bPseudoTest
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
if (bPseudoTest)
|
if (bPseudoTest)
|
||||||
|
@ -1700,11 +1700,11 @@ rtl8188e_EFUSE_GetEfuseDefinition(
|
||||||
}
|
}
|
||||||
|
|
||||||
static u8
|
static u8
|
||||||
Hal_EfuseWordEnableDataWrite( IN PADAPTER pAdapter,
|
Hal_EfuseWordEnableDataWrite( PADAPTER pAdapter,
|
||||||
IN u16 efuse_addr,
|
u16 efuse_addr,
|
||||||
IN u8 word_en,
|
u8 word_en,
|
||||||
IN u8 *data,
|
u8 *data,
|
||||||
IN bool bPseudoTest)
|
bool bPseudoTest)
|
||||||
{
|
{
|
||||||
u16 tmpaddr = 0;
|
u16 tmpaddr = 0;
|
||||||
u16 start_addr = efuse_addr;
|
u16 start_addr = efuse_addr;
|
||||||
|
@ -1766,11 +1766,11 @@ Hal_EfuseWordEnableDataWrite( IN PADAPTER pAdapter,
|
||||||
}
|
}
|
||||||
|
|
||||||
static u8
|
static u8
|
||||||
Hal_EfuseWordEnableDataWrite_Pseudo ( IN PADAPTER pAdapter,
|
Hal_EfuseWordEnableDataWrite_Pseudo ( PADAPTER pAdapter,
|
||||||
IN u16 efuse_addr,
|
u16 efuse_addr,
|
||||||
IN u8 word_en,
|
u8 word_en,
|
||||||
IN u8 *data,
|
u8 *data,
|
||||||
IN bool bPseudoTest)
|
bool bPseudoTest)
|
||||||
{
|
{
|
||||||
u8 ret=0;
|
u8 ret=0;
|
||||||
|
|
||||||
|
@ -1780,11 +1780,11 @@ Hal_EfuseWordEnableDataWrite_Pseudo ( IN PADAPTER pAdapter,
|
||||||
}
|
}
|
||||||
|
|
||||||
static u8
|
static u8
|
||||||
rtl8188e_Efuse_WordEnableDataWrite( IN PADAPTER pAdapter,
|
rtl8188e_Efuse_WordEnableDataWrite( PADAPTER pAdapter,
|
||||||
IN u16 efuse_addr,
|
u16 efuse_addr,
|
||||||
IN u8 word_en,
|
u8 word_en,
|
||||||
IN u8 *data,
|
u8 *data,
|
||||||
IN bool bPseudoTest)
|
bool bPseudoTest)
|
||||||
{
|
{
|
||||||
u8 ret=0;
|
u8 ret=0;
|
||||||
|
|
||||||
|
@ -1802,8 +1802,8 @@ rtl8188e_Efuse_WordEnableDataWrite( IN PADAPTER pAdapter,
|
||||||
|
|
||||||
|
|
||||||
static u16
|
static u16
|
||||||
hal_EfuseGetCurrentSize_8188e(IN PADAPTER pAdapter,
|
hal_EfuseGetCurrentSize_8188e( PADAPTER pAdapter,
|
||||||
IN bool bPseudoTest)
|
bool bPseudoTest)
|
||||||
{
|
{
|
||||||
int bContinual = _TRUE;
|
int bContinual = _TRUE;
|
||||||
|
|
||||||
|
@ -1873,8 +1873,8 @@ hal_EfuseGetCurrentSize_8188e(IN PADAPTER pAdapter,
|
||||||
}
|
}
|
||||||
|
|
||||||
static u16
|
static u16
|
||||||
Hal_EfuseGetCurrentSize_Pseudo (IN PADAPTER pAdapter,
|
Hal_EfuseGetCurrentSize_Pseudo ( PADAPTER pAdapter,
|
||||||
IN bool bPseudoTest)
|
bool bPseudoTest)
|
||||||
{
|
{
|
||||||
u16 ret=0;
|
u16 ret=0;
|
||||||
|
|
||||||
|
@ -1886,9 +1886,9 @@ Hal_EfuseGetCurrentSize_Pseudo (IN PADAPTER pAdapter,
|
||||||
|
|
||||||
static u16
|
static u16
|
||||||
rtl8188e_EfuseGetCurrentSize(
|
rtl8188e_EfuseGetCurrentSize(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN u8 efuseType,
|
u8 efuseType,
|
||||||
IN bool bPseudoTest)
|
bool bPseudoTest)
|
||||||
{
|
{
|
||||||
u16 ret=0;
|
u16 ret=0;
|
||||||
|
|
||||||
|
@ -1908,10 +1908,10 @@ rtl8188e_EfuseGetCurrentSize(
|
||||||
|
|
||||||
static int
|
static int
|
||||||
hal_EfusePgPacketRead_8188e(
|
hal_EfusePgPacketRead_8188e(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN u8 offset,
|
u8 offset,
|
||||||
IN u8 *data,
|
u8 *data,
|
||||||
IN bool bPseudoTest)
|
bool bPseudoTest)
|
||||||
{
|
{
|
||||||
u8 ReadState = PG_STATE_HEADER;
|
u8 ReadState = PG_STATE_HEADER;
|
||||||
|
|
||||||
|
@ -2023,10 +2023,10 @@ hal_EfusePgPacketRead_8188e(
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
Hal_EfusePgPacketRead( IN PADAPTER pAdapter,
|
Hal_EfusePgPacketRead( PADAPTER pAdapter,
|
||||||
IN u8 offset,
|
u8 offset,
|
||||||
IN u8 *data,
|
u8 *data,
|
||||||
IN bool bPseudoTest)
|
bool bPseudoTest)
|
||||||
{
|
{
|
||||||
int ret=0;
|
int ret=0;
|
||||||
|
|
||||||
|
@ -2037,10 +2037,10 @@ Hal_EfusePgPacketRead( IN PADAPTER pAdapter,
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
Hal_EfusePgPacketRead_Pseudo ( IN PADAPTER pAdapter,
|
Hal_EfusePgPacketRead_Pseudo ( PADAPTER pAdapter,
|
||||||
IN u8 offset,
|
u8 offset,
|
||||||
IN u8 *data,
|
u8 *data,
|
||||||
IN bool bPseudoTest)
|
bool bPseudoTest)
|
||||||
{
|
{
|
||||||
int ret=0;
|
int ret=0;
|
||||||
|
|
||||||
|
@ -2050,10 +2050,10 @@ Hal_EfusePgPacketRead_Pseudo ( IN PADAPTER pAdapter,
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
rtl8188e_Efuse_PgPacketRead( IN PADAPTER pAdapter,
|
rtl8188e_Efuse_PgPacketRead( PADAPTER pAdapter,
|
||||||
IN u8 offset,
|
u8 offset,
|
||||||
IN u8 *data,
|
u8 *data,
|
||||||
IN bool bPseudoTest)
|
bool bPseudoTest)
|
||||||
{
|
{
|
||||||
int ret=0;
|
int ret=0;
|
||||||
|
|
||||||
|
@ -2071,11 +2071,11 @@ rtl8188e_Efuse_PgPacketRead( IN PADAPTER pAdapter,
|
||||||
|
|
||||||
static bool
|
static bool
|
||||||
hal_EfuseFixHeaderProcess(
|
hal_EfuseFixHeaderProcess(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN u8 efuseType,
|
u8 efuseType,
|
||||||
IN PPGPKT_STRUCT pFixPkt,
|
PPGPKT_STRUCT pFixPkt,
|
||||||
IN u16 *pAddr,
|
u16 *pAddr,
|
||||||
IN bool bPseudoTest
|
bool bPseudoTest
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
u8 originaldata[8], badworden=0;
|
u8 originaldata[8], badworden=0;
|
||||||
|
@ -2112,11 +2112,11 @@ hal_EfuseFixHeaderProcess(
|
||||||
|
|
||||||
static bool
|
static bool
|
||||||
hal_EfusePgPacketWrite2ByteHeader(
|
hal_EfusePgPacketWrite2ByteHeader(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN u8 efuseType,
|
u8 efuseType,
|
||||||
IN u16 *pAddr,
|
u16 *pAddr,
|
||||||
IN PPGPKT_STRUCT pTargetPkt,
|
PPGPKT_STRUCT pTargetPkt,
|
||||||
IN bool bPseudoTest)
|
bool bPseudoTest)
|
||||||
{
|
{
|
||||||
bool bRet=_FALSE, bContinual=_TRUE;
|
bool bRet=_FALSE, bContinual=_TRUE;
|
||||||
u16 efuse_addr=*pAddr, efuse_max_available_len=0;
|
u16 efuse_addr=*pAddr, efuse_max_available_len=0;
|
||||||
|
@ -2209,11 +2209,11 @@ hal_EfusePgPacketWrite2ByteHeader(
|
||||||
|
|
||||||
static bool
|
static bool
|
||||||
hal_EfusePgPacketWrite1ByteHeader(
|
hal_EfusePgPacketWrite1ByteHeader(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN u8 efuseType,
|
u8 efuseType,
|
||||||
IN u16 *pAddr,
|
u16 *pAddr,
|
||||||
IN PPGPKT_STRUCT pTargetPkt,
|
PPGPKT_STRUCT pTargetPkt,
|
||||||
IN bool bPseudoTest)
|
bool bPseudoTest)
|
||||||
{
|
{
|
||||||
bool bRet=_FALSE;
|
bool bRet=_FALSE;
|
||||||
u8 pg_header=0, tmp_header=0;
|
u8 pg_header=0, tmp_header=0;
|
||||||
|
@ -2257,11 +2257,11 @@ hal_EfusePgPacketWrite1ByteHeader(
|
||||||
|
|
||||||
static bool
|
static bool
|
||||||
hal_EfusePgPacketWriteData(
|
hal_EfusePgPacketWriteData(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN u8 efuseType,
|
u8 efuseType,
|
||||||
IN u16 *pAddr,
|
u16 *pAddr,
|
||||||
IN PPGPKT_STRUCT pTargetPkt,
|
PPGPKT_STRUCT pTargetPkt,
|
||||||
IN bool bPseudoTest)
|
bool bPseudoTest)
|
||||||
{
|
{
|
||||||
bool bRet=_FALSE;
|
bool bRet=_FALSE;
|
||||||
u16 efuse_addr=*pAddr;
|
u16 efuse_addr=*pAddr;
|
||||||
|
@ -2294,11 +2294,11 @@ hal_EfusePgPacketWriteData(
|
||||||
|
|
||||||
static bool
|
static bool
|
||||||
hal_EfusePgPacketWriteHeader(
|
hal_EfusePgPacketWriteHeader(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN u8 efuseType,
|
u8 efuseType,
|
||||||
IN u16 *pAddr,
|
u16 *pAddr,
|
||||||
IN PPGPKT_STRUCT pTargetPkt,
|
PPGPKT_STRUCT pTargetPkt,
|
||||||
IN bool bPseudoTest)
|
bool bPseudoTest)
|
||||||
{
|
{
|
||||||
bool bRet=_FALSE;
|
bool bRet=_FALSE;
|
||||||
|
|
||||||
|
@ -2316,9 +2316,9 @@ hal_EfusePgPacketWriteHeader(
|
||||||
|
|
||||||
static bool
|
static bool
|
||||||
wordEnMatched(
|
wordEnMatched(
|
||||||
IN PPGPKT_STRUCT pTargetPkt,
|
PPGPKT_STRUCT pTargetPkt,
|
||||||
IN PPGPKT_STRUCT pCurPkt,
|
PPGPKT_STRUCT pCurPkt,
|
||||||
IN u8 *pWden
|
u8 *pWden
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
u8 match_word_en = 0x0F; // default all words are disabled
|
u8 match_word_en = 0x0F; // default all words are disabled
|
||||||
|
@ -2356,10 +2356,10 @@ wordEnMatched(
|
||||||
|
|
||||||
static bool
|
static bool
|
||||||
hal_EfuseCheckIfDatafollowed(
|
hal_EfuseCheckIfDatafollowed(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN u8 word_cnts,
|
u8 word_cnts,
|
||||||
IN u16 startAddr,
|
u16 startAddr,
|
||||||
IN bool bPseudoTest
|
bool bPseudoTest
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
bool bRet=_FALSE;
|
bool bRet=_FALSE;
|
||||||
|
@ -2376,11 +2376,11 @@ hal_EfuseCheckIfDatafollowed(
|
||||||
|
|
||||||
static bool
|
static bool
|
||||||
hal_EfusePartialWriteCheck(
|
hal_EfusePartialWriteCheck(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN u8 efuseType,
|
u8 efuseType,
|
||||||
IN u16 *pAddr,
|
u16 *pAddr,
|
||||||
IN PPGPKT_STRUCT pTargetPkt,
|
PPGPKT_STRUCT pTargetPkt,
|
||||||
IN bool bPseudoTest
|
bool bPseudoTest
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
bool bRet=_FALSE;
|
bool bRet=_FALSE;
|
||||||
|
@ -2501,9 +2501,9 @@ hal_EfusePartialWriteCheck(
|
||||||
|
|
||||||
static bool
|
static bool
|
||||||
hal_EfusePgCheckAvailableAddr(
|
hal_EfusePgCheckAvailableAddr(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN u8 efuseType,
|
u8 efuseType,
|
||||||
IN bool bPseudoTest
|
bool bPseudoTest
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
u16 efuse_max_available_len=0;
|
u16 efuse_max_available_len=0;
|
||||||
|
@ -2524,10 +2524,10 @@ hal_EfusePgCheckAvailableAddr(
|
||||||
|
|
||||||
static void
|
static void
|
||||||
hal_EfuseConstructPGPkt(
|
hal_EfuseConstructPGPkt(
|
||||||
IN u8 offset,
|
u8 offset,
|
||||||
IN u8 word_en,
|
u8 word_en,
|
||||||
IN u8 *pData,
|
u8 *pData,
|
||||||
IN PPGPKT_STRUCT pTargetPkt
|
PPGPKT_STRUCT pTargetPkt
|
||||||
|
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
@ -2542,11 +2542,11 @@ hal_EfuseConstructPGPkt(
|
||||||
|
|
||||||
static bool
|
static bool
|
||||||
hal_EfusePgPacketWrite_BT(
|
hal_EfusePgPacketWrite_BT(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN u8 offset,
|
u8 offset,
|
||||||
IN u8 word_en,
|
u8 word_en,
|
||||||
IN u8 *pData,
|
u8 *pData,
|
||||||
IN bool bPseudoTest
|
bool bPseudoTest
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
PGPKT_STRUCT targetPkt;
|
PGPKT_STRUCT targetPkt;
|
||||||
|
@ -2572,11 +2572,11 @@ hal_EfusePgPacketWrite_BT(
|
||||||
|
|
||||||
static bool
|
static bool
|
||||||
hal_EfusePgPacketWrite_8188e(
|
hal_EfusePgPacketWrite_8188e(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN u8 offset,
|
u8 offset,
|
||||||
IN u8 word_en,
|
u8 word_en,
|
||||||
IN u8 *pData,
|
u8 *pData,
|
||||||
IN bool bPseudoTest
|
bool bPseudoTest
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
PGPKT_STRUCT targetPkt;
|
PGPKT_STRUCT targetPkt;
|
||||||
|
@ -2602,11 +2602,11 @@ hal_EfusePgPacketWrite_8188e(
|
||||||
|
|
||||||
|
|
||||||
static int
|
static int
|
||||||
Hal_EfusePgPacketWrite_Pseudo (IN PADAPTER pAdapter,
|
Hal_EfusePgPacketWrite_Pseudo ( PADAPTER pAdapter,
|
||||||
IN u8 offset,
|
u8 offset,
|
||||||
IN u8 word_en,
|
u8 word_en,
|
||||||
IN u8 *data,
|
u8 *data,
|
||||||
IN bool bPseudoTest)
|
bool bPseudoTest)
|
||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
|
@ -2616,11 +2616,11 @@ Hal_EfusePgPacketWrite_Pseudo (IN PADAPTER pAdapter,
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
Hal_EfusePgPacketWrite(IN PADAPTER pAdapter,
|
Hal_EfusePgPacketWrite( PADAPTER pAdapter,
|
||||||
IN u8 offset,
|
u8 offset,
|
||||||
IN u8 word_en,
|
u8 word_en,
|
||||||
IN u8 *data,
|
u8 *data,
|
||||||
IN bool bPseudoTest)
|
bool bPseudoTest)
|
||||||
{
|
{
|
||||||
int ret=0;
|
int ret=0;
|
||||||
ret = hal_EfusePgPacketWrite_8188e(pAdapter, offset, word_en, data, bPseudoTest);
|
ret = hal_EfusePgPacketWrite_8188e(pAdapter, offset, word_en, data, bPseudoTest);
|
||||||
|
@ -2630,11 +2630,11 @@ Hal_EfusePgPacketWrite(IN PADAPTER pAdapter,
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
rtl8188e_Efuse_PgPacketWrite(IN PADAPTER pAdapter,
|
rtl8188e_Efuse_PgPacketWrite( PADAPTER pAdapter,
|
||||||
IN u8 offset,
|
u8 offset,
|
||||||
IN u8 word_en,
|
u8 word_en,
|
||||||
IN u8 *data,
|
u8 *data,
|
||||||
IN bool bPseudoTest)
|
bool bPseudoTest)
|
||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
|
@ -2651,7 +2651,7 @@ rtl8188e_Efuse_PgPacketWrite(IN PADAPTER pAdapter,
|
||||||
|
|
||||||
static HAL_VERSION
|
static HAL_VERSION
|
||||||
ReadChipVersion8188E(
|
ReadChipVersion8188E(
|
||||||
IN PADAPTER padapter
|
PADAPTER padapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
u32 value32;
|
u32 value32;
|
||||||
|
@ -3063,8 +3063,8 @@ Hal_InitPGData88E(PADAPTER padapter)
|
||||||
|
|
||||||
void
|
void
|
||||||
Hal_EfuseParseIDCode88E(
|
Hal_EfuseParseIDCode88E(
|
||||||
IN PADAPTER padapter,
|
PADAPTER padapter,
|
||||||
IN u8 *hwinfo
|
u8 *hwinfo
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
EEPROM_EFUSE_PRIV *pEEPROM = GET_EEPROM_EFUSE_PRIV(padapter);
|
EEPROM_EFUSE_PRIV *pEEPROM = GET_EEPROM_EFUSE_PRIV(padapter);
|
||||||
|
@ -3089,9 +3089,9 @@ Hal_EfuseParseIDCode88E(
|
||||||
|
|
||||||
static void
|
static void
|
||||||
Hal_EEValueCheck(
|
Hal_EEValueCheck(
|
||||||
IN u8 EEType,
|
u8 EEType,
|
||||||
IN void * pInValue,
|
void * pInValue,
|
||||||
OUT void * pOutValue
|
void * pOutValue
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
switch (EEType)
|
switch (EEType)
|
||||||
|
@ -3120,9 +3120,9 @@ Hal_EEValueCheck(
|
||||||
|
|
||||||
static void
|
static void
|
||||||
Hal_ReadPowerValueFromPROM_8188E(
|
Hal_ReadPowerValueFromPROM_8188E(
|
||||||
IN PTxPowerInfo24G pwrInfo24G,
|
PTxPowerInfo24G pwrInfo24G,
|
||||||
IN u8* PROMContent,
|
u8* PROMContent,
|
||||||
IN bool AutoLoadFail
|
bool AutoLoadFail
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
u32 rfPath, eeAddr=EEPROM_TX_PWR_INX_88E, group,TxCount=0;
|
u32 rfPath, eeAddr=EEPROM_TX_PWR_INX_88E, group,TxCount=0;
|
||||||
|
@ -3254,7 +3254,7 @@ Hal_ReadPowerValueFromPROM_8188E(
|
||||||
|
|
||||||
static u8
|
static u8
|
||||||
Hal_GetChnlGroup(
|
Hal_GetChnlGroup(
|
||||||
IN u8 chnl
|
u8 chnl
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
u8 group=0;
|
u8 group=0;
|
||||||
|
@ -3270,7 +3270,7 @@ Hal_GetChnlGroup(
|
||||||
}
|
}
|
||||||
static u8
|
static u8
|
||||||
Hal_GetChnlGroup88E(
|
Hal_GetChnlGroup88E(
|
||||||
IN u8 chnl,
|
u8 chnl,
|
||||||
OUT u8* pGroup
|
OUT u8* pGroup
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
@ -3339,8 +3339,8 @@ Hal_GetChnlGroup88E(
|
||||||
|
|
||||||
void Hal_ReadPowerSavingMode88E(
|
void Hal_ReadPowerSavingMode88E(
|
||||||
PADAPTER padapter,
|
PADAPTER padapter,
|
||||||
IN u8* hwinfo,
|
u8* hwinfo,
|
||||||
IN bool AutoLoadFail
|
bool AutoLoadFail
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(padapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(padapter);
|
||||||
|
@ -3380,9 +3380,9 @@ void Hal_ReadPowerSavingMode88E(
|
||||||
|
|
||||||
void
|
void
|
||||||
Hal_ReadTxPowerInfo88E(
|
Hal_ReadTxPowerInfo88E(
|
||||||
IN PADAPTER padapter,
|
PADAPTER padapter,
|
||||||
IN u8* PROMContent,
|
u8* PROMContent,
|
||||||
IN bool AutoLoadFail
|
bool AutoLoadFail
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(padapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(padapter);
|
||||||
|
@ -3455,9 +3455,9 @@ Hal_ReadTxPowerInfo88E(
|
||||||
|
|
||||||
void
|
void
|
||||||
Hal_EfuseParseXtal_8188E(
|
Hal_EfuseParseXtal_8188E(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN u8* hwinfo,
|
u8* hwinfo,
|
||||||
IN bool AutoLoadFail
|
bool AutoLoadFail
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(pAdapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(pAdapter);
|
||||||
|
@ -3477,9 +3477,9 @@ Hal_EfuseParseXtal_8188E(
|
||||||
|
|
||||||
void
|
void
|
||||||
Hal_EfuseParseBoardType88E(
|
Hal_EfuseParseBoardType88E(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN u8* hwinfo,
|
u8* hwinfo,
|
||||||
IN bool AutoLoadFail
|
bool AutoLoadFail
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(pAdapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(pAdapter);
|
||||||
|
@ -3493,9 +3493,9 @@ Hal_EfuseParseBoardType88E(
|
||||||
|
|
||||||
void
|
void
|
||||||
Hal_EfuseParseEEPROMVer88E(
|
Hal_EfuseParseEEPROMVer88E(
|
||||||
IN PADAPTER padapter,
|
PADAPTER padapter,
|
||||||
IN u8* hwinfo,
|
u8* hwinfo,
|
||||||
IN bool AutoLoadFail
|
bool AutoLoadFail
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(padapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(padapter);
|
||||||
|
@ -3514,9 +3514,9 @@ Hal_EfuseParseEEPROMVer88E(
|
||||||
|
|
||||||
void
|
void
|
||||||
rtl8188e_EfuseParseChnlPlan(
|
rtl8188e_EfuseParseChnlPlan(
|
||||||
IN PADAPTER padapter,
|
PADAPTER padapter,
|
||||||
IN u8* hwinfo,
|
u8* hwinfo,
|
||||||
IN bool AutoLoadFail
|
bool AutoLoadFail
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
padapter->mlmepriv.ChannelPlan = hal_com_get_channel_plan(
|
padapter->mlmepriv.ChannelPlan = hal_com_get_channel_plan(
|
||||||
|
@ -3532,9 +3532,9 @@ rtl8188e_EfuseParseChnlPlan(
|
||||||
|
|
||||||
void
|
void
|
||||||
Hal_EfuseParseCustomerID88E(
|
Hal_EfuseParseCustomerID88E(
|
||||||
IN PADAPTER padapter,
|
PADAPTER padapter,
|
||||||
IN u8* hwinfo,
|
u8* hwinfo,
|
||||||
IN bool AutoLoadFail
|
bool AutoLoadFail
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(padapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(padapter);
|
||||||
|
@ -3556,9 +3556,9 @@ Hal_EfuseParseCustomerID88E(
|
||||||
|
|
||||||
void
|
void
|
||||||
Hal_ReadAntennaDiversity88E(
|
Hal_ReadAntennaDiversity88E(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN u8* PROMContent,
|
u8* PROMContent,
|
||||||
IN bool AutoLoadFail
|
bool AutoLoadFail
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(pAdapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(pAdapter);
|
||||||
|
@ -3604,9 +3604,9 @@ Hal_ReadAntennaDiversity88E(
|
||||||
|
|
||||||
void
|
void
|
||||||
Hal_ReadThermalMeter_88E(
|
Hal_ReadThermalMeter_88E(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN u8* PROMContent,
|
u8* PROMContent,
|
||||||
IN bool AutoloadFail
|
bool AutoloadFail
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
||||||
|
@ -3635,7 +3635,7 @@ Hal_ReadThermalMeter_88E(
|
||||||
|
|
||||||
void
|
void
|
||||||
Hal_InitChannelPlan(
|
Hal_InitChannelPlan(
|
||||||
IN PADAPTER padapter
|
PADAPTER padapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
@ -3673,9 +3673,9 @@ void Hal_DetectWoWMode(PADAPTER pAdapter)
|
||||||
|
|
||||||
#ifdef CONFIG_RF_GAIN_OFFSET
|
#ifdef CONFIG_RF_GAIN_OFFSET
|
||||||
void Hal_ReadRFGainOffset(
|
void Hal_ReadRFGainOffset(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN u8* PROMContent,
|
u8* PROMContent,
|
||||||
IN bool AutoloadFail)
|
bool AutoloadFail)
|
||||||
{
|
{
|
||||||
u8 buff[EFUSE_MAX_SIZE];
|
u8 buff[EFUSE_MAX_SIZE];
|
||||||
u32 res;
|
u32 res;
|
||||||
|
|
|
@ -97,7 +97,7 @@ static void Hal_disable_dm(PADAPTER padapter)
|
||||||
*
|
*
|
||||||
* Overview: Change RF Setting when we siwthc channel/rate/BW for MP.
|
* Overview: Change RF Setting when we siwthc channel/rate/BW for MP.
|
||||||
*
|
*
|
||||||
* Input: IN PADAPTER pAdapter
|
* Input: PADAPTER pAdapter
|
||||||
*
|
*
|
||||||
* Output: NONE
|
* Output: NONE
|
||||||
*
|
*
|
||||||
|
|
|
@ -85,7 +85,7 @@ phy_CalculateBitShift(
|
||||||
#if (SIC_ENABLE == 1)
|
#if (SIC_ENABLE == 1)
|
||||||
static bool
|
static bool
|
||||||
sic_IsSICReady(
|
sic_IsSICReady(
|
||||||
IN PADAPTER Adapter
|
PADAPTER Adapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
bool bRet=_FALSE;
|
bool bRet=_FALSE;
|
||||||
|
@ -240,10 +240,10 @@ sic_Write4Byte(
|
||||||
//============================================================
|
//============================================================
|
||||||
static void
|
static void
|
||||||
SIC_SetBBReg(
|
SIC_SetBBReg(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN u32 RegAddr,
|
u32 RegAddr,
|
||||||
IN u32 BitMask,
|
u32 BitMask,
|
||||||
IN u32 Data
|
u32 Data
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
||||||
|
@ -285,9 +285,9 @@ SIC_SetBBReg(
|
||||||
|
|
||||||
static u32
|
static u32
|
||||||
SIC_QueryBBReg(
|
SIC_QueryBBReg(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN u32 RegAddr,
|
u32 RegAddr,
|
||||||
IN u32 BitMask
|
u32 BitMask
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
||||||
|
@ -323,7 +323,7 @@ SIC_QueryBBReg(
|
||||||
|
|
||||||
void
|
void
|
||||||
SIC_Init(
|
SIC_Init(
|
||||||
IN PADAPTER Adapter
|
PADAPTER Adapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
// Here we need to write 0x1b8~0x1bf = 0 after fw is downloaded
|
// Here we need to write 0x1b8~0x1bf = 0 after fw is downloaded
|
||||||
|
@ -349,7 +349,7 @@ SIC_Init(
|
||||||
|
|
||||||
static bool
|
static bool
|
||||||
SIC_LedOff(
|
SIC_LedOff(
|
||||||
IN PADAPTER Adapter
|
PADAPTER Adapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
// When SIC is enabled, led pin will be used as debug pin,
|
// When SIC is enabled, led pin will be used as debug pin,
|
||||||
|
@ -374,9 +374,9 @@ SIC_LedOff(
|
||||||
*/
|
*/
|
||||||
u32
|
u32
|
||||||
rtl8188e_PHY_QueryBBReg(
|
rtl8188e_PHY_QueryBBReg(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN u32 RegAddr,
|
u32 RegAddr,
|
||||||
IN u32 BitMask
|
u32 BitMask
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
u32 ReturnValue = 0, OriginalValue, BitShift;
|
u32 ReturnValue = 0, OriginalValue, BitShift;
|
||||||
|
@ -424,10 +424,10 @@ rtl8188e_PHY_QueryBBReg(
|
||||||
|
|
||||||
void
|
void
|
||||||
rtl8188e_PHY_SetBBReg(
|
rtl8188e_PHY_SetBBReg(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN u32 RegAddr,
|
u32 RegAddr,
|
||||||
IN u32 BitMask,
|
u32 BitMask,
|
||||||
IN u32 Data
|
u32 Data
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
||||||
|
@ -483,9 +483,9 @@ rtl8188e_PHY_SetBBReg(
|
||||||
*/
|
*/
|
||||||
static u32
|
static u32
|
||||||
phy_RFSerialRead(
|
phy_RFSerialRead(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN RF_RADIO_PATH_E eRFPath,
|
RF_RADIO_PATH_E eRFPath,
|
||||||
IN u32 Offset
|
u32 Offset
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
u32 retValue = 0;
|
u32 retValue = 0;
|
||||||
|
@ -599,10 +599,10 @@ phy_RFSerialRead(
|
||||||
*/
|
*/
|
||||||
static void
|
static void
|
||||||
phy_RFSerialWrite(
|
phy_RFSerialWrite(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN RF_RADIO_PATH_E eRFPath,
|
RF_RADIO_PATH_E eRFPath,
|
||||||
IN u32 Offset,
|
u32 Offset,
|
||||||
IN u32 Data
|
u32 Data
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
u32 DataAndAddr = 0;
|
u32 DataAndAddr = 0;
|
||||||
|
@ -663,10 +663,10 @@ phy_RFSerialWrite(
|
||||||
*/
|
*/
|
||||||
u32
|
u32
|
||||||
rtl8188e_PHY_QueryRFReg(
|
rtl8188e_PHY_QueryRFReg(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN RF_RADIO_PATH_E eRFPath,
|
RF_RADIO_PATH_E eRFPath,
|
||||||
IN u32 RegAddr,
|
u32 RegAddr,
|
||||||
IN u32 BitMask
|
u32 BitMask
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
u32 Original_Value, Readback_Value, BitShift;
|
u32 Original_Value, Readback_Value, BitShift;
|
||||||
|
@ -726,11 +726,11 @@ rtl8188e_PHY_QueryRFReg(
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
rtl8188e_PHY_SetRFReg(
|
rtl8188e_PHY_SetRFReg(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN RF_RADIO_PATH_E eRFPath,
|
RF_RADIO_PATH_E eRFPath,
|
||||||
IN u32 RegAddr,
|
u32 RegAddr,
|
||||||
IN u32 BitMask,
|
u32 BitMask,
|
||||||
IN u32 Data
|
u32 Data
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@ -802,8 +802,8 @@ rtl8188e_PHY_SetRFReg(
|
||||||
*---------------------------------------------------------------------------*/
|
*---------------------------------------------------------------------------*/
|
||||||
static int
|
static int
|
||||||
phy_ConfigMACWithParaFile(
|
phy_ConfigMACWithParaFile(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN u8* pFileName
|
u8* pFileName
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
||||||
|
@ -832,7 +832,7 @@ phy_ConfigMACWithParaFile(
|
||||||
#ifndef CONFIG_PHY_SETTING_WITH_ODM
|
#ifndef CONFIG_PHY_SETTING_WITH_ODM
|
||||||
static int
|
static int
|
||||||
phy_ConfigMACWithHeaderFile(
|
phy_ConfigMACWithHeaderFile(
|
||||||
IN PADAPTER Adapter
|
PADAPTER Adapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
u32 i = 0;
|
u32 i = 0;
|
||||||
|
@ -934,7 +934,7 @@ s32 PHY_MACConfig8188E(PADAPTER Adapter)
|
||||||
*/
|
*/
|
||||||
static void
|
static void
|
||||||
phy_InitBBRFRegisterDefinition(
|
phy_InitBBRFRegisterDefinition(
|
||||||
IN PADAPTER Adapter
|
PADAPTER Adapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
||||||
|
@ -1058,8 +1058,8 @@ phy_InitBBRFRegisterDefinition(
|
||||||
*---------------------------------------------------------------------------*/
|
*---------------------------------------------------------------------------*/
|
||||||
static int
|
static int
|
||||||
phy_ConfigBBWithParaFile(
|
phy_ConfigBBWithParaFile(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN u8* pFileName
|
u8* pFileName
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
||||||
|
@ -1076,7 +1076,7 @@ phy_ConfigBBWithParaFile(
|
||||||
//****************************************
|
//****************************************
|
||||||
void
|
void
|
||||||
phy_ConfigBBExternalPA(
|
phy_ConfigBBExternalPA(
|
||||||
IN PADAPTER Adapter
|
PADAPTER Adapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
#ifdef CONFIG_USB_HCI
|
#ifdef CONFIG_USB_HCI
|
||||||
|
@ -1110,8 +1110,8 @@ phy_ConfigBBExternalPA(
|
||||||
#ifndef CONFIG_PHY_SETTING_WITH_ODM
|
#ifndef CONFIG_PHY_SETTING_WITH_ODM
|
||||||
static int
|
static int
|
||||||
phy_ConfigBBWithHeaderFile(
|
phy_ConfigBBWithHeaderFile(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN u8 ConfigType
|
u8 ConfigType
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
@ -1240,10 +1240,10 @@ exit:
|
||||||
|
|
||||||
void
|
void
|
||||||
storePwrIndexDiffRateOffset(
|
storePwrIndexDiffRateOffset(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN u32 RegAddr,
|
u32 RegAddr,
|
||||||
IN u32 BitMask,
|
u32 BitMask,
|
||||||
IN u32 Data
|
u32 Data
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
||||||
|
@ -1370,8 +1370,8 @@ storePwrIndexDiffRateOffset(
|
||||||
*---------------------------------------------------------------------------*/
|
*---------------------------------------------------------------------------*/
|
||||||
static int
|
static int
|
||||||
phy_ConfigBBWithPgParaFile(
|
phy_ConfigBBWithPgParaFile(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN u8* pFileName)
|
u8* pFileName)
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
||||||
|
|
||||||
|
@ -1401,8 +1401,8 @@ phy_ConfigBBWithPgParaFile(
|
||||||
*---------------------------------------------------------------------------*/
|
*---------------------------------------------------------------------------*/
|
||||||
static int
|
static int
|
||||||
phy_ConfigBBWithPgHeaderFile(
|
phy_ConfigBBWithPgHeaderFile(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN u8 ConfigType)
|
u8 ConfigType)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
u32* Rtl819XPHY_REGArray_Table_PG;
|
u32* Rtl819XPHY_REGArray_Table_PG;
|
||||||
|
@ -1458,7 +1458,7 @@ phy_BB8192C_Config_1T(
|
||||||
// Now it is just for 8256.
|
// Now it is just for 8256.
|
||||||
static int
|
static int
|
||||||
phy_BB8190_Config_HardCode(
|
phy_BB8190_Config_HardCode(
|
||||||
IN PADAPTER Adapter
|
PADAPTER Adapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
//RT_ASSERT(FALSE, ("This function is not implement yet!!\n"));
|
//RT_ASSERT(FALSE, ("This function is not implement yet!!\n"));
|
||||||
|
@ -1467,7 +1467,7 @@ phy_BB8190_Config_HardCode(
|
||||||
|
|
||||||
static int
|
static int
|
||||||
phy_BB8188E_Config_ParaFile(
|
phy_BB8188E_Config_ParaFile(
|
||||||
IN PADAPTER Adapter
|
PADAPTER Adapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
EEPROM_EFUSE_PRIV *pEEPROM = GET_EEPROM_EFUSE_PRIV(Adapter);
|
EEPROM_EFUSE_PRIV *pEEPROM = GET_EEPROM_EFUSE_PRIV(Adapter);
|
||||||
|
@ -1573,7 +1573,7 @@ phy_BB8190_Config_ParaFile_Fail:
|
||||||
|
|
||||||
int
|
int
|
||||||
PHY_BBConfig8188E(
|
PHY_BBConfig8188E(
|
||||||
IN PADAPTER Adapter
|
PADAPTER Adapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
int rtStatus = _SUCCESS;
|
int rtStatus = _SUCCESS;
|
||||||
|
@ -1632,7 +1632,7 @@ PHY_BBConfig8188E(
|
||||||
|
|
||||||
int
|
int
|
||||||
PHY_RFConfig8188E(
|
PHY_RFConfig8188E(
|
||||||
IN PADAPTER Adapter
|
PADAPTER Adapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
||||||
|
@ -1663,8 +1663,8 @@ PHY_RFConfig8188E(
|
||||||
*---------------------------------------------------------------------------*/
|
*---------------------------------------------------------------------------*/
|
||||||
int
|
int
|
||||||
rtl8188e_PHY_ConfigRFWithParaFile(
|
rtl8188e_PHY_ConfigRFWithParaFile(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN u8* pFileName,
|
u8* pFileName,
|
||||||
RF_RADIO_PATH_E eRFPath
|
RF_RADIO_PATH_E eRFPath
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
@ -1698,7 +1698,7 @@ u32 Rtl8192S_HighPower_RadioA_Array[HighPowerRadioAArrayLen] = {
|
||||||
|
|
||||||
int
|
int
|
||||||
PHY_ConfigRFExternalPA(
|
PHY_ConfigRFExternalPA(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
RF_RADIO_PATH_E eRFPath
|
RF_RADIO_PATH_E eRFPath
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
@ -1734,7 +1734,7 @@ PHY_ConfigRFExternalPA(
|
||||||
#ifndef CONFIG_PHY_SETTING_WITH_ODM
|
#ifndef CONFIG_PHY_SETTING_WITH_ODM
|
||||||
int
|
int
|
||||||
rtl8188e_PHY_ConfigRFWithHeaderFile(
|
rtl8188e_PHY_ConfigRFWithHeaderFile(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
RF_RADIO_PATH_E eRFPath
|
RF_RADIO_PATH_E eRFPath
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
@ -1919,9 +1919,9 @@ exit:
|
||||||
*---------------------------------------------------------------------------*/
|
*---------------------------------------------------------------------------*/
|
||||||
int
|
int
|
||||||
PHY_CheckBBAndRFOK(
|
PHY_CheckBBAndRFOK(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN HW90_BLOCK_E CheckBlock,
|
HW90_BLOCK_E CheckBlock,
|
||||||
IN RF_RADIO_PATH_E eRFPath
|
RF_RADIO_PATH_E eRFPath
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
int rtStatus = _SUCCESS;
|
int rtStatus = _SUCCESS;
|
||||||
|
@ -1994,7 +1994,7 @@ PHY_CheckBBAndRFOK(
|
||||||
|
|
||||||
void
|
void
|
||||||
rtl8192c_PHY_GetHWRegOriginalValue(
|
rtl8192c_PHY_GetHWRegOriginalValue(
|
||||||
IN PADAPTER Adapter
|
PADAPTER Adapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
||||||
|
@ -2026,9 +2026,9 @@ rtl8192c_PHY_GetHWRegOriginalValue(
|
||||||
//
|
//
|
||||||
static u8
|
static u8
|
||||||
phy_DbmToTxPwrIdx(
|
phy_DbmToTxPwrIdx(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN WIRELESS_MODE WirelessMode,
|
WIRELESS_MODE WirelessMode,
|
||||||
IN int PowerInDbm
|
int PowerInDbm
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
u8 TxPwrIdx = 0;
|
u8 TxPwrIdx = 0;
|
||||||
|
@ -2082,9 +2082,9 @@ phy_DbmToTxPwrIdx(
|
||||||
//
|
//
|
||||||
int
|
int
|
||||||
phy_TxPwrIdxToDbm(
|
phy_TxPwrIdxToDbm(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN WIRELESS_MODE WirelessMode,
|
WIRELESS_MODE WirelessMode,
|
||||||
IN u8 TxPwrIdx
|
u8 TxPwrIdx
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
int Offset = 0;
|
int Offset = 0;
|
||||||
|
@ -2131,7 +2131,7 @@ phy_TxPwrIdxToDbm(
|
||||||
*---------------------------------------------------------------------------*/
|
*---------------------------------------------------------------------------*/
|
||||||
void
|
void
|
||||||
PHY_GetTxPowerLevel8188E(
|
PHY_GetTxPowerLevel8188E(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
OUT u32* powerlevel
|
OUT u32* powerlevel
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
@ -2166,8 +2166,8 @@ PHY_GetTxPowerLevel8188E(
|
||||||
}
|
}
|
||||||
|
|
||||||
void getTxPowerIndex88E(
|
void getTxPowerIndex88E(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN u8 channel,
|
u8 channel,
|
||||||
IN OUT u8* cckPowerLevel,
|
IN OUT u8* cckPowerLevel,
|
||||||
IN OUT u8* ofdmPowerLevel,
|
IN OUT u8* ofdmPowerLevel,
|
||||||
IN OUT u8* BW20PowerLevel,
|
IN OUT u8* BW20PowerLevel,
|
||||||
|
@ -2258,8 +2258,8 @@ void getTxPowerIndex88E(
|
||||||
}
|
}
|
||||||
|
|
||||||
void phy_PowerIndexCheck88E(
|
void phy_PowerIndexCheck88E(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN u8 channel,
|
u8 channel,
|
||||||
IN OUT u8 * cckPowerLevel,
|
IN OUT u8 * cckPowerLevel,
|
||||||
IN OUT u8 * ofdmPowerLevel,
|
IN OUT u8 * ofdmPowerLevel,
|
||||||
IN OUT u8 * BW20PowerLevel,
|
IN OUT u8 * BW20PowerLevel,
|
||||||
|
@ -2294,8 +2294,8 @@ void phy_PowerIndexCheck88E(
|
||||||
*---------------------------------------------------------------------------*/
|
*---------------------------------------------------------------------------*/
|
||||||
void
|
void
|
||||||
PHY_SetTxPowerLevel8188E(
|
PHY_SetTxPowerLevel8188E(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN u8 channel
|
u8 channel
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
||||||
|
@ -2336,8 +2336,8 @@ PHY_SetTxPowerLevel8188E(
|
||||||
//
|
//
|
||||||
bool
|
bool
|
||||||
PHY_UpdateTxPowerDbm8188E(
|
PHY_UpdateTxPowerDbm8188E(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN int powerInDbm
|
int powerInDbm
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
||||||
|
@ -2382,8 +2382,8 @@ PHY_UpdateTxPowerDbm8188E(
|
||||||
|
|
||||||
void
|
void
|
||||||
rtl8192c_PHY_SetBeaconHwReg(
|
rtl8192c_PHY_SetBeaconHwReg(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN u16 BeaconInterval
|
u16 BeaconInterval
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@ -2392,8 +2392,8 @@ rtl8192c_PHY_SetBeaconHwReg(
|
||||||
|
|
||||||
void
|
void
|
||||||
PHY_ScanOperationBackup8188E(
|
PHY_ScanOperationBackup8188E(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN u8 Operation
|
u8 Operation
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
@ -2415,7 +2415,7 @@ PHY_ScanOperationBackup8188E(
|
||||||
*---------------------------------------------------------------------------*/
|
*---------------------------------------------------------------------------*/
|
||||||
static void
|
static void
|
||||||
_PHY_SetBWMode92C(
|
_PHY_SetBWMode92C(
|
||||||
IN PADAPTER Adapter
|
PADAPTER Adapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
||||||
|
@ -2558,9 +2558,9 @@ _PHY_SetBWMode92C(
|
||||||
*---------------------------------------------------------------------------*/
|
*---------------------------------------------------------------------------*/
|
||||||
void
|
void
|
||||||
PHY_SetBWMode8188E(
|
PHY_SetBWMode8188E(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN HT_CHANNEL_WIDTH Bandwidth, // 20M or 40M
|
HT_CHANNEL_WIDTH Bandwidth, // 20M or 40M
|
||||||
IN unsigned char Offset // Upper, Lower, or Don't care
|
unsigned char Offset // Upper, Lower, or Don't care
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
||||||
|
@ -2633,8 +2633,8 @@ static void _PHY_SwChnl8192C(PADAPTER Adapter, u8 channel)
|
||||||
|
|
||||||
void
|
void
|
||||||
PHY_SwChnl8188E( // Call after initialization
|
PHY_SwChnl8188E( // Call after initialization
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN u8 channel
|
u8 channel
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
//PADAPTER Adapter = ADJUST_TO_ADAPTIVE_ADAPTER(pAdapter, _TRUE);
|
//PADAPTER Adapter = ADJUST_TO_ADAPTIVE_ADAPTER(pAdapter, _TRUE);
|
||||||
|
@ -2707,10 +2707,10 @@ PHY_SwChnl8188E( // Call after initialization
|
||||||
|
|
||||||
static bool
|
static bool
|
||||||
phy_SwChnlStepByStep(
|
phy_SwChnlStepByStep(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN u8 channel,
|
u8 channel,
|
||||||
IN u8 *stage,
|
u8 *stage,
|
||||||
IN u8 *step,
|
u8 *step,
|
||||||
OUT u32 *delay
|
OUT u32 *delay
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
@ -2748,8 +2748,8 @@ phy_SetSwChnlCmdArray(
|
||||||
|
|
||||||
static void
|
static void
|
||||||
phy_FinishSwChnlNow( // We should not call this function directly
|
phy_FinishSwChnlNow( // We should not call this function directly
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN u8 channel
|
u8 channel
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
@ -2765,8 +2765,8 @@ phy_FinishSwChnlNow( // We should not call this function directly
|
||||||
//
|
//
|
||||||
void
|
void
|
||||||
PHY_SwChnlPhy8192C( // Only called during initialize
|
PHY_SwChnlPhy8192C( // Only called during initialize
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN u8 channel
|
u8 channel
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
||||||
|
@ -2811,8 +2811,8 @@ PHY_SwChnlPhy8192C( // Only called during initialize
|
||||||
//
|
//
|
||||||
void
|
void
|
||||||
PHY_SetMonitorMode8192C(
|
PHY_SetMonitorMode8192C(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN bool bEnableMonitorMode
|
bool bEnableMonitorMode
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
@ -2837,8 +2837,8 @@ PHY_SetMonitorMode8192C(
|
||||||
*---------------------------------------------------------------------------*/
|
*---------------------------------------------------------------------------*/
|
||||||
bool
|
bool
|
||||||
PHY_CheckIsLegalRfPath8192C(
|
PHY_CheckIsLegalRfPath8192C(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN u32 eRFPath)
|
u32 eRFPath)
|
||||||
{
|
{
|
||||||
// HAL_DATA_TYPE *pHalData = GET_HAL_DATA(pAdapter);
|
// HAL_DATA_TYPE *pHalData = GET_HAL_DATA(pAdapter);
|
||||||
bool rtValue = _TRUE;
|
bool rtValue = _TRUE;
|
||||||
|
@ -2849,9 +2849,9 @@ PHY_CheckIsLegalRfPath8192C(
|
||||||
} /* PHY_CheckIsLegalRfPath8192C */
|
} /* PHY_CheckIsLegalRfPath8192C */
|
||||||
|
|
||||||
static void _PHY_SetRFPathSwitch(
|
static void _PHY_SetRFPathSwitch(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN bool bMain,
|
bool bMain,
|
||||||
IN bool is2T
|
bool is2T
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
u8 u1bTmp;
|
u8 u1bTmp;
|
||||||
|
@ -2885,8 +2885,8 @@ static void _PHY_SetRFPathSwitch(
|
||||||
//return value TRUE => Main; FALSE => Aux
|
//return value TRUE => Main; FALSE => Aux
|
||||||
|
|
||||||
static bool _PHY_QueryRFPathSwitch(
|
static bool _PHY_QueryRFPathSwitch(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN bool is2T
|
bool is2T
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
// if (is2T)
|
// if (is2T)
|
||||||
|
@ -2916,7 +2916,7 @@ static bool _PHY_QueryRFPathSwitch(
|
||||||
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_PHY_DumpRFReg(IN PADAPTER pAdapter)
|
_PHY_DumpRFReg( PADAPTER pAdapter)
|
||||||
{
|
{
|
||||||
u32 rfRegValue,rfRegOffset;
|
u32 rfRegValue,rfRegOffset;
|
||||||
|
|
||||||
|
@ -2943,7 +2943,7 @@ _PHY_DumpRFReg(IN PADAPTER pAdapter)
|
||||||
//
|
//
|
||||||
void
|
void
|
||||||
DumpBBDbgPort_92CU(
|
DumpBBDbgPort_92CU(
|
||||||
IN PADAPTER Adapter
|
PADAPTER Adapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
|
@ -92,8 +92,8 @@ static RF_SHADOW_T RF_Shadow[RF6052_MAX_PATH][RF6052_MAX_REG];
|
||||||
* Firmwaer support the utility later.
|
* Firmwaer support the utility later.
|
||||||
*
|
*
|
||||||
*---------------------------------------------------------------------------*/
|
*---------------------------------------------------------------------------*/
|
||||||
void rtl8188e_RF_ChangeTxPath( IN PADAPTER Adapter,
|
void rtl8188e_RF_ChangeTxPath( PADAPTER Adapter,
|
||||||
IN u16 DataRate)
|
u16 DataRate)
|
||||||
{
|
{
|
||||||
// We do not support gain table change inACUT now !!!! Delete later !!!
|
// We do not support gain table change inACUT now !!!! Delete later !!!
|
||||||
} /* RF_ChangeTxPath */
|
} /* RF_ChangeTxPath */
|
||||||
|
@ -115,8 +115,8 @@ void rtl8188e_RF_ChangeTxPath( IN PADAPTER Adapter,
|
||||||
*---------------------------------------------------------------------------*/
|
*---------------------------------------------------------------------------*/
|
||||||
void
|
void
|
||||||
rtl8188e_PHY_RF6052SetBandwidth(
|
rtl8188e_PHY_RF6052SetBandwidth(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN HT_CHANNEL_WIDTH Bandwidth) //20M or 40M
|
HT_CHANNEL_WIDTH Bandwidth) //20M or 40M
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
||||||
|
|
||||||
|
@ -159,8 +159,8 @@ rtl8188e_PHY_RF6052SetBandwidth(
|
||||||
|
|
||||||
void
|
void
|
||||||
rtl8188e_PHY_RF6052SetCckTxPower(
|
rtl8188e_PHY_RF6052SetCckTxPower(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN u8* pPowerlevel)
|
u8* pPowerlevel)
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
||||||
struct mlme_priv *pmlmepriv = &Adapter->mlmepriv;
|
struct mlme_priv *pmlmepriv = &Adapter->mlmepriv;
|
||||||
|
@ -283,11 +283,11 @@ rtl8188e_PHY_RF6052SetCckTxPower(
|
||||||
// powerbase1 for HT MCS rates
|
// powerbase1 for HT MCS rates
|
||||||
//
|
//
|
||||||
void getPowerBase88E(
|
void getPowerBase88E(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN u8* pPowerLevelOFDM,
|
u8* pPowerLevelOFDM,
|
||||||
IN u8* pPowerLevelBW20,
|
u8* pPowerLevelBW20,
|
||||||
IN u8* pPowerLevelBW40,
|
u8* pPowerLevelBW40,
|
||||||
IN u8 Channel,
|
u8 Channel,
|
||||||
IN OUT u32* OfdmBase,
|
IN OUT u32* OfdmBase,
|
||||||
IN OUT u32* MCSBase
|
IN OUT u32* MCSBase
|
||||||
)
|
)
|
||||||
|
@ -326,12 +326,12 @@ void getPowerBase88E(
|
||||||
}
|
}
|
||||||
|
|
||||||
void getTxPowerWriteValByRegulatory88E(
|
void getTxPowerWriteValByRegulatory88E(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN u8 Channel,
|
u8 Channel,
|
||||||
IN u8 index,
|
u8 index,
|
||||||
IN u32* powerBase0,
|
u32* powerBase0,
|
||||||
IN u32* powerBase1,
|
u32* powerBase1,
|
||||||
OUT u32* pOutWriteVal
|
u32* pOutWriteVal
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@ -496,9 +496,9 @@ void getTxPowerWriteValByRegulatory88E(
|
||||||
}
|
}
|
||||||
|
|
||||||
static void writeOFDMPowerReg88E(
|
static void writeOFDMPowerReg88E(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN u8 index,
|
u8 index,
|
||||||
IN u32* pValue
|
u32* pValue
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
||||||
|
@ -580,11 +580,11 @@ static void writeOFDMPowerReg88E(
|
||||||
|
|
||||||
void
|
void
|
||||||
rtl8188e_PHY_RF6052SetOFDMTxPower(
|
rtl8188e_PHY_RF6052SetOFDMTxPower(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN u8* pPowerLevelOFDM,
|
u8* pPowerLevelOFDM,
|
||||||
IN u8* pPowerLevelBW20,
|
u8* pPowerLevelBW20,
|
||||||
IN u8* pPowerLevelBW40,
|
u8* pPowerLevelBW40,
|
||||||
IN u8 Channel)
|
u8 Channel)
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
||||||
u32 writeVal[2], powerBase0[2], powerBase1[2], pwrtrac_value;
|
u32 writeVal[2], powerBase0[2], powerBase1[2], pwrtrac_value;
|
||||||
|
@ -625,7 +625,7 @@ rtl8188e_PHY_RF6052SetOFDMTxPower(
|
||||||
|
|
||||||
static void
|
static void
|
||||||
phy_RF6052_Config_HardCode(
|
phy_RF6052_Config_HardCode(
|
||||||
IN PADAPTER Adapter
|
PADAPTER Adapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@ -638,7 +638,7 @@ phy_RF6052_Config_HardCode(
|
||||||
|
|
||||||
static int
|
static int
|
||||||
phy_RF6052_Config_ParaFile(
|
phy_RF6052_Config_ParaFile(
|
||||||
IN PADAPTER Adapter
|
PADAPTER Adapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
u32 u4RegValue;
|
u32 u4RegValue;
|
||||||
|
@ -758,7 +758,7 @@ phy_RF6052_Config_ParaFile_Fail:
|
||||||
|
|
||||||
int
|
int
|
||||||
PHY_RF6052_Config8188E(
|
PHY_RF6052_Config8188E(
|
||||||
IN PADAPTER Adapter)
|
PADAPTER Adapter)
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
||||||
int rtStatus = _SUCCESS;
|
int rtStatus = _SUCCESS;
|
||||||
|
@ -810,9 +810,9 @@ PHY_RF6052_Config8188E(
|
||||||
*---------------------------------------------------------------------------*/
|
*---------------------------------------------------------------------------*/
|
||||||
u32
|
u32
|
||||||
PHY_RFShadowRead(
|
PHY_RFShadowRead(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN RF_RADIO_PATH_E eRFPath,
|
RF_RADIO_PATH_E eRFPath,
|
||||||
IN u32 Offset)
|
u32 Offset)
|
||||||
{
|
{
|
||||||
return RF_Shadow[eRFPath][Offset].Value;
|
return RF_Shadow[eRFPath][Offset].Value;
|
||||||
|
|
||||||
|
@ -821,10 +821,10 @@ PHY_RFShadowRead(
|
||||||
|
|
||||||
void
|
void
|
||||||
PHY_RFShadowWrite(
|
PHY_RFShadowWrite(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN RF_RADIO_PATH_E eRFPath,
|
RF_RADIO_PATH_E eRFPath,
|
||||||
IN u32 Offset,
|
u32 Offset,
|
||||||
IN u32 Data)
|
u32 Data)
|
||||||
{
|
{
|
||||||
RF_Shadow[eRFPath][Offset].Value = (Data & bRFRegOffsetMask);
|
RF_Shadow[eRFPath][Offset].Value = (Data & bRFRegOffsetMask);
|
||||||
RF_Shadow[eRFPath][Offset].Driver_Write = _TRUE;
|
RF_Shadow[eRFPath][Offset].Driver_Write = _TRUE;
|
||||||
|
@ -834,9 +834,9 @@ PHY_RFShadowWrite(
|
||||||
|
|
||||||
bool
|
bool
|
||||||
PHY_RFShadowCompare(
|
PHY_RFShadowCompare(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN RF_RADIO_PATH_E eRFPath,
|
RF_RADIO_PATH_E eRFPath,
|
||||||
IN u32 Offset)
|
u32 Offset)
|
||||||
{
|
{
|
||||||
u32 reg;
|
u32 reg;
|
||||||
// Check if we need to check the register
|
// Check if we need to check the register
|
||||||
|
@ -860,9 +860,9 @@ PHY_RFShadowCompare(
|
||||||
|
|
||||||
void
|
void
|
||||||
PHY_RFShadowRecorver(
|
PHY_RFShadowRecorver(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN RF_RADIO_PATH_E eRFPath,
|
RF_RADIO_PATH_E eRFPath,
|
||||||
IN u32 Offset)
|
u32 Offset)
|
||||||
{
|
{
|
||||||
// Check if the address is error
|
// Check if the address is error
|
||||||
if (RF_Shadow[eRFPath][Offset].ErrorOrNot == _TRUE)
|
if (RF_Shadow[eRFPath][Offset].ErrorOrNot == _TRUE)
|
||||||
|
@ -883,7 +883,7 @@ PHY_RFShadowRecorver(
|
||||||
|
|
||||||
void
|
void
|
||||||
PHY_RFShadowCompareAll(
|
PHY_RFShadowCompareAll(
|
||||||
IN PADAPTER Adapter)
|
PADAPTER Adapter)
|
||||||
{
|
{
|
||||||
u32 eRFPath;
|
u32 eRFPath;
|
||||||
u32 Offset;
|
u32 Offset;
|
||||||
|
@ -901,7 +901,7 @@ PHY_RFShadowCompareAll(
|
||||||
|
|
||||||
void
|
void
|
||||||
PHY_RFShadowRecorverAll(
|
PHY_RFShadowRecorverAll(
|
||||||
IN PADAPTER Adapter)
|
PADAPTER Adapter)
|
||||||
{
|
{
|
||||||
u32 eRFPath;
|
u32 eRFPath;
|
||||||
u32 Offset;
|
u32 Offset;
|
||||||
|
@ -919,10 +919,10 @@ PHY_RFShadowRecorverAll(
|
||||||
|
|
||||||
void
|
void
|
||||||
PHY_RFShadowCompareFlagSet(
|
PHY_RFShadowCompareFlagSet(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN RF_RADIO_PATH_E eRFPath,
|
RF_RADIO_PATH_E eRFPath,
|
||||||
IN u32 Offset,
|
u32 Offset,
|
||||||
IN u8 Type)
|
u8 Type)
|
||||||
{
|
{
|
||||||
// Set True or False!!!
|
// Set True or False!!!
|
||||||
RF_Shadow[eRFPath][Offset].Compare = Type;
|
RF_Shadow[eRFPath][Offset].Compare = Type;
|
||||||
|
@ -932,10 +932,10 @@ PHY_RFShadowCompareFlagSet(
|
||||||
|
|
||||||
void
|
void
|
||||||
PHY_RFShadowRecorverFlagSet(
|
PHY_RFShadowRecorverFlagSet(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN RF_RADIO_PATH_E eRFPath,
|
RF_RADIO_PATH_E eRFPath,
|
||||||
IN u32 Offset,
|
u32 Offset,
|
||||||
IN u8 Type)
|
u8 Type)
|
||||||
{
|
{
|
||||||
// Set True or False!!!
|
// Set True or False!!!
|
||||||
RF_Shadow[eRFPath][Offset].Recorver= Type;
|
RF_Shadow[eRFPath][Offset].Recorver= Type;
|
||||||
|
@ -945,7 +945,7 @@ PHY_RFShadowRecorverFlagSet(
|
||||||
|
|
||||||
void
|
void
|
||||||
PHY_RFShadowCompareFlagSetAll(
|
PHY_RFShadowCompareFlagSetAll(
|
||||||
IN PADAPTER Adapter)
|
PADAPTER Adapter)
|
||||||
{
|
{
|
||||||
u32 eRFPath;
|
u32 eRFPath;
|
||||||
u32 Offset;
|
u32 Offset;
|
||||||
|
@ -967,7 +967,7 @@ PHY_RFShadowCompareFlagSetAll(
|
||||||
|
|
||||||
void
|
void
|
||||||
PHY_RFShadowRecorverFlagSetAll(
|
PHY_RFShadowRecorverFlagSetAll(
|
||||||
IN PADAPTER Adapter)
|
PADAPTER Adapter)
|
||||||
{
|
{
|
||||||
u32 eRFPath;
|
u32 eRFPath;
|
||||||
u32 Offset;
|
u32 Offset;
|
||||||
|
@ -988,7 +988,7 @@ PHY_RFShadowRecorverFlagSetAll(
|
||||||
|
|
||||||
void
|
void
|
||||||
PHY_RFShadowRefresh(
|
PHY_RFShadowRefresh(
|
||||||
IN PADAPTER Adapter)
|
PADAPTER Adapter)
|
||||||
{
|
{
|
||||||
u32 eRFPath;
|
u32 eRFPath;
|
||||||
u32 Offset;
|
u32 Offset;
|
||||||
|
|
|
@ -65,8 +65,8 @@
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_ConfigNormalChipOutEP_8188E(
|
_ConfigNormalChipOutEP_8188E(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN u8 NumOutPipe
|
u8 NumOutPipe
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(pAdapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(pAdapter);
|
||||||
|
@ -93,9 +93,9 @@ _ConfigNormalChipOutEP_8188E(
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool HalUsbSetQueuePipeMapping8188EUsb(
|
static bool HalUsbSetQueuePipeMapping8188EUsb(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN u8 NumInPipe,
|
u8 NumInPipe,
|
||||||
IN u8 NumOutPipe
|
u8 NumOutPipe
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(pAdapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(pAdapter);
|
||||||
|
@ -460,13 +460,13 @@ _InitPageBoundary(
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_InitNormalChipRegPriority(
|
_InitNormalChipRegPriority(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN u16 beQ,
|
u16 beQ,
|
||||||
IN u16 bkQ,
|
u16 bkQ,
|
||||||
IN u16 viQ,
|
u16 viQ,
|
||||||
IN u16 voQ,
|
u16 voQ,
|
||||||
IN u16 mgtQ,
|
u16 mgtQ,
|
||||||
IN u16 hiQ
|
u16 hiQ
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
u16 value16 = (rtw_read16(Adapter, REG_TRXDMA_CTRL) & 0x7);
|
u16 value16 = (rtw_read16(Adapter, REG_TRXDMA_CTRL) & 0x7);
|
||||||
|
@ -480,7 +480,7 @@ _InitNormalChipRegPriority(
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_InitNormalChipOneOutEpPriority(
|
_InitNormalChipOneOutEpPriority(
|
||||||
IN PADAPTER Adapter
|
PADAPTER Adapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
||||||
|
@ -515,7 +515,7 @@ _InitNormalChipOneOutEpPriority(
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_InitNormalChipTwoOutEpPriority(
|
_InitNormalChipTwoOutEpPriority(
|
||||||
IN PADAPTER Adapter
|
PADAPTER Adapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
||||||
|
@ -568,7 +568,7 @@ _InitNormalChipTwoOutEpPriority(
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_InitNormalChipThreeOutEpPriority(
|
_InitNormalChipThreeOutEpPriority(
|
||||||
IN PADAPTER Adapter
|
PADAPTER Adapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
struct registry_priv *pregistrypriv = &Adapter->registrypriv;
|
struct registry_priv *pregistrypriv = &Adapter->registrypriv;
|
||||||
|
@ -595,7 +595,7 @@ _InitNormalChipThreeOutEpPriority(
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_InitQueuePriority(
|
_InitQueuePriority(
|
||||||
IN PADAPTER Adapter
|
PADAPTER Adapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
||||||
|
@ -661,7 +661,7 @@ _InitTransferPageSize(
|
||||||
static void
|
static void
|
||||||
_InitDriverInfoSize(
|
_InitDriverInfoSize(
|
||||||
IN PADAPTER Adapter,
|
IN PADAPTER Adapter,
|
||||||
IN u8 drvInfoSize
|
u8 drvInfoSize
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
rtw_write8(Adapter,REG_RX_DRVINFO_SZ, drvInfoSize);
|
rtw_write8(Adapter,REG_RX_DRVINFO_SZ, drvInfoSize);
|
||||||
|
@ -778,7 +778,7 @@ _InitEDCA(
|
||||||
static void
|
static void
|
||||||
_InitBeaconMaxError(
|
_InitBeaconMaxError(
|
||||||
IN PADAPTER Adapter,
|
IN PADAPTER Adapter,
|
||||||
IN bool InfraMode
|
bool InfraMode
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@ -802,7 +802,7 @@ static void _InitHWLed(PADAPTER Adapter)
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_InitRDGSetting(
|
_InitRDGSetting(
|
||||||
IN PADAPTER Adapter
|
PADAPTER Adapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
rtw_write8(Adapter,REG_RD_CTRL,0xFF);
|
rtw_write8(Adapter,REG_RD_CTRL,0xFF);
|
||||||
|
@ -812,7 +812,7 @@ _InitRDGSetting(
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_InitRxSetting(
|
_InitRxSetting(
|
||||||
IN PADAPTER Adapter
|
PADAPTER Adapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
rtw_write32(Adapter, REG_MACID, 0x87654321);
|
rtw_write32(Adapter, REG_MACID, 0x87654321);
|
||||||
|
@ -851,7 +851,7 @@ _InitRetryFunction(
|
||||||
*---------------------------------------------------------------------------*/
|
*---------------------------------------------------------------------------*/
|
||||||
static void
|
static void
|
||||||
usb_AggSettingTxUpdate(
|
usb_AggSettingTxUpdate(
|
||||||
IN PADAPTER Adapter
|
PADAPTER Adapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
#ifdef CONFIG_USB_TX_AGGREGATION
|
#ifdef CONFIG_USB_TX_AGGREGATION
|
||||||
|
@ -891,7 +891,7 @@ usb_AggSettingTxUpdate(
|
||||||
*---------------------------------------------------------------------------*/
|
*---------------------------------------------------------------------------*/
|
||||||
static void
|
static void
|
||||||
usb_AggSettingRxUpdate(
|
usb_AggSettingRxUpdate(
|
||||||
IN PADAPTER Adapter
|
PADAPTER Adapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
#ifdef CONFIG_USB_RX_AGGREGATION
|
#ifdef CONFIG_USB_RX_AGGREGATION
|
||||||
|
@ -1020,14 +1020,14 @@ HalRxAggr8188EUsb(
|
||||||
*---------------------------------------------------------------------------*/
|
*---------------------------------------------------------------------------*/
|
||||||
void
|
void
|
||||||
USB_AggModeSwitch(
|
USB_AggModeSwitch(
|
||||||
IN PADAPTER Adapter
|
PADAPTER Adapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
} // USB_AggModeSwitch
|
} // USB_AggModeSwitch
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_InitOperationMode(
|
_InitOperationMode(
|
||||||
IN PADAPTER Adapter
|
PADAPTER Adapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
@ -1060,7 +1060,7 @@ _InitBeaconParameters(
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_InitRFType(
|
_InitRFType(
|
||||||
IN PADAPTER Adapter
|
PADAPTER Adapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
struct registry_priv *pregpriv = &Adapter->registrypriv;
|
struct registry_priv *pregpriv = &Adapter->registrypriv;
|
||||||
|
@ -1090,9 +1090,9 @@ _InitRFType(
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_BeaconFunctionEnable(
|
_BeaconFunctionEnable(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN bool Enable,
|
bool Enable,
|
||||||
IN bool Linked
|
bool Linked
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
rtw_write8(Adapter, REG_BCN_CTRL, (BIT4 | BIT3 | BIT1));
|
rtw_write8(Adapter, REG_BCN_CTRL, (BIT4 | BIT3 | BIT1));
|
||||||
|
@ -1105,7 +1105,7 @@ _BeaconFunctionEnable(
|
||||||
|
|
||||||
// Set CCK and OFDM Block "ON"
|
// Set CCK and OFDM Block "ON"
|
||||||
static void _BBTurnOnBlock(
|
static void _BBTurnOnBlock(
|
||||||
IN PADAPTER Adapter
|
PADAPTER Adapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
#if (DISABLE_BB_RF)
|
#if (DISABLE_BB_RF)
|
||||||
|
@ -1117,7 +1117,7 @@ static void _BBTurnOnBlock(
|
||||||
}
|
}
|
||||||
|
|
||||||
static void _RfPowerSave(
|
static void _RfPowerSave(
|
||||||
IN PADAPTER Adapter
|
PADAPTER Adapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
@ -1128,7 +1128,7 @@ enum {
|
||||||
};
|
};
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_InitAntenna_Selection(IN PADAPTER Adapter)
|
_InitAntenna_Selection( PADAPTER Adapter)
|
||||||
{
|
{
|
||||||
|
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
||||||
|
@ -1177,8 +1177,8 @@ HalDetectSelectiveSuspendMode(
|
||||||
*---------------------------------------------------------------------------*/
|
*---------------------------------------------------------------------------*/
|
||||||
static void
|
static void
|
||||||
HwSuspendModeEnable_88eu(
|
HwSuspendModeEnable_88eu(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN u8 Type
|
u8 Type
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
//PRT_USB_DEVICE pDevice = GET_RT_USB_DEVICE(pAdapter);
|
//PRT_USB_DEVICE pDevice = GET_RT_USB_DEVICE(pAdapter);
|
||||||
|
@ -1217,7 +1217,7 @@ HwSuspendModeEnable_88eu(
|
||||||
}
|
}
|
||||||
|
|
||||||
} // HwSuspendModeEnable92Cu
|
} // HwSuspendModeEnable92Cu
|
||||||
rt_rf_power_state RfOnOffDetect(IN PADAPTER pAdapter )
|
rt_rf_power_state RfOnOffDetect( PADAPTER pAdapter )
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(pAdapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(pAdapter);
|
||||||
u8 val8;
|
u8 val8;
|
||||||
|
@ -1749,7 +1749,7 @@ void _ps_close_RF(_adapter *padapter){
|
||||||
|
|
||||||
void
|
void
|
||||||
CardDisableRTL8188EU(
|
CardDisableRTL8188EU(
|
||||||
IN PADAPTER Adapter
|
PADAPTER Adapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
// PMGNT_INFO pMgntInfo = &(Adapter->MgntInfo);
|
// PMGNT_INFO pMgntInfo = &(Adapter->MgntInfo);
|
||||||
|
@ -1941,9 +1941,9 @@ static void _ReadIDs(PADAPTER Adapter, u8 *PROMContent, bool AutoloadFail)
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_ReadBoardType(
|
_ReadBoardType(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN u8* PROMContent,
|
u8* PROMContent,
|
||||||
IN bool AutoloadFail
|
bool AutoloadFail
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@ -1952,9 +1952,9 @@ _ReadBoardType(
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_ReadLEDSetting(
|
_ReadLEDSetting(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN u8* PROMContent,
|
u8* PROMContent,
|
||||||
IN bool AutoloadFail
|
bool AutoloadFail
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
struct led_priv *pledpriv = &(Adapter->ledpriv);
|
struct led_priv *pledpriv = &(Adapter->ledpriv);
|
||||||
|
@ -1976,36 +1976,36 @@ _ReadLEDSetting(
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_ReadThermalMeter(
|
_ReadThermalMeter(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN u8* PROMContent,
|
u8* PROMContent,
|
||||||
IN bool AutoloadFail
|
bool AutoloadFail
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_ReadRFSetting(
|
_ReadRFSetting(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN u8* PROMContent,
|
u8* PROMContent,
|
||||||
IN bool AutoloadFail
|
bool AutoloadFail
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_ReadPROMVersion(
|
_ReadPROMVersion(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN u8* PROMContent,
|
u8* PROMContent,
|
||||||
IN bool AutoloadFail
|
bool AutoloadFail
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
readAntennaDiversity(
|
readAntennaDiversity(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN u8 *hwinfo,
|
u8 *hwinfo,
|
||||||
IN bool AutoLoadFail
|
bool AutoLoadFail
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(pAdapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(pAdapter);
|
||||||
|
@ -2016,16 +2016,16 @@ readAntennaDiversity(
|
||||||
|
|
||||||
static void
|
static void
|
||||||
hal_InitPGData(
|
hal_InitPGData(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN OUT u8 *PROMContent
|
u8 *PROMContent
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
static void
|
static void
|
||||||
Hal_EfuseParsePIDVID_8188EU(
|
Hal_EfuseParsePIDVID_8188EU(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN u8* hwinfo,
|
u8* hwinfo,
|
||||||
IN bool AutoLoadFail
|
bool AutoLoadFail
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@ -2059,9 +2059,9 @@ Hal_EfuseParsePIDVID_8188EU(
|
||||||
|
|
||||||
static void
|
static void
|
||||||
Hal_EfuseParseMACAddr_8188EU(
|
Hal_EfuseParseMACAddr_8188EU(
|
||||||
IN PADAPTER padapter,
|
PADAPTER padapter,
|
||||||
IN u8* hwinfo,
|
u8* hwinfo,
|
||||||
IN bool AutoLoadFail
|
bool AutoLoadFail
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
u16 i, usValue;
|
u16 i, usValue;
|
||||||
|
@ -2092,7 +2092,7 @@ Hal_EfuseParseMACAddr_8188EU(
|
||||||
|
|
||||||
static void
|
static void
|
||||||
Hal_CustomizeByCustomerID_8188EU(
|
Hal_CustomizeByCustomerID_8188EU(
|
||||||
IN PADAPTER padapter
|
PADAPTER padapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
@ -2217,7 +2217,7 @@ Hal_ReadMACAddrFromFile_8188EU(
|
||||||
|
|
||||||
static void
|
static void
|
||||||
readAdapterInfo_8188EU(
|
readAdapterInfo_8188EU(
|
||||||
IN PADAPTER padapter
|
PADAPTER padapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
#if 1
|
#if 1
|
||||||
|
@ -2299,7 +2299,7 @@ static void _ReadPROMContent(
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_ReadRFType(
|
_ReadRFType(
|
||||||
IN PADAPTER Adapter
|
PADAPTER Adapter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
||||||
|
@ -3893,9 +3893,9 @@ _func_exit_;
|
||||||
//
|
//
|
||||||
u8
|
u8
|
||||||
GetHalDefVar8188EUsb(
|
GetHalDefVar8188EUsb(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN HAL_DEF_VARIABLE eVariable,
|
HAL_DEF_VARIABLE eVariable,
|
||||||
IN void * pValue
|
void * pValue
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
||||||
|
@ -4028,9 +4028,9 @@ GetHalDefVar8188EUsb(
|
||||||
//
|
//
|
||||||
u8
|
u8
|
||||||
SetHalDefVar8188EUsb(
|
SetHalDefVar8188EUsb(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN HAL_DEF_VARIABLE eVariable,
|
HAL_DEF_VARIABLE eVariable,
|
||||||
IN void * pValue
|
void * pValue
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
||||||
|
|
|
@ -214,128 +214,128 @@ typedef struct _R_ANTENNA_SELECT_CCK{
|
||||||
//
|
//
|
||||||
// BB and RF register read/write
|
// BB and RF register read/write
|
||||||
//
|
//
|
||||||
u32 rtl8188e_PHY_QueryBBReg( IN PADAPTER Adapter,
|
u32 rtl8188e_PHY_QueryBBReg( PADAPTER Adapter,
|
||||||
IN u32 RegAddr,
|
u32 RegAddr,
|
||||||
IN u32 BitMask );
|
u32 BitMask );
|
||||||
void rtl8188e_PHY_SetBBReg( IN PADAPTER Adapter,
|
void rtl8188e_PHY_SetBBReg( PADAPTER Adapter,
|
||||||
IN u32 RegAddr,
|
u32 RegAddr,
|
||||||
IN u32 BitMask,
|
u32 BitMask,
|
||||||
IN u32 Data );
|
u32 Data );
|
||||||
u32 rtl8188e_PHY_QueryRFReg( IN PADAPTER Adapter,
|
u32 rtl8188e_PHY_QueryRFReg( PADAPTER Adapter,
|
||||||
IN RF_RADIO_PATH_E eRFPath,
|
RF_RADIO_PATH_E eRFPath,
|
||||||
IN u32 RegAddr,
|
u32 RegAddr,
|
||||||
IN u32 BitMask );
|
u32 BitMask );
|
||||||
void rtl8188e_PHY_SetRFReg( IN PADAPTER Adapter,
|
void rtl8188e_PHY_SetRFReg( PADAPTER Adapter,
|
||||||
IN RF_RADIO_PATH_E eRFPath,
|
RF_RADIO_PATH_E eRFPath,
|
||||||
IN u32 RegAddr,
|
u32 RegAddr,
|
||||||
IN u32 BitMask,
|
u32 BitMask,
|
||||||
IN u32 Data );
|
u32 Data );
|
||||||
|
|
||||||
//
|
//
|
||||||
// Initialization related function
|
// Initialization related function
|
||||||
//
|
//
|
||||||
/* MAC/BB/RF HAL config */
|
/* MAC/BB/RF HAL config */
|
||||||
int PHY_MACConfig8188E(IN PADAPTER Adapter );
|
int PHY_MACConfig8188E( PADAPTER Adapter );
|
||||||
int PHY_BBConfig8188E(IN PADAPTER Adapter );
|
int PHY_BBConfig8188E( PADAPTER Adapter );
|
||||||
int PHY_RFConfig8188E(IN PADAPTER Adapter );
|
int PHY_RFConfig8188E( PADAPTER Adapter );
|
||||||
|
|
||||||
/* RF config */
|
/* RF config */
|
||||||
int rtl8188e_PHY_ConfigRFWithParaFile(IN PADAPTER Adapter, IN u8 * pFileName, RF_RADIO_PATH_E eRFPath);
|
int rtl8188e_PHY_ConfigRFWithParaFile(IN PADAPTER Adapter, IN u8 * pFileName, RF_RADIO_PATH_E eRFPath);
|
||||||
int rtl8188e_PHY_ConfigRFWithHeaderFile( IN PADAPTER Adapter,
|
int rtl8188e_PHY_ConfigRFWithHeaderFile( PADAPTER Adapter,
|
||||||
IN RF_RADIO_PATH_E eRFPath);
|
RF_RADIO_PATH_E eRFPath);
|
||||||
|
|
||||||
/* Read initi reg value for tx power setting. */
|
/* Read initi reg value for tx power setting. */
|
||||||
void rtl8192c_PHY_GetHWRegOriginalValue( IN PADAPTER Adapter );
|
void rtl8192c_PHY_GetHWRegOriginalValue( PADAPTER Adapter );
|
||||||
|
|
||||||
//
|
//
|
||||||
// RF Power setting
|
// RF Power setting
|
||||||
//
|
//
|
||||||
//extern bool PHY_SetRFPowerState(IN PADAPTER Adapter,
|
//extern bool PHY_SetRFPowerState( PADAPTER Adapter,
|
||||||
// IN RT_RF_POWER_STATE eRFPowerState);
|
// RT_RF_POWER_STATE eRFPowerState);
|
||||||
|
|
||||||
//
|
//
|
||||||
// BB TX Power R/W
|
// BB TX Power R/W
|
||||||
//
|
//
|
||||||
void PHY_GetTxPowerLevel8188E( IN PADAPTER Adapter,
|
void PHY_GetTxPowerLevel8188E( PADAPTER Adapter,
|
||||||
OUT u32* powerlevel );
|
OUT u32* powerlevel );
|
||||||
void PHY_SetTxPowerLevel8188E( IN PADAPTER Adapter,
|
void PHY_SetTxPowerLevel8188E( PADAPTER Adapter,
|
||||||
IN u8 channel );
|
u8 channel );
|
||||||
bool PHY_UpdateTxPowerDbm8188E( IN PADAPTER Adapter,
|
bool PHY_UpdateTxPowerDbm8188E( PADAPTER Adapter,
|
||||||
IN int powerInDbm );
|
int powerInDbm );
|
||||||
|
|
||||||
//
|
//
|
||||||
void
|
void
|
||||||
PHY_ScanOperationBackup8188E(IN PADAPTER Adapter,
|
PHY_ScanOperationBackup8188E( PADAPTER Adapter,
|
||||||
IN u8 Operation );
|
u8 Operation );
|
||||||
|
|
||||||
//
|
//
|
||||||
// Switch bandwidth for 8192S
|
// Switch bandwidth for 8192S
|
||||||
//
|
//
|
||||||
//extern void PHY_SetBWModeCallback8192C( IN PRT_TIMER pTimer );
|
//extern void PHY_SetBWModeCallback8192C( PRT_TIMER pTimer );
|
||||||
void PHY_SetBWMode8188E( IN PADAPTER pAdapter,
|
void PHY_SetBWMode8188E( PADAPTER pAdapter,
|
||||||
IN HT_CHANNEL_WIDTH ChnlWidth,
|
HT_CHANNEL_WIDTH ChnlWidth,
|
||||||
IN unsigned char Offset );
|
unsigned char Offset );
|
||||||
|
|
||||||
//
|
//
|
||||||
// Set FW CMD IO for 8192S.
|
// Set FW CMD IO for 8192S.
|
||||||
//
|
//
|
||||||
//extern bool HalSetIO8192C( IN PADAPTER Adapter,
|
//extern bool HalSetIO8192C( PADAPTER Adapter,
|
||||||
// IN IO_TYPE IOType);
|
// IO_TYPE IOType);
|
||||||
|
|
||||||
//
|
//
|
||||||
// Set A2 entry to fw for 8192S
|
// Set A2 entry to fw for 8192S
|
||||||
//
|
//
|
||||||
extern void FillA2Entry8192C( IN PADAPTER Adapter,
|
extern void FillA2Entry8192C( PADAPTER Adapter,
|
||||||
IN u8 index,
|
u8 index,
|
||||||
IN u8* val);
|
u8* val);
|
||||||
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// channel switch related funciton
|
// channel switch related funciton
|
||||||
//
|
//
|
||||||
//extern void PHY_SwChnlCallback8192C( IN PRT_TIMER pTimer );
|
//extern void PHY_SwChnlCallback8192C( PRT_TIMER pTimer );
|
||||||
void PHY_SwChnl8188E( IN PADAPTER pAdapter,
|
void PHY_SwChnl8188E( PADAPTER pAdapter,
|
||||||
IN u8 channel );
|
u8 channel );
|
||||||
// Call after initialization
|
// Call after initialization
|
||||||
void PHY_SwChnlPhy8192C( IN PADAPTER pAdapter,
|
void PHY_SwChnlPhy8192C( PADAPTER pAdapter,
|
||||||
IN u8 channel );
|
u8 channel );
|
||||||
|
|
||||||
void ChkFwCmdIoDone( IN PADAPTER Adapter);
|
void ChkFwCmdIoDone( PADAPTER Adapter);
|
||||||
|
|
||||||
//
|
//
|
||||||
// BB/MAC/RF other monitor API
|
// BB/MAC/RF other monitor API
|
||||||
//
|
//
|
||||||
void PHY_SetMonitorMode8192C(IN PADAPTER pAdapter,
|
void PHY_SetMonitorMode8192C( PADAPTER pAdapter,
|
||||||
IN bool bEnableMonitorMode );
|
bool bEnableMonitorMode );
|
||||||
|
|
||||||
bool PHY_CheckIsLegalRfPath8192C(IN PADAPTER pAdapter,
|
bool PHY_CheckIsLegalRfPath8192C( PADAPTER pAdapter,
|
||||||
IN u32 eRFPath );
|
u32 eRFPath );
|
||||||
|
|
||||||
void PHY_SetRFPathSwitch_8188E(IN PADAPTER pAdapter, IN bool bMain);
|
void PHY_SetRFPathSwitch_8188E( PADAPTER pAdapter, bool bMain);
|
||||||
|
|
||||||
extern void
|
extern void
|
||||||
PHY_SwitchEphyParameter(
|
PHY_SwitchEphyParameter(
|
||||||
IN PADAPTER Adapter
|
PADAPTER Adapter
|
||||||
);
|
);
|
||||||
|
|
||||||
extern void
|
extern void
|
||||||
PHY_EnableHostClkReq(
|
PHY_EnableHostClkReq(
|
||||||
IN PADAPTER Adapter
|
PADAPTER Adapter
|
||||||
);
|
);
|
||||||
|
|
||||||
bool
|
bool
|
||||||
SetAntennaConfig92C(
|
SetAntennaConfig92C(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN u8 DefaultAnt
|
u8 DefaultAnt
|
||||||
);
|
);
|
||||||
|
|
||||||
#ifdef CONFIG_PHY_SETTING_WITH_ODM
|
#ifdef CONFIG_PHY_SETTING_WITH_ODM
|
||||||
void
|
void
|
||||||
storePwrIndexDiffRateOffset(
|
storePwrIndexDiffRateOffset(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN u32 RegAddr,
|
u32 RegAddr,
|
||||||
IN u32 BitMask,
|
u32 BitMask,
|
||||||
IN u32 Data
|
u32 Data
|
||||||
);
|
);
|
||||||
#endif //CONFIG_PHY_SETTING_WITH_ODM
|
#endif //CONFIG_PHY_SETTING_WITH_ODM
|
||||||
/*--------------------------Exported Function prototype---------------------*/
|
/*--------------------------Exported Function prototype---------------------*/
|
||||||
|
|
|
@ -42,7 +42,7 @@ Major Change History:
|
||||||
|
|
||||||
void
|
void
|
||||||
ODM_RASupport_Init(
|
ODM_RASupport_Init(
|
||||||
IN PDM_ODM_T pDM_Odm
|
PDM_ODM_T pDM_Odm
|
||||||
);
|
);
|
||||||
|
|
||||||
int
|
int
|
||||||
|
@ -52,26 +52,26 @@ ODM_RAInfo_Init_all(
|
||||||
|
|
||||||
int
|
int
|
||||||
ODM_RAInfo_Init(
|
ODM_RAInfo_Init(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN u1Byte MacID
|
u1Byte MacID
|
||||||
);
|
);
|
||||||
|
|
||||||
u1Byte
|
u1Byte
|
||||||
ODM_RA_GetShortGI_8188E(
|
ODM_RA_GetShortGI_8188E(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN u1Byte MacID
|
u1Byte MacID
|
||||||
);
|
);
|
||||||
|
|
||||||
u1Byte
|
u1Byte
|
||||||
ODM_RA_GetDecisionRate_8188E(
|
ODM_RA_GetDecisionRate_8188E(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN u1Byte MacID
|
u1Byte MacID
|
||||||
);
|
);
|
||||||
|
|
||||||
u1Byte
|
u1Byte
|
||||||
ODM_RA_GetHwPwrStatus_8188E(
|
ODM_RA_GetHwPwrStatus_8188E(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN u1Byte MacID
|
u1Byte MacID
|
||||||
);
|
);
|
||||||
void
|
void
|
||||||
ODM_RA_UpdateRateInfo_8188E(
|
ODM_RA_UpdateRateInfo_8188E(
|
||||||
|
@ -84,24 +84,24 @@ ODM_RA_UpdateRateInfo_8188E(
|
||||||
|
|
||||||
void
|
void
|
||||||
ODM_RA_SetRSSI_8188E(
|
ODM_RA_SetRSSI_8188E(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN u1Byte MacID,
|
u1Byte MacID,
|
||||||
IN u1Byte Rssi
|
u1Byte Rssi
|
||||||
);
|
);
|
||||||
|
|
||||||
void
|
void
|
||||||
ODM_RA_TxRPT2Handle_8188E(
|
ODM_RA_TxRPT2Handle_8188E(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN pu1Byte TxRPT_Buf,
|
pu1Byte TxRPT_Buf,
|
||||||
IN u2Byte TxRPT_Len,
|
u2Byte TxRPT_Len,
|
||||||
IN u4Byte MacIDValidEntry0,
|
u4Byte MacIDValidEntry0,
|
||||||
IN u4Byte MacIDValidEntry1
|
u4Byte MacIDValidEntry1
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
ODM_RA_Set_TxRPT_Time(
|
ODM_RA_Set_TxRPT_Time(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN u2Byte minRptTime
|
u2Byte minRptTime
|
||||||
);
|
);
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -250,133 +250,133 @@ typedef struct _R_ANTENNA_SELECT_CCK{
|
||||||
//
|
//
|
||||||
// BB and RF register read/write
|
// BB and RF register read/write
|
||||||
//
|
//
|
||||||
u32 rtl8192c_PHY_QueryBBReg( IN PADAPTER Adapter,
|
u32 rtl8192c_PHY_QueryBBReg( PADAPTER Adapter,
|
||||||
IN u32 RegAddr,
|
u32 RegAddr,
|
||||||
IN u32 BitMask );
|
u32 BitMask );
|
||||||
void rtl8192c_PHY_SetBBReg( IN PADAPTER Adapter,
|
void rtl8192c_PHY_SetBBReg( PADAPTER Adapter,
|
||||||
IN u32 RegAddr,
|
u32 RegAddr,
|
||||||
IN u32 BitMask,
|
u32 BitMask,
|
||||||
IN u32 Data );
|
u32 Data );
|
||||||
u32 rtl8192c_PHY_QueryRFReg( IN PADAPTER Adapter,
|
u32 rtl8192c_PHY_QueryRFReg( PADAPTER Adapter,
|
||||||
IN RF_RADIO_PATH_E eRFPath,
|
RF_RADIO_PATH_E eRFPath,
|
||||||
IN u32 RegAddr,
|
u32 RegAddr,
|
||||||
IN u32 BitMask );
|
u32 BitMask );
|
||||||
void rtl8192c_PHY_SetRFReg( IN PADAPTER Adapter,
|
void rtl8192c_PHY_SetRFReg( PADAPTER Adapter,
|
||||||
IN RF_RADIO_PATH_E eRFPath,
|
RF_RADIO_PATH_E eRFPath,
|
||||||
IN u32 RegAddr,
|
u32 RegAddr,
|
||||||
IN u32 BitMask,
|
u32 BitMask,
|
||||||
IN u32 Data );
|
u32 Data );
|
||||||
|
|
||||||
//
|
//
|
||||||
// Initialization related function
|
// Initialization related function
|
||||||
//
|
//
|
||||||
/* MAC/BB/RF HAL config */
|
/* MAC/BB/RF HAL config */
|
||||||
int PHY_MACConfig8192C( IN PADAPTER Adapter );
|
int PHY_MACConfig8192C( PADAPTER Adapter );
|
||||||
int PHY_BBConfig8192C( IN PADAPTER Adapter );
|
int PHY_BBConfig8192C( PADAPTER Adapter );
|
||||||
int PHY_RFConfig8192C( IN PADAPTER Adapter );
|
int PHY_RFConfig8192C( PADAPTER Adapter );
|
||||||
/* RF config */
|
/* RF config */
|
||||||
int rtl8192c_PHY_ConfigRFWithParaFile( IN PADAPTER Adapter,
|
int rtl8192c_PHY_ConfigRFWithParaFile( PADAPTER Adapter,
|
||||||
IN u8* pFileName,
|
u8* pFileName,
|
||||||
IN RF_RADIO_PATH_E eRFPath);
|
RF_RADIO_PATH_E eRFPath);
|
||||||
int rtl8192c_PHY_ConfigRFWithHeaderFile( IN PADAPTER Adapter,
|
int rtl8192c_PHY_ConfigRFWithHeaderFile( PADAPTER Adapter,
|
||||||
IN RF_RADIO_PATH_E eRFPath);
|
RF_RADIO_PATH_E eRFPath);
|
||||||
|
|
||||||
/* BB/RF readback check for making sure init OK */
|
/* BB/RF readback check for making sure init OK */
|
||||||
int rtl8192c_PHY_CheckBBAndRFOK( IN PADAPTER Adapter,
|
int rtl8192c_PHY_CheckBBAndRFOK( PADAPTER Adapter,
|
||||||
IN HW90_BLOCK_E CheckBlock,
|
HW90_BLOCK_E CheckBlock,
|
||||||
IN RF_RADIO_PATH_E eRFPath );
|
RF_RADIO_PATH_E eRFPath );
|
||||||
/* Read initi reg value for tx power setting. */
|
/* Read initi reg value for tx power setting. */
|
||||||
void rtl8192c_PHY_GetHWRegOriginalValue( IN PADAPTER Adapter );
|
void rtl8192c_PHY_GetHWRegOriginalValue( PADAPTER Adapter );
|
||||||
|
|
||||||
//
|
//
|
||||||
// RF Power setting
|
// RF Power setting
|
||||||
//
|
//
|
||||||
//extern bool PHY_SetRFPowerState(IN PADAPTER Adapter,
|
//extern bool PHY_SetRFPowerState( PADAPTER Adapter,
|
||||||
// IN RT_RF_POWER_STATE eRFPowerState);
|
// RT_RF_POWER_STATE eRFPowerState);
|
||||||
|
|
||||||
//
|
//
|
||||||
// BB TX Power R/W
|
// BB TX Power R/W
|
||||||
//
|
//
|
||||||
void PHY_GetTxPowerLevel8192C( IN PADAPTER Adapter,
|
void PHY_GetTxPowerLevel8192C( PADAPTER Adapter,
|
||||||
OUT u32* powerlevel );
|
OUT u32* powerlevel );
|
||||||
void PHY_SetTxPowerLevel8192C( IN PADAPTER Adapter,
|
void PHY_SetTxPowerLevel8192C( PADAPTER Adapter,
|
||||||
IN u8 channel );
|
u8 channel );
|
||||||
bool PHY_UpdateTxPowerDbm8192C( IN PADAPTER Adapter,
|
bool PHY_UpdateTxPowerDbm8192C( PADAPTER Adapter,
|
||||||
IN int powerInDbm );
|
int powerInDbm );
|
||||||
|
|
||||||
//
|
//
|
||||||
void
|
void
|
||||||
PHY_ScanOperationBackup8192C(IN PADAPTER Adapter,
|
PHY_ScanOperationBackup8192C( PADAPTER Adapter,
|
||||||
IN u8 Operation );
|
u8 Operation );
|
||||||
|
|
||||||
//
|
//
|
||||||
// Switch bandwidth for 8192S
|
// Switch bandwidth for 8192S
|
||||||
//
|
//
|
||||||
//extern void PHY_SetBWModeCallback8192C( IN PRT_TIMER pTimer );
|
//extern void PHY_SetBWModeCallback8192C( PRT_TIMER pTimer );
|
||||||
void PHY_SetBWMode8192C( IN PADAPTER pAdapter,
|
void PHY_SetBWMode8192C( PADAPTER pAdapter,
|
||||||
IN HT_CHANNEL_WIDTH ChnlWidth,
|
HT_CHANNEL_WIDTH ChnlWidth,
|
||||||
IN unsigned char Offset );
|
unsigned char Offset );
|
||||||
|
|
||||||
//
|
//
|
||||||
// Set FW CMD IO for 8192S.
|
// Set FW CMD IO for 8192S.
|
||||||
//
|
//
|
||||||
//extern bool HalSetIO8192C( IN PADAPTER Adapter,
|
//extern bool HalSetIO8192C( PADAPTER Adapter,
|
||||||
// IN IO_TYPE IOType);
|
// IO_TYPE IOType);
|
||||||
|
|
||||||
//
|
//
|
||||||
// Set A2 entry to fw for 8192S
|
// Set A2 entry to fw for 8192S
|
||||||
//
|
//
|
||||||
extern void FillA2Entry8192C( IN PADAPTER Adapter,
|
extern void FillA2Entry8192C( PADAPTER Adapter,
|
||||||
IN u8 index,
|
u8 index,
|
||||||
IN u8* val);
|
u8* val);
|
||||||
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// channel switch related funciton
|
// channel switch related funciton
|
||||||
//
|
//
|
||||||
//extern void PHY_SwChnlCallback8192C( IN PRT_TIMER pTimer );
|
//extern void PHY_SwChnlCallback8192C( PRT_TIMER pTimer );
|
||||||
void PHY_SwChnl8192C( IN PADAPTER pAdapter,
|
void PHY_SwChnl8192C( PADAPTER pAdapter,
|
||||||
IN u8 channel );
|
u8 channel );
|
||||||
// Call after initialization
|
// Call after initialization
|
||||||
void PHY_SwChnlPhy8192C( IN PADAPTER pAdapter,
|
void PHY_SwChnlPhy8192C( PADAPTER pAdapter,
|
||||||
IN u8 channel );
|
u8 channel );
|
||||||
|
|
||||||
void ChkFwCmdIoDone( IN PADAPTER Adapter);
|
void ChkFwCmdIoDone( PADAPTER Adapter);
|
||||||
|
|
||||||
//
|
//
|
||||||
// BB/MAC/RF other monitor API
|
// BB/MAC/RF other monitor API
|
||||||
//
|
//
|
||||||
void PHY_SetMonitorMode8192C(IN PADAPTER pAdapter,
|
void PHY_SetMonitorMode8192C( PADAPTER pAdapter,
|
||||||
IN bool bEnableMonitorMode );
|
bool bEnableMonitorMode );
|
||||||
|
|
||||||
bool PHY_CheckIsLegalRfPath8192C(IN PADAPTER pAdapter,
|
bool PHY_CheckIsLegalRfPath8192C( PADAPTER pAdapter,
|
||||||
IN u32 eRFPath );
|
u32 eRFPath );
|
||||||
|
|
||||||
|
|
||||||
void rtl8192c_PHY_SetRFPathSwitch(IN PADAPTER pAdapter, IN bool bMain);
|
void rtl8192c_PHY_SetRFPathSwitch( PADAPTER pAdapter, bool bMain);
|
||||||
|
|
||||||
//
|
//
|
||||||
// Modify the value of the hw register when beacon interval be changed.
|
// Modify the value of the hw register when beacon interval be changed.
|
||||||
//
|
//
|
||||||
void
|
void
|
||||||
rtl8192c_PHY_SetBeaconHwReg( IN PADAPTER Adapter,
|
rtl8192c_PHY_SetBeaconHwReg( PADAPTER Adapter,
|
||||||
IN u16 BeaconInterval );
|
u16 BeaconInterval );
|
||||||
|
|
||||||
|
|
||||||
extern void
|
extern void
|
||||||
PHY_SwitchEphyParameter(
|
PHY_SwitchEphyParameter(
|
||||||
IN PADAPTER Adapter
|
PADAPTER Adapter
|
||||||
);
|
);
|
||||||
|
|
||||||
extern void
|
extern void
|
||||||
PHY_EnableHostClkReq(
|
PHY_EnableHostClkReq(
|
||||||
IN PADAPTER Adapter
|
PADAPTER Adapter
|
||||||
);
|
);
|
||||||
|
|
||||||
bool
|
bool
|
||||||
SetAntennaConfig92C(
|
SetAntennaConfig92C(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN u8 DefaultAnt
|
u8 DefaultAnt
|
||||||
);
|
);
|
||||||
|
|
||||||
#ifdef RTL8192C_RECONFIG_TO_1T1R
|
#ifdef RTL8192C_RECONFIG_TO_1T1R
|
||||||
|
|
|
@ -299,136 +299,136 @@ typedef struct _R_ANTENNA_SELECT_CCK{
|
||||||
//
|
//
|
||||||
// BB and RF register read/write
|
// BB and RF register read/write
|
||||||
//
|
//
|
||||||
void rtl8192d_PHY_SetBBReg1Byte( IN PADAPTER Adapter,
|
void rtl8192d_PHY_SetBBReg1Byte( PADAPTER Adapter,
|
||||||
IN u32 RegAddr,
|
u32 RegAddr,
|
||||||
IN u32 BitMask,
|
u32 BitMask,
|
||||||
IN u32 Data );
|
u32 Data );
|
||||||
u32 rtl8192d_PHY_QueryBBReg( IN PADAPTER Adapter,
|
u32 rtl8192d_PHY_QueryBBReg( PADAPTER Adapter,
|
||||||
IN u32 RegAddr,
|
u32 RegAddr,
|
||||||
IN u32 BitMask );
|
u32 BitMask );
|
||||||
void rtl8192d_PHY_SetBBReg( IN PADAPTER Adapter,
|
void rtl8192d_PHY_SetBBReg( PADAPTER Adapter,
|
||||||
IN u32 RegAddr,
|
u32 RegAddr,
|
||||||
IN u32 BitMask,
|
u32 BitMask,
|
||||||
IN u32 Data );
|
u32 Data );
|
||||||
u32 rtl8192d_PHY_QueryRFReg( IN PADAPTER Adapter,
|
u32 rtl8192d_PHY_QueryRFReg( PADAPTER Adapter,
|
||||||
IN RF_RADIO_PATH_E eRFPath,
|
RF_RADIO_PATH_E eRFPath,
|
||||||
IN u32 RegAddr,
|
u32 RegAddr,
|
||||||
IN u32 BitMask );
|
u32 BitMask );
|
||||||
void rtl8192d_PHY_SetRFReg( IN PADAPTER Adapter,
|
void rtl8192d_PHY_SetRFReg( PADAPTER Adapter,
|
||||||
IN RF_RADIO_PATH_E eRFPath,
|
RF_RADIO_PATH_E eRFPath,
|
||||||
IN u32 RegAddr,
|
u32 RegAddr,
|
||||||
IN u32 BitMask,
|
u32 BitMask,
|
||||||
IN u32 Data );
|
u32 Data );
|
||||||
|
|
||||||
//
|
//
|
||||||
// Initialization related function
|
// Initialization related function
|
||||||
//
|
//
|
||||||
/* MAC/BB/RF HAL config */
|
/* MAC/BB/RF HAL config */
|
||||||
extern int PHY_MACConfig8192D( IN PADAPTER Adapter );
|
extern int PHY_MACConfig8192D( PADAPTER Adapter );
|
||||||
extern int PHY_BBConfig8192D( IN PADAPTER Adapter );
|
extern int PHY_BBConfig8192D( PADAPTER Adapter );
|
||||||
extern int PHY_RFConfig8192D( IN PADAPTER Adapter );
|
extern int PHY_RFConfig8192D( PADAPTER Adapter );
|
||||||
/* RF config */
|
/* RF config */
|
||||||
int rtl8192d_PHY_ConfigRFWithParaFile( IN PADAPTER Adapter,
|
int rtl8192d_PHY_ConfigRFWithParaFile( PADAPTER Adapter,
|
||||||
IN u8* pFileName,
|
u8* pFileName,
|
||||||
IN RF_RADIO_PATH_E eRFPath);
|
RF_RADIO_PATH_E eRFPath);
|
||||||
int rtl8192d_PHY_ConfigRFWithHeaderFile( IN PADAPTER Adapter,
|
int rtl8192d_PHY_ConfigRFWithHeaderFile( PADAPTER Adapter,
|
||||||
IN RF_CONTENT Content,
|
RF_CONTENT Content,
|
||||||
IN RF_RADIO_PATH_E eRFPath);
|
RF_RADIO_PATH_E eRFPath);
|
||||||
/* BB/RF readback check for making sure init OK */
|
/* BB/RF readback check for making sure init OK */
|
||||||
int rtl8192d_PHY_CheckBBAndRFOK( IN PADAPTER Adapter,
|
int rtl8192d_PHY_CheckBBAndRFOK( PADAPTER Adapter,
|
||||||
IN HW90_BLOCK_E CheckBlock,
|
HW90_BLOCK_E CheckBlock,
|
||||||
IN RF_RADIO_PATH_E eRFPath );
|
RF_RADIO_PATH_E eRFPath );
|
||||||
/* Read initi reg value for tx power setting. */
|
/* Read initi reg value for tx power setting. */
|
||||||
void rtl8192d_PHY_GetHWRegOriginalValue( IN PADAPTER Adapter );
|
void rtl8192d_PHY_GetHWRegOriginalValue( PADAPTER Adapter );
|
||||||
|
|
||||||
//
|
//
|
||||||
// RF Power setting
|
// RF Power setting
|
||||||
//
|
//
|
||||||
//extern bool PHY_SetRFPowerState(IN PADAPTER Adapter,
|
//extern bool PHY_SetRFPowerState( PADAPTER Adapter,
|
||||||
// IN RT_RF_POWER_STATE eRFPowerState);
|
// RT_RF_POWER_STATE eRFPowerState);
|
||||||
|
|
||||||
//
|
//
|
||||||
// BB TX Power R/W
|
// BB TX Power R/W
|
||||||
//
|
//
|
||||||
void PHY_GetTxPowerLevel8192D( IN PADAPTER Adapter,
|
void PHY_GetTxPowerLevel8192D( PADAPTER Adapter,
|
||||||
OUT u32* powerlevel );
|
OUT u32* powerlevel );
|
||||||
void PHY_SetTxPowerLevel8192D( IN PADAPTER Adapter,
|
void PHY_SetTxPowerLevel8192D( PADAPTER Adapter,
|
||||||
IN u8 channel );
|
u8 channel );
|
||||||
bool PHY_UpdateTxPowerDbm8192D( IN PADAPTER Adapter,
|
bool PHY_UpdateTxPowerDbm8192D( PADAPTER Adapter,
|
||||||
IN int powerInDbm );
|
int powerInDbm );
|
||||||
|
|
||||||
//
|
//
|
||||||
void
|
void
|
||||||
PHY_ScanOperationBackup8192D(IN PADAPTER Adapter,
|
PHY_ScanOperationBackup8192D( PADAPTER Adapter,
|
||||||
IN u8 Operation );
|
u8 Operation );
|
||||||
|
|
||||||
//
|
//
|
||||||
// Switch bandwidth for 8192S
|
// Switch bandwidth for 8192S
|
||||||
//
|
//
|
||||||
//void PHY_SetBWModeCallback8192C( IN PRT_TIMER pTimer );
|
//void PHY_SetBWModeCallback8192C( PRT_TIMER pTimer );
|
||||||
void PHY_SetBWMode8192D( IN PADAPTER pAdapter,
|
void PHY_SetBWMode8192D( PADAPTER pAdapter,
|
||||||
IN HT_CHANNEL_WIDTH ChnlWidth,
|
HT_CHANNEL_WIDTH ChnlWidth,
|
||||||
IN unsigned char Offset );
|
unsigned char Offset );
|
||||||
|
|
||||||
//
|
//
|
||||||
// Set FW CMD IO for 8192S.
|
// Set FW CMD IO for 8192S.
|
||||||
//
|
//
|
||||||
//extern bool HalSetIO8192C( IN PADAPTER Adapter,
|
//extern bool HalSetIO8192C( PADAPTER Adapter,
|
||||||
// IN IO_TYPE IOType);
|
// IO_TYPE IOType);
|
||||||
|
|
||||||
//
|
//
|
||||||
// Set A2 entry to fw for 8192S
|
// Set A2 entry to fw for 8192S
|
||||||
//
|
//
|
||||||
extern void FillA2Entry8192C( IN PADAPTER Adapter,
|
extern void FillA2Entry8192C( PADAPTER Adapter,
|
||||||
IN u8 index,
|
u8 index,
|
||||||
IN u8* val);
|
u8* val);
|
||||||
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// channel switch related funciton
|
// channel switch related funciton
|
||||||
//
|
//
|
||||||
//extern void PHY_SwChnlCallback8192C( IN PRT_TIMER pTimer );
|
//extern void PHY_SwChnlCallback8192C( PRT_TIMER pTimer );
|
||||||
void PHY_SwChnl8192D( IN PADAPTER pAdapter,
|
void PHY_SwChnl8192D( PADAPTER pAdapter,
|
||||||
IN u8 channel );
|
u8 channel );
|
||||||
// Call after initialization
|
// Call after initialization
|
||||||
void PHY_SwChnlPhy8192D( IN PADAPTER pAdapter,
|
void PHY_SwChnlPhy8192D( PADAPTER pAdapter,
|
||||||
IN u8 channel );
|
u8 channel );
|
||||||
|
|
||||||
extern void ChkFwCmdIoDone( IN PADAPTER Adapter);
|
extern void ChkFwCmdIoDone( PADAPTER Adapter);
|
||||||
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// BB/MAC/RF other monitor API
|
// BB/MAC/RF other monitor API
|
||||||
//
|
//
|
||||||
void PHY_SetMonitorMode8192D(IN PADAPTER pAdapter,
|
void PHY_SetMonitorMode8192D( PADAPTER pAdapter,
|
||||||
IN bool bEnableMonitorMode );
|
bool bEnableMonitorMode );
|
||||||
|
|
||||||
bool PHY_CheckIsLegalRfPath8192D(IN PADAPTER pAdapter,
|
bool PHY_CheckIsLegalRfPath8192D( PADAPTER pAdapter,
|
||||||
IN u32 eRFPath );
|
u32 eRFPath );
|
||||||
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// Modify the value of the hw register when beacon interval be changed.
|
// Modify the value of the hw register when beacon interval be changed.
|
||||||
//
|
//
|
||||||
void
|
void
|
||||||
rtl8192d_PHY_SetBeaconHwReg( IN PADAPTER Adapter,
|
rtl8192d_PHY_SetBeaconHwReg( PADAPTER Adapter,
|
||||||
IN u16 BeaconInterval );
|
u16 BeaconInterval );
|
||||||
|
|
||||||
|
|
||||||
extern void
|
extern void
|
||||||
PHY_SwitchEphyParameter(
|
PHY_SwitchEphyParameter(
|
||||||
IN PADAPTER Adapter
|
PADAPTER Adapter
|
||||||
);
|
);
|
||||||
|
|
||||||
extern void
|
extern void
|
||||||
PHY_EnableHostClkReq(
|
PHY_EnableHostClkReq(
|
||||||
IN PADAPTER Adapter
|
PADAPTER Adapter
|
||||||
);
|
);
|
||||||
|
|
||||||
bool
|
bool
|
||||||
SetAntennaConfig92C(
|
SetAntennaConfig92C(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN u8 DefaultAnt
|
u8 DefaultAnt
|
||||||
);
|
);
|
||||||
|
|
||||||
void
|
void
|
||||||
|
@ -456,21 +456,21 @@ void PHY_ConfigMacCoexist_RFPage92D(
|
||||||
|
|
||||||
void
|
void
|
||||||
rtl8192d_PHY_InitRxSetting(
|
rtl8192d_PHY_InitRxSetting(
|
||||||
IN PADAPTER Adapter
|
PADAPTER Adapter
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
rtl8192d_PHY_SetRFPathSwitch(IN PADAPTER pAdapter, IN bool bMain);
|
rtl8192d_PHY_SetRFPathSwitch( PADAPTER pAdapter, bool bMain);
|
||||||
|
|
||||||
void
|
void
|
||||||
HalChangeCCKStatus8192D(
|
HalChangeCCKStatus8192D(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN bool bCCKDisable
|
bool bCCKDisable
|
||||||
);
|
);
|
||||||
|
|
||||||
void
|
void
|
||||||
PHY_InitPABias92D(IN PADAPTER Adapter);
|
PHY_InitPABias92D( PADAPTER Adapter);
|
||||||
|
|
||||||
/*--------------------------Exported Function prototype---------------------*/
|
/*--------------------------Exported Function prototype---------------------*/
|
||||||
|
|
||||||
|
|
|
@ -22,8 +22,8 @@
|
||||||
|
|
||||||
#include <Hal8192CPhyCfg.h>
|
#include <Hal8192CPhyCfg.h>
|
||||||
/* MAC/BB/RF HAL config */
|
/* MAC/BB/RF HAL config */
|
||||||
int PHY_BBConfig8723A( IN PADAPTER Adapter );
|
int PHY_BBConfig8723A( PADAPTER Adapter );
|
||||||
int PHY_RFConfig8723A( IN PADAPTER Adapter );
|
int PHY_RFConfig8723A( PADAPTER Adapter );
|
||||||
s32 PHY_MACConfig8723A(PADAPTER padapter);
|
s32 PHY_MACConfig8723A(PADAPTER padapter);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -29,28 +29,28 @@
|
||||||
// BB/MAC/RF other monitor API
|
// BB/MAC/RF other monitor API
|
||||||
//
|
//
|
||||||
|
|
||||||
void PHY_SetMonitorMode8192C(IN PADAPTER pAdapter,
|
void PHY_SetMonitorMode8192C( PADAPTER pAdapter,
|
||||||
IN bool bEnableMonitorMode );
|
bool bEnableMonitorMode );
|
||||||
|
|
||||||
//
|
//
|
||||||
// IQ calibrate
|
// IQ calibrate
|
||||||
//
|
//
|
||||||
void
|
void
|
||||||
PHY_IQCalibrate_8192C( IN PADAPTER pAdapter,
|
PHY_IQCalibrate_8192C( PADAPTER pAdapter,
|
||||||
IN bool bReCovery);
|
bool bReCovery);
|
||||||
|
|
||||||
//
|
//
|
||||||
// LC calibrate
|
// LC calibrate
|
||||||
//
|
//
|
||||||
void
|
void
|
||||||
PHY_LCCalibrate_8192C( IN PADAPTER pAdapter);
|
PHY_LCCalibrate_8192C( PADAPTER pAdapter);
|
||||||
|
|
||||||
//
|
//
|
||||||
// AP calibrate
|
// AP calibrate
|
||||||
//
|
//
|
||||||
void
|
void
|
||||||
PHY_APCalibrate_8192C( IN PADAPTER pAdapter,
|
PHY_APCalibrate_8192C( PADAPTER pAdapter,
|
||||||
IN s1Byte delta);
|
s1Byte delta);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define ODM_TARGET_CHNL_NUM_2G_5G 59
|
#define ODM_TARGET_CHNL_NUM_2G_5G 59
|
||||||
|
|
|
@ -55,7 +55,7 @@ PHY_IQCalibrate_8188E(
|
||||||
#else
|
#else
|
||||||
IN PADAPTER Adapter,
|
IN PADAPTER Adapter,
|
||||||
#endif
|
#endif
|
||||||
IN bool bReCovery);
|
bool bReCovery);
|
||||||
|
|
||||||
|
|
||||||
//
|
//
|
||||||
|
@ -66,7 +66,7 @@ PHY_LCCalibrate_8188E(
|
||||||
#if (DM_ODM_SUPPORT_TYPE & ODM_AP)
|
#if (DM_ODM_SUPPORT_TYPE & ODM_AP)
|
||||||
IN PDM_ODM_T pDM_Odm
|
IN PDM_ODM_T pDM_Odm
|
||||||
#else
|
#else
|
||||||
IN PADAPTER pAdapter
|
PADAPTER pAdapter
|
||||||
#endif
|
#endif
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -78,11 +78,11 @@ PHY_APCalibrate_8188E(
|
||||||
#if (DM_ODM_SUPPORT_TYPE & ODM_AP)
|
#if (DM_ODM_SUPPORT_TYPE & ODM_AP)
|
||||||
IN PDM_ODM_T pDM_Odm,
|
IN PDM_ODM_T pDM_Odm,
|
||||||
#else
|
#else
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
#endif
|
#endif
|
||||||
IN s1Byte delta);
|
s1Byte delta);
|
||||||
void
|
void
|
||||||
PHY_DigitalPredistortion_8188E( IN PADAPTER pAdapter);
|
PHY_DigitalPredistortion_8188E( PADAPTER pAdapter);
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
|
@ -90,11 +90,11 @@ _PHY_SaveADDARegisters(
|
||||||
#if (DM_ODM_SUPPORT_TYPE & ODM_AP)
|
#if (DM_ODM_SUPPORT_TYPE & ODM_AP)
|
||||||
IN PDM_ODM_T pDM_Odm,
|
IN PDM_ODM_T pDM_Odm,
|
||||||
#else
|
#else
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
#endif
|
#endif
|
||||||
IN pu4Byte ADDAReg,
|
pu4Byte ADDAReg,
|
||||||
IN pu4Byte ADDABackup,
|
pu4Byte ADDABackup,
|
||||||
IN u4Byte RegisterNum
|
u4Byte RegisterNum
|
||||||
);
|
);
|
||||||
|
|
||||||
void
|
void
|
||||||
|
@ -102,11 +102,11 @@ _PHY_PathADDAOn(
|
||||||
#if (DM_ODM_SUPPORT_TYPE & ODM_AP)
|
#if (DM_ODM_SUPPORT_TYPE & ODM_AP)
|
||||||
IN PDM_ODM_T pDM_Odm,
|
IN PDM_ODM_T pDM_Odm,
|
||||||
#else
|
#else
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
#endif
|
#endif
|
||||||
IN pu4Byte ADDAReg,
|
pu4Byte ADDAReg,
|
||||||
IN bool isPathAOn,
|
bool isPathAOn,
|
||||||
IN bool is2T
|
bool is2T
|
||||||
);
|
);
|
||||||
|
|
||||||
void
|
void
|
||||||
|
@ -114,10 +114,10 @@ _PHY_MACSettingCalibration(
|
||||||
#if (DM_ODM_SUPPORT_TYPE & ODM_AP)
|
#if (DM_ODM_SUPPORT_TYPE & ODM_AP)
|
||||||
IN PDM_ODM_T pDM_Odm,
|
IN PDM_ODM_T pDM_Odm,
|
||||||
#else
|
#else
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
#endif
|
#endif
|
||||||
IN pu4Byte MACReg,
|
pu4Byte MACReg,
|
||||||
IN pu4Byte MACBackup
|
pu4Byte MACBackup
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
|
@ -126,7 +126,7 @@ _PHY_PathAStandBy(
|
||||||
#if (DM_ODM_SUPPORT_TYPE & ODM_AP)
|
#if (DM_ODM_SUPPORT_TYPE & ODM_AP)
|
||||||
IN PDM_ODM_T pDM_Odm
|
IN PDM_ODM_T pDM_Odm
|
||||||
#else
|
#else
|
||||||
IN PADAPTER pAdapter
|
PADAPTER pAdapter
|
||||||
#endif
|
#endif
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
@ -140,9 +140,9 @@
|
||||||
#define DESC_RATEMCS15_SG 0x1c
|
#define DESC_RATEMCS15_SG 0x1c
|
||||||
#define DESC_RATEMCS32 0x20
|
#define DESC_RATEMCS32 0x20
|
||||||
|
|
||||||
#define REG_P2P_CTWIN 0x0572 // 1 Byte long (in unit of TU)
|
#define REG_P2P_CTWIN 0x0572 // 1 Byte long (in unit of TU)
|
||||||
#define REG_NOA_DESC_SEL 0x05CF
|
#define REG_NOA_DESC_SEL 0x05CF
|
||||||
#define REG_NOA_DESC_DURATION 0x05E0
|
#define REG_NOA_DESC_DURATION 0x05E0
|
||||||
#define REG_NOA_DESC_INTERVAL 0x05E4
|
#define REG_NOA_DESC_INTERVAL 0x05E4
|
||||||
#define REG_NOA_DESC_START 0x05E8
|
#define REG_NOA_DESC_START 0x05E8
|
||||||
#define REG_NOA_DESC_COUNT 0x05EC
|
#define REG_NOA_DESC_COUNT 0x05EC
|
||||||
|
@ -153,11 +153,11 @@ void dump_chip_info(HAL_VERSION ChipVersion);
|
||||||
|
|
||||||
u8 //return the final channel plan decision
|
u8 //return the final channel plan decision
|
||||||
hal_com_get_channel_plan(
|
hal_com_get_channel_plan(
|
||||||
IN PADAPTER padapter,
|
PADAPTER padapter,
|
||||||
IN u8 hw_channel_plan, //channel plan from HW (efuse/eeprom)
|
u8 hw_channel_plan, //channel plan from HW (efuse/eeprom)
|
||||||
IN u8 sw_channel_plan, //channel plan from SW (registry/module param)
|
u8 sw_channel_plan, //channel plan from SW (registry/module param)
|
||||||
IN u8 def_channel_plan, //channel plan used when the former two is invalid
|
u8 def_channel_plan, //channel plan used when the former two is invalid
|
||||||
IN bool AutoLoadFail
|
bool AutoLoadFail
|
||||||
);
|
);
|
||||||
|
|
||||||
u8 MRateToHwRate(u8 rate);
|
u8 MRateToHwRate(u8 rate);
|
||||||
|
@ -169,8 +169,8 @@ void HalSetBrateCfg(
|
||||||
|
|
||||||
bool
|
bool
|
||||||
Hal_MappingOutPipe(
|
Hal_MappingOutPipe(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN u8 NumOutPipe
|
u8 NumOutPipe
|
||||||
);
|
);
|
||||||
|
|
||||||
void hal_init_macaddr(_adapter *adapter);
|
void hal_init_macaddr(_adapter *adapter);
|
||||||
|
|
|
@ -206,7 +206,7 @@
|
||||||
#define OID_CE_USB_READ_REGISTRY 0xFF0111C2
|
#define OID_CE_USB_READ_REGISTRY 0xFF0111C2
|
||||||
|
|
||||||
|
|
||||||
#define OID_RT_PRO_SET_INITIAL_GAIN 0xFF0111C3
|
#define OID_RT_PRO_SET_INITIAL_GA 0xFF0111C3
|
||||||
#define OID_RT_PRO_SET_BB_RF_STANDBY_MODE 0xFF0111C4
|
#define OID_RT_PRO_SET_BB_RF_STANDBY_MODE 0xFF0111C4
|
||||||
#define OID_RT_PRO_SET_BB_RF_SHUTDOWN_MODE 0xFF0111C5
|
#define OID_RT_PRO_SET_BB_RF_SHUTDOWN_MODE 0xFF0111C5
|
||||||
#define OID_RT_PRO_SET_TX_CHARGE_PUMP 0xFF0111C6
|
#define OID_RT_PRO_SET_TX_CHARGE_PUMP 0xFF0111C6
|
||||||
|
|
152
include/odm.h
152
include/odm.h
|
@ -75,7 +75,7 @@
|
||||||
#define AFH_PSD 1 //0:normal PSD scan, 1: only do 20 pts PSD
|
#define AFH_PSD 1 //0:normal PSD scan, 1: only do 20 pts PSD
|
||||||
#define MODE_40M 0 //0:20M, 1:40M
|
#define MODE_40M 0 //0:20M, 1:40M
|
||||||
#define PSD_TH2 3
|
#define PSD_TH2 3
|
||||||
#define PSD_CHMIN 20 // Minimum channel number for BT AFH
|
#define PSD_CHM 20 // Minimum channel number for BT AFH
|
||||||
#define SIR_STEP_SIZE 3
|
#define SIR_STEP_SIZE 3
|
||||||
#define Smooth_Size_1 5
|
#define Smooth_Size_1 5
|
||||||
#define Smooth_TH_1 3
|
#define Smooth_TH_1 3
|
||||||
|
@ -627,7 +627,7 @@ typedef enum _ODM_Support_Ability_Definition
|
||||||
ODM_BB_CCK_PD = BIT5,
|
ODM_BB_CCK_PD = BIT5,
|
||||||
ODM_BB_ANT_DIV = BIT6,
|
ODM_BB_ANT_DIV = BIT6,
|
||||||
ODM_BB_PWR_SAVE = BIT7,
|
ODM_BB_PWR_SAVE = BIT7,
|
||||||
ODM_BB_PWR_TRAIN = BIT8,
|
ODM_BB_PWR_TRA = BIT8,
|
||||||
ODM_BB_RATE_ADAPTIVE = BIT9,
|
ODM_BB_RATE_ADAPTIVE = BIT9,
|
||||||
ODM_BB_PATH_DIV = BIT10,
|
ODM_BB_PATH_DIV = BIT10,
|
||||||
ODM_BB_PSD = BIT11,
|
ODM_BB_PSD = BIT11,
|
||||||
|
@ -1556,34 +1556,34 @@ extern u1Byte CCKSwingTable_Ch14 [CCK_TABLE_SIZE][8];
|
||||||
#define SWAW_STEP_PEAK 0
|
#define SWAW_STEP_PEAK 0
|
||||||
#define SWAW_STEP_DETERMINE 1
|
#define SWAW_STEP_DETERMINE 1
|
||||||
|
|
||||||
void ODM_Write_DIG(IN PDM_ODM_T pDM_Odm, IN u1Byte CurrentIGI);
|
void ODM_Write_DIG( PDM_ODM_T pDM_Odm, u1Byte CurrentIGI);
|
||||||
void ODM_Write_CCK_CCA_Thres(IN PDM_ODM_T pDM_Odm, IN u1Byte CurCCK_CCAThres);
|
void ODM_Write_CCK_CCA_Thres( PDM_ODM_T pDM_Odm, u1Byte CurCCK_CCAThres);
|
||||||
|
|
||||||
void
|
void
|
||||||
ODM_SetAntenna(
|
ODM_SetAntenna(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN u1Byte Antenna);
|
u1Byte Antenna);
|
||||||
|
|
||||||
|
|
||||||
#define dm_RF_Saving ODM_RF_Saving
|
#define dm_RF_Saving ODM_RF_Saving
|
||||||
void ODM_RF_Saving( IN PDM_ODM_T pDM_Odm,
|
void ODM_RF_Saving( PDM_ODM_T pDM_Odm,
|
||||||
IN u1Byte bForceInNormal );
|
u1Byte bForceInNormal );
|
||||||
|
|
||||||
#define SwAntDivRestAfterLink ODM_SwAntDivRestAfterLink
|
#define SwAntDivRestAfterLink ODM_SwAntDivRestAfterLink
|
||||||
void ODM_SwAntDivRestAfterLink( IN PDM_ODM_T pDM_Odm);
|
void ODM_SwAntDivRestAfterLink( PDM_ODM_T pDM_Odm);
|
||||||
|
|
||||||
#define dm_CheckTXPowerTracking ODM_TXPowerTrackingCheck
|
#define dm_CheckTXPowerTracking ODM_TXPowerTrackingCheck
|
||||||
void
|
void
|
||||||
ODM_TXPowerTrackingCheck(
|
ODM_TXPowerTrackingCheck(
|
||||||
IN PDM_ODM_T pDM_Odm
|
PDM_ODM_T pDM_Odm
|
||||||
);
|
);
|
||||||
|
|
||||||
bool
|
bool
|
||||||
ODM_RAStateCheck(
|
ODM_RAStateCheck(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN s4Byte RSSI,
|
s4Byte RSSI,
|
||||||
IN bool bForceUpdate,
|
bool bForceUpdate,
|
||||||
OUT pu1Byte pRATRState
|
pu1Byte pRATRState
|
||||||
);
|
);
|
||||||
|
|
||||||
#if (DM_ODM_SUPPORT_TYPE & (ODM_MP|ODM_AP|ODM_ADSL))
|
#if (DM_ODM_SUPPORT_TYPE & (ODM_MP|ODM_AP|ODM_ADSL))
|
||||||
|
@ -1591,27 +1591,27 @@ ODM_RAStateCheck(
|
||||||
// function prototype
|
// function prototype
|
||||||
//============================================================
|
//============================================================
|
||||||
//#define DM_ChangeDynamicInitGainThresh ODM_ChangeDynamicInitGainThresh
|
//#define DM_ChangeDynamicInitGainThresh ODM_ChangeDynamicInitGainThresh
|
||||||
//void ODM_ChangeDynamicInitGainThresh(IN PADAPTER pAdapter,
|
//void ODM_ChangeDynamicInitGainThresh( PADAPTER pAdapter,
|
||||||
// IN INT32 DM_Type,
|
// INT32 DM_Type,
|
||||||
// IN INT32 DM_Value);
|
// INT32 DM_Value);
|
||||||
void
|
void
|
||||||
ODM_ChangeDynamicInitGainThresh(
|
ODM_ChangeDynamicInitGainThresh(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN u4Byte DM_Type,
|
u4Byte DM_Type,
|
||||||
IN u4Byte DM_Value
|
u4Byte DM_Value
|
||||||
);
|
);
|
||||||
|
|
||||||
bool
|
bool
|
||||||
ODM_CheckPowerStatus(
|
ODM_CheckPowerStatus(
|
||||||
IN PADAPTER Adapter
|
PADAPTER Adapter
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
#if (DM_ODM_SUPPORT_TYPE != ODM_ADSL)
|
#if (DM_ODM_SUPPORT_TYPE != ODM_ADSL)
|
||||||
void
|
void
|
||||||
ODM_RateAdaptiveStateApInit(
|
ODM_RateAdaptiveStateApInit(
|
||||||
IN PADAPTER Adapter ,
|
PADAPTER Adapter ,
|
||||||
IN PRT_WLAN_STA pEntry
|
PRT_WLAN_STA pEntry
|
||||||
);
|
);
|
||||||
#endif
|
#endif
|
||||||
#define AP_InitRateAdaptiveState ODM_RateAdaptiveStateApInit
|
#define AP_InitRateAdaptiveState ODM_RateAdaptiveStateApInit
|
||||||
|
@ -1621,15 +1621,15 @@ ODM_RateAdaptiveStateApInit(
|
||||||
#ifdef WIFI_WMM
|
#ifdef WIFI_WMM
|
||||||
void
|
void
|
||||||
ODM_IotEdcaSwitch(
|
ODM_IotEdcaSwitch(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN unsigned char enable
|
unsigned char enable
|
||||||
);
|
);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
bool
|
bool
|
||||||
ODM_ChooseIotMainSTA(
|
ODM_ChooseIotMainSTA(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN PSTA_INFO_T pstat
|
PSTA_INFO_T pstat
|
||||||
);
|
);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -1637,20 +1637,20 @@ ODM_ChooseIotMainSTA(
|
||||||
#ifdef HW_ANT_SWITCH
|
#ifdef HW_ANT_SWITCH
|
||||||
u1Byte
|
u1Byte
|
||||||
ODM_Diversity_AntennaSelect(
|
ODM_Diversity_AntennaSelect(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN u1Byte *data
|
u1Byte *data
|
||||||
);
|
);
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define SwAntDivResetBeforeLink ODM_SwAntDivResetBeforeLink
|
#define SwAntDivResetBeforeLink ODM_SwAntDivResetBeforeLink
|
||||||
void ODM_SwAntDivResetBeforeLink(IN PDM_ODM_T pDM_Odm);
|
void ODM_SwAntDivResetBeforeLink( PDM_ODM_T pDM_Odm);
|
||||||
|
|
||||||
//#define SwAntDivCheckBeforeLink8192C ODM_SwAntDivCheckBeforeLink8192C
|
//#define SwAntDivCheckBeforeLink8192C ODM_SwAntDivCheckBeforeLink8192C
|
||||||
#define SwAntDivCheckBeforeLink ODM_SwAntDivCheckBeforeLink8192C
|
#define SwAntDivCheckBeforeLink ODM_SwAntDivCheckBeforeLink8192C
|
||||||
bool
|
bool
|
||||||
ODM_SwAntDivCheckBeforeLink8192C(
|
ODM_SwAntDivCheckBeforeLink8192C(
|
||||||
IN PDM_ODM_T pDM_Odm
|
PDM_ODM_T pDM_Odm
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
|
@ -1679,14 +1679,14 @@ GetPSDData(
|
||||||
|
|
||||||
void
|
void
|
||||||
odm_DIGbyRSSI_LPS(
|
odm_DIGbyRSSI_LPS(
|
||||||
IN PDM_ODM_T pDM_Odm
|
PDM_ODM_T pDM_Odm
|
||||||
);
|
);
|
||||||
|
|
||||||
u4Byte ODM_Get_Rate_Bitmap(
|
u4Byte ODM_Get_Rate_Bitmap(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN u4Byte macid,
|
u4Byte macid,
|
||||||
IN u4Byte ra_mask,
|
u4Byte ra_mask,
|
||||||
IN u1Byte rssi_level);
|
u1Byte rssi_level);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
@ -1702,62 +1702,62 @@ odm_PSDMonitorWorkItemCallback(
|
||||||
|
|
||||||
void
|
void
|
||||||
PatchDCTone(
|
PatchDCTone(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
pu4Byte PSD_report,
|
pu4Byte PSD_report,
|
||||||
u1Byte initial_gain_psd
|
u1Byte initial_gain_psd
|
||||||
);
|
);
|
||||||
void
|
void
|
||||||
ODM_PSDMonitor(
|
ODM_PSDMonitor(
|
||||||
IN PDM_ODM_T pDM_Odm
|
PDM_ODM_T pDM_Odm
|
||||||
);
|
);
|
||||||
void odm_PSD_Monitor(PDM_ODM_T pDM_Odm);
|
void odm_PSD_Monitor(PDM_ODM_T pDM_Odm);
|
||||||
void odm_PSDMonitorInit(PDM_ODM_T pDM_Odm);
|
void odm_PSDMonitorInit(PDM_ODM_T pDM_Odm);
|
||||||
|
|
||||||
void
|
void
|
||||||
ODM_PSDDbgControl(
|
ODM_PSDDbgControl(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN u4Byte mode,
|
u4Byte mode,
|
||||||
IN u4Byte btRssi
|
u4Byte btRssi
|
||||||
);
|
);
|
||||||
|
|
||||||
#endif // DM_ODM_SUPPORT_TYPE
|
#endif // DM_ODM_SUPPORT_TYPE
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
void ODM_DMInit( IN PDM_ODM_T pDM_Odm);
|
void ODM_DMInit( PDM_ODM_T pDM_Odm);
|
||||||
|
|
||||||
void
|
void
|
||||||
ODM_DMWatchdog(
|
ODM_DMWatchdog(
|
||||||
IN PDM_ODM_T pDM_Odm // For common use in the future
|
PDM_ODM_T pDM_Odm // For common use in the future
|
||||||
);
|
);
|
||||||
|
|
||||||
void
|
void
|
||||||
ODM_CmnInfoInit(
|
ODM_CmnInfoInit(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN ODM_CMNINFO_E CmnInfo,
|
ODM_CMNINFO_E CmnInfo,
|
||||||
IN u4Byte Value
|
u4Byte Value
|
||||||
);
|
);
|
||||||
|
|
||||||
void
|
void
|
||||||
ODM_CmnInfoHook(
|
ODM_CmnInfoHook(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN ODM_CMNINFO_E CmnInfo,
|
ODM_CMNINFO_E CmnInfo,
|
||||||
IN void * pValue
|
void * pValue
|
||||||
);
|
);
|
||||||
|
|
||||||
void
|
void
|
||||||
ODM_CmnInfoPtrArrayHook(
|
ODM_CmnInfoPtrArrayHook(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN ODM_CMNINFO_E CmnInfo,
|
ODM_CMNINFO_E CmnInfo,
|
||||||
IN u2Byte Index,
|
u2Byte Index,
|
||||||
IN void * pValue
|
void * pValue
|
||||||
);
|
);
|
||||||
|
|
||||||
void
|
void
|
||||||
ODM_CmnInfoUpdate(
|
ODM_CmnInfoUpdate(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN u4Byte CmnInfo,
|
u4Byte CmnInfo,
|
||||||
IN u8Byte Value
|
u8Byte Value
|
||||||
);
|
);
|
||||||
|
|
||||||
void
|
void
|
||||||
|
@ -1787,7 +1787,7 @@ void ODM_FreeAllWorkItems(IN PDM_ODM_T pDM_Odm );
|
||||||
|
|
||||||
void odm_PathDivChkAntSwitch(PDM_ODM_T pDM_Odm);
|
void odm_PathDivChkAntSwitch(PDM_ODM_T pDM_Odm);
|
||||||
void ODM_PathDivRestAfterLink(
|
void ODM_PathDivRestAfterLink(
|
||||||
IN PDM_ODM_T pDM_Odm
|
PDM_ODM_T pDM_Odm
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
|
@ -1806,7 +1806,7 @@ void ODM_PathDivRestAfterLink(
|
||||||
|
|
||||||
//void odm_PathDivChkAntSwitch(PADAPTER Adapter,u1Byte Step);
|
//void odm_PathDivChkAntSwitch(PADAPTER Adapter,u1Byte Step);
|
||||||
void ODM_PathDivRestAfterLink(
|
void ODM_PathDivRestAfterLink(
|
||||||
IN PDM_ODM_T pDM_Odm
|
PDM_ODM_T pDM_Odm
|
||||||
);
|
);
|
||||||
|
|
||||||
#define dm_PathDiv_RSSI_Check ODM_PathDivChkPerPktRssi
|
#define dm_PathDiv_RSSI_Check ODM_PathDivChkPerPktRssi
|
||||||
|
@ -1838,14 +1838,14 @@ PlatformDivision64(
|
||||||
#define PathDivCheckBeforeLink8192C ODM_PathDiversityBeforeLink92C
|
#define PathDivCheckBeforeLink8192C ODM_PathDiversityBeforeLink92C
|
||||||
bool
|
bool
|
||||||
ODM_PathDiversityBeforeLink92C(
|
ODM_PathDiversityBeforeLink92C(
|
||||||
//IN PADAPTER Adapter
|
// PADAPTER Adapter
|
||||||
IN PDM_ODM_T pDM_Odm
|
PDM_ODM_T pDM_Odm
|
||||||
);
|
);
|
||||||
|
|
||||||
#define DM_ChangeDynamicInitGainThresh ODM_ChangeDynamicInitGainThresh
|
#define DM_ChangeDynamicInitGainThresh ODM_ChangeDynamicInitGainThresh
|
||||||
//void ODM_ChangeDynamicInitGainThresh(IN PADAPTER pAdapter,
|
//void ODM_ChangeDynamicInitGainThresh( PADAPTER pAdapter,
|
||||||
// IN INT32 DM_Type,
|
// INT32 DM_Type,
|
||||||
// IN INT32 DM_Value);
|
// INT32 DM_Value);
|
||||||
//
|
//
|
||||||
|
|
||||||
|
|
||||||
|
@ -1873,9 +1873,9 @@ typedef enum tag_DIG_Connect_Definition
|
||||||
|
|
||||||
void
|
void
|
||||||
ODM_FillTXPathInTXDESC(
|
ODM_FillTXPathInTXDESC(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN PRT_TCB pTcb,
|
PRT_TCB pTcb,
|
||||||
IN pu1Byte pDesc
|
pu1Byte pDesc
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
|
@ -1902,30 +1902,30 @@ ODM_FillTXPathInTXDESC(
|
||||||
|
|
||||||
void
|
void
|
||||||
ODM_SetTxAntByTxInfo_88C_92D(
|
ODM_SetTxAntByTxInfo_88C_92D(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN pu1Byte pDesc,
|
pu1Byte pDesc,
|
||||||
IN u1Byte macId
|
u1Byte macId
|
||||||
);
|
);
|
||||||
#endif // #if (DM_ODM_SUPPORT_TYPE == ODM_MP)
|
#endif // #if (DM_ODM_SUPPORT_TYPE == ODM_MP)
|
||||||
void
|
void
|
||||||
ODM_AntselStatistics_88C(
|
ODM_AntselStatistics_88C(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN u1Byte MacId,
|
u1Byte MacId,
|
||||||
IN u4Byte PWDBAll,
|
u4Byte PWDBAll,
|
||||||
IN bool isCCKrate
|
bool isCCKrate
|
||||||
);
|
);
|
||||||
|
|
||||||
#if ( DM_ODM_SUPPORT_TYPE & (ODM_MP |ODM_CE))
|
#if ( DM_ODM_SUPPORT_TYPE & (ODM_MP |ODM_CE))
|
||||||
|
|
||||||
void
|
void
|
||||||
ODM_SingleDualAntennaDefaultSetting(
|
ODM_SingleDualAntennaDefaultSetting(
|
||||||
IN PDM_ODM_T pDM_Odm
|
PDM_ODM_T pDM_Odm
|
||||||
);
|
);
|
||||||
|
|
||||||
bool
|
bool
|
||||||
ODM_SingleDualAntennaDetection(
|
ODM_SingleDualAntennaDetection(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN u1Byte mode
|
u1Byte mode
|
||||||
);
|
);
|
||||||
|
|
||||||
#endif // #if ((DM_ODM_SUPPORT_TYPE==ODM_MP)||(DM_ODM_SUPPORT_TYPE==ODM_CE))
|
#endif // #if ((DM_ODM_SUPPORT_TYPE==ODM_MP)||(DM_ODM_SUPPORT_TYPE==ODM_CE))
|
||||||
|
|
|
@ -150,43 +150,43 @@ typedef struct _Phy_Status_Rpt_8195
|
||||||
|
|
||||||
void
|
void
|
||||||
odm_Init_RSSIForDM(
|
odm_Init_RSSIForDM(
|
||||||
IN OUT PDM_ODM_T pDM_Odm
|
PDM_ODM_T pDM_Odm
|
||||||
);
|
);
|
||||||
|
|
||||||
void
|
void
|
||||||
ODM_PhyStatusQuery(
|
ODM_PhyStatusQuery(
|
||||||
IN OUT PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
OUT PODM_PHY_INFO_T pPhyInfo,
|
PODM_PHY_INFO_T pPhyInfo,
|
||||||
IN pu1Byte pPhyStatus,
|
pu1Byte pPhyStatus,
|
||||||
IN PODM_PACKET_INFO_T pPktinfo
|
PODM_PACKET_INFO_T pPktinfo
|
||||||
);
|
);
|
||||||
|
|
||||||
void
|
void
|
||||||
ODM_MacStatusQuery(
|
ODM_MacStatusQuery(
|
||||||
IN OUT PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN pu1Byte pMacStatus,
|
pu1Byte pMacStatus,
|
||||||
IN u1Byte MacID,
|
u1Byte MacID,
|
||||||
IN bool bPacketMatchBSSID,
|
bool bPacketMatchBSSID,
|
||||||
IN bool bPacketToSelf,
|
bool bPacketToSelf,
|
||||||
IN bool bPacketBeacon
|
bool bPacketBeacon
|
||||||
);
|
);
|
||||||
#if (DM_ODM_SUPPORT_TYPE & (ODM_MP|ODM_CE|ODM_AP))
|
#if (DM_ODM_SUPPORT_TYPE & (ODM_MP|ODM_CE|ODM_AP))
|
||||||
HAL_STATUS
|
HAL_STATUS
|
||||||
ODM_ConfigRFWithHeaderFile(
|
ODM_ConfigRFWithHeaderFile(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN ODM_RF_RADIO_PATH_E Content,
|
ODM_RF_RADIO_PATH_E Content,
|
||||||
IN ODM_RF_RADIO_PATH_E eRFPath
|
ODM_RF_RADIO_PATH_E eRFPath
|
||||||
);
|
);
|
||||||
|
|
||||||
HAL_STATUS
|
HAL_STATUS
|
||||||
ODM_ConfigBBWithHeaderFile(
|
ODM_ConfigBBWithHeaderFile(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN ODM_BB_Config_Type ConfigType
|
ODM_BB_Config_Type ConfigType
|
||||||
);
|
);
|
||||||
|
|
||||||
HAL_STATUS
|
HAL_STATUS
|
||||||
ODM_ConfigMACWithHeaderFile(
|
ODM_ConfigMACWithHeaderFile(
|
||||||
IN PDM_ODM_T pDM_Odm
|
PDM_ODM_T pDM_Odm
|
||||||
);
|
);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -29,37 +29,37 @@
|
||||||
|
|
||||||
void
|
void
|
||||||
ODM_DIG_LowerBound_88E(
|
ODM_DIG_LowerBound_88E(
|
||||||
IN PDM_ODM_T pDM_Odm
|
PDM_ODM_T pDM_Odm
|
||||||
);
|
);
|
||||||
#if ( !(DM_ODM_SUPPORT_TYPE == ODM_CE))
|
#if ( !(DM_ODM_SUPPORT_TYPE == ODM_CE))
|
||||||
void
|
void
|
||||||
odm_FastAntTrainingInit(
|
odm_FastAntTrainingInit(
|
||||||
IN PDM_ODM_T pDM_Odm
|
PDM_ODM_T pDM_Odm
|
||||||
);
|
);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
void
|
void
|
||||||
ODM_AntennaDiversityInit_88E(
|
ODM_AntennaDiversityInit_88E(
|
||||||
IN PDM_ODM_T pDM_Odm
|
PDM_ODM_T pDM_Odm
|
||||||
);
|
);
|
||||||
|
|
||||||
void
|
void
|
||||||
ODM_AntennaDiversity_88E
|
ODM_AntennaDiversity_88E
|
||||||
(
|
(
|
||||||
IN PDM_ODM_T pDM_Odm
|
PDM_ODM_T pDM_Odm
|
||||||
);
|
);
|
||||||
|
|
||||||
#if (DM_ODM_SUPPORT_TYPE & (ODM_MP|ODM_CE))
|
#if (DM_ODM_SUPPORT_TYPE & (ODM_MP|ODM_CE))
|
||||||
void
|
void
|
||||||
ODM_SetTxAntByTxInfo_88E(
|
ODM_SetTxAntByTxInfo_88E(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN pu1Byte pDesc,
|
pu1Byte pDesc,
|
||||||
IN u1Byte macId
|
u1Byte macId
|
||||||
);
|
);
|
||||||
#else// (DM_ODM_SUPPORT_TYPE == ODM_AP)
|
#else// (DM_ODM_SUPPORT_TYPE == ODM_AP)
|
||||||
void
|
void
|
||||||
ODM_SetTxAntByTxInfo_88E(
|
ODM_SetTxAntByTxInfo_88E(
|
||||||
IN PDM_ODM_T pDM_Odm
|
PDM_ODM_T pDM_Odm
|
||||||
);
|
);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -71,38 +71,38 @@ ODM_UpdateRxIdleAnt_88E(
|
||||||
|
|
||||||
void
|
void
|
||||||
ODM_AntselStatistics_88E(
|
ODM_AntselStatistics_88E(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN u1Byte antsel_tr_mux,
|
u1Byte antsel_tr_mux,
|
||||||
IN u4Byte MacId,
|
u4Byte MacId,
|
||||||
IN u1Byte RxPWDBAll
|
u1Byte RxPWDBAll
|
||||||
);
|
);
|
||||||
|
|
||||||
#if ( !(DM_ODM_SUPPORT_TYPE == ODM_CE))
|
#if ( !(DM_ODM_SUPPORT_TYPE == ODM_CE))
|
||||||
void
|
void
|
||||||
odm_FastAntTraining(
|
odm_FastAntTraining(
|
||||||
IN PDM_ODM_T pDM_Odm
|
PDM_ODM_T pDM_Odm
|
||||||
);
|
);
|
||||||
|
|
||||||
void
|
void
|
||||||
odm_FastAntTrainingCallback(
|
odm_FastAntTrainingCallback(
|
||||||
IN PDM_ODM_T pDM_Odm
|
PDM_ODM_T pDM_Odm
|
||||||
);
|
);
|
||||||
|
|
||||||
void
|
void
|
||||||
odm_FastAntTrainingWorkItemCallback(
|
odm_FastAntTrainingWorkItemCallback(
|
||||||
IN PDM_ODM_T pDM_Odm
|
PDM_ODM_T pDM_Odm
|
||||||
);
|
);
|
||||||
#endif
|
#endif
|
||||||
void
|
void
|
||||||
odm_PrimaryCCA_Init(
|
odm_PrimaryCCA_Init(
|
||||||
IN PDM_ODM_T pDM_Odm);
|
PDM_ODM_T pDM_Odm);
|
||||||
|
|
||||||
bool
|
bool
|
||||||
ODM_DynamicPrimaryCCA_DupRTS(
|
ODM_DynamicPrimaryCCA_DupRTS(
|
||||||
IN PDM_ODM_T pDM_Odm);
|
PDM_ODM_T pDM_Odm);
|
||||||
|
|
||||||
void
|
void
|
||||||
odm_DynamicPrimaryCCA(
|
odm_DynamicPrimaryCCA(
|
||||||
IN PDM_ODM_T pDM_Odm);
|
PDM_ODM_T pDM_Odm);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -24,56 +24,56 @@
|
||||||
|
|
||||||
void
|
void
|
||||||
odm_ConfigRFReg_8188E(
|
odm_ConfigRFReg_8188E(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN u4Byte Addr,
|
u4Byte Addr,
|
||||||
IN u4Byte Data,
|
u4Byte Data,
|
||||||
IN ODM_RF_RADIO_PATH_E RF_PATH,
|
IN ODM_RF_RADIO_PATH_E RF_PATH,
|
||||||
IN u4Byte RegAddr
|
u4Byte RegAddr
|
||||||
);
|
);
|
||||||
|
|
||||||
void
|
void
|
||||||
odm_ConfigRF_RadioA_8188E(
|
odm_ConfigRF_RadioA_8188E(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN u4Byte Addr,
|
u4Byte Addr,
|
||||||
IN u4Byte Data
|
u4Byte Data
|
||||||
);
|
);
|
||||||
|
|
||||||
void
|
void
|
||||||
odm_ConfigRF_RadioB_8188E(
|
odm_ConfigRF_RadioB_8188E(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN u4Byte Addr,
|
u4Byte Addr,
|
||||||
IN u4Byte Data
|
u4Byte Data
|
||||||
);
|
);
|
||||||
|
|
||||||
void
|
void
|
||||||
odm_ConfigMAC_8188E(
|
odm_ConfigMAC_8188E(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN u4Byte Addr,
|
u4Byte Addr,
|
||||||
IN u1Byte Data
|
u1Byte Data
|
||||||
);
|
);
|
||||||
|
|
||||||
void
|
void
|
||||||
odm_ConfigBB_AGC_8188E(
|
odm_ConfigBB_AGC_8188E(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN u4Byte Addr,
|
u4Byte Addr,
|
||||||
IN u4Byte Bitmask,
|
u4Byte Bitmask,
|
||||||
IN u4Byte Data
|
u4Byte Data
|
||||||
);
|
);
|
||||||
|
|
||||||
void
|
void
|
||||||
odm_ConfigBB_PHY_REG_PG_8188E(
|
odm_ConfigBB_PHY_REG_PG_8188E(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN u4Byte Addr,
|
u4Byte Addr,
|
||||||
IN u4Byte Bitmask,
|
u4Byte Bitmask,
|
||||||
IN u4Byte Data
|
u4Byte Data
|
||||||
);
|
);
|
||||||
|
|
||||||
void
|
void
|
||||||
odm_ConfigBB_PHY_8188E(
|
odm_ConfigBB_PHY_8188E(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN u4Byte Addr,
|
u4Byte Addr,
|
||||||
IN u4Byte Bitmask,
|
u4Byte Bitmask,
|
||||||
IN u4Byte Data
|
u4Byte Data
|
||||||
);
|
);
|
||||||
#endif
|
#endif
|
||||||
#endif // end of SUPPORT
|
#endif // end of SUPPORT
|
||||||
|
|
|
@ -78,7 +78,7 @@
|
||||||
#define ODM_COMP_CCK_PD BIT5
|
#define ODM_COMP_CCK_PD BIT5
|
||||||
#define ODM_COMP_ANT_DIV BIT6
|
#define ODM_COMP_ANT_DIV BIT6
|
||||||
#define ODM_COMP_PWR_SAVE BIT7
|
#define ODM_COMP_PWR_SAVE BIT7
|
||||||
#define ODM_COMP_PWR_TRAIN BIT8
|
#define ODM_COMP_PWR_TRA BIT8
|
||||||
#define ODM_COMP_RATE_ADAPTIVE BIT9
|
#define ODM_COMP_RATE_ADAPTIVE BIT9
|
||||||
#define ODM_COMP_PATH_DIV BIT10
|
#define ODM_COMP_PATH_DIV BIT10
|
||||||
#define ODM_COMP_PSD BIT11
|
#define ODM_COMP_PSD BIT11
|
||||||
|
|
|
@ -99,88 +99,88 @@ typedef void (*RT_WORKITEM_CALL_BACK)(void * pContext);
|
||||||
|
|
||||||
u1Byte
|
u1Byte
|
||||||
ODM_Read1Byte(
|
ODM_Read1Byte(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN u4Byte RegAddr
|
u4Byte RegAddr
|
||||||
);
|
);
|
||||||
|
|
||||||
u2Byte
|
u2Byte
|
||||||
ODM_Read2Byte(
|
ODM_Read2Byte(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN u4Byte RegAddr
|
u4Byte RegAddr
|
||||||
);
|
);
|
||||||
|
|
||||||
u4Byte
|
u4Byte
|
||||||
ODM_Read4Byte(
|
ODM_Read4Byte(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN u4Byte RegAddr
|
u4Byte RegAddr
|
||||||
);
|
);
|
||||||
|
|
||||||
void
|
void
|
||||||
ODM_Write1Byte(
|
ODM_Write1Byte(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN u4Byte RegAddr,
|
u4Byte RegAddr,
|
||||||
IN u1Byte Data
|
u1Byte Data
|
||||||
);
|
);
|
||||||
|
|
||||||
void
|
void
|
||||||
ODM_Write2Byte(
|
ODM_Write2Byte(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN u4Byte RegAddr,
|
u4Byte RegAddr,
|
||||||
IN u2Byte Data
|
u2Byte Data
|
||||||
);
|
);
|
||||||
|
|
||||||
void
|
void
|
||||||
ODM_Write4Byte(
|
ODM_Write4Byte(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN u4Byte RegAddr,
|
u4Byte RegAddr,
|
||||||
IN u4Byte Data
|
u4Byte Data
|
||||||
);
|
);
|
||||||
|
|
||||||
void
|
void
|
||||||
ODM_SetMACReg(
|
ODM_SetMACReg(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN u4Byte RegAddr,
|
u4Byte RegAddr,
|
||||||
IN u4Byte BitMask,
|
u4Byte BitMask,
|
||||||
IN u4Byte Data
|
u4Byte Data
|
||||||
);
|
);
|
||||||
|
|
||||||
u4Byte
|
u4Byte
|
||||||
ODM_GetMACReg(
|
ODM_GetMACReg(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN u4Byte RegAddr,
|
u4Byte RegAddr,
|
||||||
IN u4Byte BitMask
|
u4Byte BitMask
|
||||||
);
|
);
|
||||||
|
|
||||||
void
|
void
|
||||||
ODM_SetBBReg(
|
ODM_SetBBReg(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN u4Byte RegAddr,
|
u4Byte RegAddr,
|
||||||
IN u4Byte BitMask,
|
u4Byte BitMask,
|
||||||
IN u4Byte Data
|
u4Byte Data
|
||||||
);
|
);
|
||||||
|
|
||||||
u4Byte
|
u4Byte
|
||||||
ODM_GetBBReg(
|
ODM_GetBBReg(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN u4Byte RegAddr,
|
u4Byte RegAddr,
|
||||||
IN u4Byte BitMask
|
u4Byte BitMask
|
||||||
);
|
);
|
||||||
|
|
||||||
void
|
void
|
||||||
ODM_SetRFReg(
|
ODM_SetRFReg(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN ODM_RF_RADIO_PATH_E eRFPath,
|
ODM_RF_RADIO_PATH_E eRFPath,
|
||||||
IN u4Byte RegAddr,
|
u4Byte RegAddr,
|
||||||
IN u4Byte BitMask,
|
u4Byte BitMask,
|
||||||
IN u4Byte Data
|
u4Byte Data
|
||||||
);
|
);
|
||||||
|
|
||||||
u4Byte
|
u4Byte
|
||||||
ODM_GetRFReg(
|
ODM_GetRFReg(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN ODM_RF_RADIO_PATH_E eRFPath,
|
ODM_RF_RADIO_PATH_E eRFPath,
|
||||||
IN u4Byte RegAddr,
|
u4Byte RegAddr,
|
||||||
IN u4Byte BitMask
|
u4Byte BitMask
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
|
@ -189,22 +189,22 @@ ODM_GetRFReg(
|
||||||
//
|
//
|
||||||
void
|
void
|
||||||
ODM_AllocateMemory(
|
ODM_AllocateMemory(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
OUT void * *pPtr,
|
void * *pPtr,
|
||||||
IN u4Byte length
|
u4Byte length
|
||||||
);
|
);
|
||||||
void
|
void
|
||||||
ODM_FreeMemory(
|
ODM_FreeMemory(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
OUT void * pPtr,
|
void * pPtr,
|
||||||
IN u4Byte length
|
u4Byte length
|
||||||
);
|
);
|
||||||
|
|
||||||
s4Byte ODM_CompareMemory(
|
s4Byte ODM_CompareMemory(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN void * pBuf1,
|
void * pBuf1,
|
||||||
IN void * pBuf2,
|
void * pBuf2,
|
||||||
IN u4Byte length
|
u4Byte length
|
||||||
);
|
);
|
||||||
|
|
||||||
//
|
//
|
||||||
|
@ -212,14 +212,14 @@ s4Byte ODM_CompareMemory(
|
||||||
//
|
//
|
||||||
void
|
void
|
||||||
ODM_AcquireSpinLock(
|
ODM_AcquireSpinLock(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN RT_SPINLOCK_TYPE type
|
RT_SPINLOCK_TYPE type
|
||||||
);
|
);
|
||||||
|
|
||||||
void
|
void
|
||||||
ODM_ReleaseSpinLock(
|
ODM_ReleaseSpinLock(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN RT_SPINLOCK_TYPE type
|
RT_SPINLOCK_TYPE type
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
|
@ -228,36 +228,36 @@ ODM_ReleaseSpinLock(
|
||||||
//
|
//
|
||||||
void
|
void
|
||||||
ODM_InitializeWorkItem(
|
ODM_InitializeWorkItem(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN PRT_WORK_ITEM pRtWorkItem,
|
PRT_WORK_ITEM pRtWorkItem,
|
||||||
IN RT_WORKITEM_CALL_BACK RtWorkItemCallback,
|
RT_WORKITEM_CALL_BACK RtWorkItemCallback,
|
||||||
IN void * pContext,
|
void * pContext,
|
||||||
IN const char* szID
|
const char* szID
|
||||||
);
|
);
|
||||||
|
|
||||||
void
|
void
|
||||||
ODM_StartWorkItem(
|
ODM_StartWorkItem(
|
||||||
IN PRT_WORK_ITEM pRtWorkItem
|
PRT_WORK_ITEM pRtWorkItem
|
||||||
);
|
);
|
||||||
|
|
||||||
void
|
void
|
||||||
ODM_StopWorkItem(
|
ODM_StopWorkItem(
|
||||||
IN PRT_WORK_ITEM pRtWorkItem
|
PRT_WORK_ITEM pRtWorkItem
|
||||||
);
|
);
|
||||||
|
|
||||||
void
|
void
|
||||||
ODM_FreeWorkItem(
|
ODM_FreeWorkItem(
|
||||||
IN PRT_WORK_ITEM pRtWorkItem
|
PRT_WORK_ITEM pRtWorkItem
|
||||||
);
|
);
|
||||||
|
|
||||||
void
|
void
|
||||||
ODM_ScheduleWorkItem(
|
ODM_ScheduleWorkItem(
|
||||||
IN PRT_WORK_ITEM pRtWorkItem
|
PRT_WORK_ITEM pRtWorkItem
|
||||||
);
|
);
|
||||||
|
|
||||||
void
|
void
|
||||||
ODM_IsWorkItemScheduled(
|
ODM_IsWorkItemScheduled(
|
||||||
IN PRT_WORK_ITEM pRtWorkItem
|
PRT_WORK_ITEM pRtWorkItem
|
||||||
);
|
);
|
||||||
|
|
||||||
//
|
//
|
||||||
|
@ -265,7 +265,7 @@ ODM_IsWorkItemScheduled(
|
||||||
//
|
//
|
||||||
void
|
void
|
||||||
ODM_StallExecution(
|
ODM_StallExecution(
|
||||||
IN u4Byte usDelay
|
u4Byte usDelay
|
||||||
);
|
);
|
||||||
|
|
||||||
void
|
void
|
||||||
|
@ -283,30 +283,30 @@ ODM_sleep_us(IN u4Byte us);
|
||||||
|
|
||||||
void
|
void
|
||||||
ODM_SetTimer(
|
ODM_SetTimer(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN PRT_TIMER pTimer,
|
PRT_TIMER pTimer,
|
||||||
IN u4Byte msDelay
|
u4Byte msDelay
|
||||||
);
|
);
|
||||||
|
|
||||||
void
|
void
|
||||||
ODM_InitializeTimer(
|
ODM_InitializeTimer(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN PRT_TIMER pTimer,
|
PRT_TIMER pTimer,
|
||||||
IN RT_TIMER_CALL_BACK CallBackFunc,
|
RT_TIMER_CALL_BACK CallBackFunc,
|
||||||
IN void * pContext,
|
void * pContext,
|
||||||
IN const char* szID
|
const char* szID
|
||||||
);
|
);
|
||||||
|
|
||||||
void
|
void
|
||||||
ODM_CancelTimer(
|
ODM_CancelTimer(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN PRT_TIMER pTimer
|
PRT_TIMER pTimer
|
||||||
);
|
);
|
||||||
|
|
||||||
void
|
void
|
||||||
ODM_ReleaseTimer(
|
ODM_ReleaseTimer(
|
||||||
IN PDM_ODM_T pDM_Odm,
|
PDM_ODM_T pDM_Odm,
|
||||||
IN PRT_TIMER pTimer
|
PRT_TIMER pTimer
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
|
@ -316,21 +316,21 @@ ODM_ReleaseTimer(
|
||||||
#if (DM_ODM_SUPPORT_TYPE & ODM_MP)
|
#if (DM_ODM_SUPPORT_TYPE & ODM_MP)
|
||||||
void
|
void
|
||||||
ODM_FillH2CCmd(
|
ODM_FillH2CCmd(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN u1Byte ElementID,
|
u1Byte ElementID,
|
||||||
IN u4Byte CmdLen,
|
u4Byte CmdLen,
|
||||||
IN pu1Byte pCmdBuffer
|
pu1Byte pCmdBuffer
|
||||||
);
|
);
|
||||||
#else
|
#else
|
||||||
u4Byte
|
u4Byte
|
||||||
ODM_FillH2CCmd(
|
ODM_FillH2CCmd(
|
||||||
IN pu1Byte pH2CBuffer,
|
pu1Byte pH2CBuffer,
|
||||||
IN u4Byte H2CBufferLen,
|
u4Byte H2CBufferLen,
|
||||||
IN u4Byte CmdNum,
|
u4Byte CmdNum,
|
||||||
IN pu4Byte pElementID,
|
pu4Byte pElementID,
|
||||||
IN pu4Byte pCmdLen,
|
pu4Byte pCmdLen,
|
||||||
IN pu1Byte* pCmbBuffer,
|
pu1Byte* pCmbBuffer,
|
||||||
IN pu1Byte CmdStartSeq
|
pu1Byte CmdStartSeq
|
||||||
);
|
);
|
||||||
#endif
|
#endif
|
||||||
#endif // __ODM_INTERFACE_H__
|
#endif // __ODM_INTERFACE_H__
|
||||||
|
|
|
@ -275,7 +275,7 @@ enum ChannelPlan
|
||||||
CHPL_FCC = 0,
|
CHPL_FCC = 0,
|
||||||
CHPL_IC = 1,
|
CHPL_IC = 1,
|
||||||
CHPL_ETSI = 2,
|
CHPL_ETSI = 2,
|
||||||
CHPL_SPAIN = 3,
|
CHPL_SPA = 3,
|
||||||
CHPL_FRANCE = 4,
|
CHPL_FRANCE = 4,
|
||||||
CHPL_MKK = 5,
|
CHPL_MKK = 5,
|
||||||
CHPL_MKK1 = 6,
|
CHPL_MKK1 = 6,
|
||||||
|
|
|
@ -25,20 +25,20 @@
|
||||||
#define RF6052_MAX_PATH 2
|
#define RF6052_MAX_PATH 2
|
||||||
|
|
||||||
|
|
||||||
int PHY_RF6052_Config8188E( IN PADAPTER Adapter );
|
int PHY_RF6052_Config8188E( PADAPTER Adapter );
|
||||||
void rtl8188e_RF_ChangeTxPath( IN PADAPTER Adapter,
|
void rtl8188e_RF_ChangeTxPath( PADAPTER Adapter,
|
||||||
IN u16 DataRate);
|
u16 DataRate);
|
||||||
void rtl8188e_PHY_RF6052SetBandwidth(
|
void rtl8188e_PHY_RF6052SetBandwidth(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN HT_CHANNEL_WIDTH Bandwidth);
|
HT_CHANNEL_WIDTH Bandwidth);
|
||||||
void rtl8188e_PHY_RF6052SetCckTxPower(
|
void rtl8188e_PHY_RF6052SetCckTxPower(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN u8* pPowerlevel);
|
u8* pPowerlevel);
|
||||||
void rtl8188e_PHY_RF6052SetOFDMTxPower(
|
void rtl8188e_PHY_RF6052SetOFDMTxPower(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN u8* pPowerLevelOFDM,
|
u8* pPowerLevelOFDM,
|
||||||
IN u8* pPowerLevelBW20,
|
u8* pPowerLevelBW20,
|
||||||
IN u8* pPowerLevelBW40,
|
u8* pPowerLevelBW40,
|
||||||
IN u8 Channel);
|
u8 Channel);
|
||||||
|
|
||||||
#endif//__RTL8188E_RF_H__
|
#endif//__RTL8188E_RF_H__
|
||||||
|
|
|
@ -1419,7 +1419,7 @@ Current IOREG MAP
|
||||||
#define SDIO_HISR_HSISR_IND BIT20
|
#define SDIO_HISR_HSISR_IND BIT20
|
||||||
#define SDIO_HISR_GTINT3_IND BIT21
|
#define SDIO_HISR_GTINT3_IND BIT21
|
||||||
#define SDIO_HISR_GTINT4_IND BIT22
|
#define SDIO_HISR_GTINT4_IND BIT22
|
||||||
#define SDIO_HISR_PSTIMEOUT BIT23
|
#define SDIO_HISR_PSTIME BIT23
|
||||||
#define SDIO_HISR_OCPINT BIT24
|
#define SDIO_HISR_OCPINT BIT24
|
||||||
#define SDIO_HISR_ATIMEND BIT25
|
#define SDIO_HISR_ATIMEND BIT25
|
||||||
#define SDIO_HISR_ATIMEND_E BIT26
|
#define SDIO_HISR_ATIMEND_E BIT26
|
||||||
|
@ -1623,13 +1623,13 @@ Current IOREG MAP
|
||||||
#define EEPROM_CHANNEL_PLAN_FCC 0x0
|
#define EEPROM_CHANNEL_PLAN_FCC 0x0
|
||||||
#define EEPROM_CHANNEL_PLAN_IC 0x1
|
#define EEPROM_CHANNEL_PLAN_IC 0x1
|
||||||
#define EEPROM_CHANNEL_PLAN_ETSI 0x2
|
#define EEPROM_CHANNEL_PLAN_ETSI 0x2
|
||||||
#define EEPROM_CHANNEL_PLAN_SPAIN 0x3
|
#define EEPROM_CHANNEL_PLAN_SPA 0x3
|
||||||
#define EEPROM_CHANNEL_PLAN_FRANCE 0x4
|
#define EEPROM_CHANNEL_PLAN_FRANCE 0x4
|
||||||
#define EEPROM_CHANNEL_PLAN_MKK 0x5
|
#define EEPROM_CHANNEL_PLAN_MKK 0x5
|
||||||
#define EEPROM_CHANNEL_PLAN_MKK1 0x6
|
#define EEPROM_CHANNEL_PLAN_MKK1 0x6
|
||||||
#define EEPROM_CHANNEL_PLAN_ISRAEL 0x7
|
#define EEPROM_CHANNEL_PLAN_ISRAEL 0x7
|
||||||
#define EEPROM_CHANNEL_PLAN_TELEC 0x8
|
#define EEPROM_CHANNEL_PLAN_TELEC 0x8
|
||||||
#define EEPROM_CHANNEL_PLAN_GLOBAL_DOMAIN 0x9
|
#define EEPROM_CHANNEL_PLAN_GLOBAL_DOMA 0x9
|
||||||
#define EEPROM_CHANNEL_PLAN_WORLD_WIDE_13 0xA
|
#define EEPROM_CHANNEL_PLAN_WORLD_WIDE_13 0xA
|
||||||
#define EEPROM_CHANNEL_PLAN_NCC 0xB
|
#define EEPROM_CHANNEL_PLAN_NCC 0xB
|
||||||
#define EEPROM_USB_OPTIONAL1 0xE
|
#define EEPROM_USB_OPTIONAL1 0xE
|
||||||
|
|
|
@ -256,7 +256,7 @@ void rtl8192c_issue_delete_ba(_adapter *padapter, u8 dir);
|
||||||
void rtl8192c_init_dm_priv(IN PADAPTER Adapter);
|
void rtl8192c_init_dm_priv(IN PADAPTER Adapter);
|
||||||
void rtl8192c_deinit_dm_priv(IN PADAPTER Adapter);
|
void rtl8192c_deinit_dm_priv(IN PADAPTER Adapter);
|
||||||
|
|
||||||
void rtl8192c_InitHalDm( IN PADAPTER Adapter);
|
void rtl8192c_InitHalDm( PADAPTER Adapter);
|
||||||
void rtl8192c_HalDmWatchDog(IN PADAPTER Adapter);
|
void rtl8192c_HalDmWatchDog(IN PADAPTER Adapter);
|
||||||
|
|
||||||
#endif //__HAL8190PCIDM_H__
|
#endif //__HAL8190PCIDM_H__
|
||||||
|
|
|
@ -355,7 +355,7 @@ enum ChannelPlan{
|
||||||
CHPL_FCC = 0,
|
CHPL_FCC = 0,
|
||||||
CHPL_IC = 1,
|
CHPL_IC = 1,
|
||||||
CHPL_ETSI = 2,
|
CHPL_ETSI = 2,
|
||||||
CHPL_SPAIN = 3,
|
CHPL_SPA = 3,
|
||||||
CHPL_FRANCE = 4,
|
CHPL_FRANCE = 4,
|
||||||
CHPL_MKK = 5,
|
CHPL_MKK = 5,
|
||||||
CHPL_MKK1 = 6,
|
CHPL_MKK1 = 6,
|
||||||
|
|
|
@ -71,19 +71,19 @@
|
||||||
//
|
//
|
||||||
// RF RL6052 Series API
|
// RF RL6052 Series API
|
||||||
//
|
//
|
||||||
void rtl8192c_RF_ChangeTxPath( IN PADAPTER Adapter,
|
void rtl8192c_RF_ChangeTxPath( PADAPTER Adapter,
|
||||||
IN u16 DataRate);
|
u16 DataRate);
|
||||||
void rtl8192c_PHY_RF6052SetBandwidth(
|
void rtl8192c_PHY_RF6052SetBandwidth(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN HT_CHANNEL_WIDTH Bandwidth);
|
HT_CHANNEL_WIDTH Bandwidth);
|
||||||
void rtl8192c_PHY_RF6052SetCckTxPower(
|
void rtl8192c_PHY_RF6052SetCckTxPower(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN u8* pPowerlevel);
|
u8* pPowerlevel);
|
||||||
void rtl8192c_PHY_RF6052SetOFDMTxPower(
|
void rtl8192c_PHY_RF6052SetOFDMTxPower(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN u8* pPowerLevel,
|
u8* pPowerLevel,
|
||||||
IN u8 Channel);
|
u8 Channel);
|
||||||
int PHY_RF6052_Config8192C( IN PADAPTER Adapter );
|
int PHY_RF6052_Config8192C( PADAPTER Adapter );
|
||||||
|
|
||||||
/*--------------------------Exported Function prototype---------------------*/
|
/*--------------------------Exported Function prototype---------------------*/
|
||||||
|
|
||||||
|
|
|
@ -474,8 +474,8 @@
|
||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
// 8192C GPIO PIN Control Register (offset 0x44, 4 byte)
|
// 8192C GPIO PIN Control Register (offset 0x44, 4 byte)
|
||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
#define GPIO_IN REG_GPIO_PIN_CTRL // GPIO pins input value
|
#define GPIO_ REG_GPIO_PIN_CTRL // GPIO pins input value
|
||||||
#define GPIO_OUT (REG_GPIO_PIN_CTRL+1) // GPIO pins output value
|
#define GPIO_ (REG_GPIO_PIN_CTRL+1) // GPIO pins output value
|
||||||
#define GPIO_IO_SEL (REG_GPIO_PIN_CTRL+2) // GPIO pins output enable when a bit is set to "1"; otherwise, input is configured.
|
#define GPIO_IO_SEL (REG_GPIO_PIN_CTRL+2) // GPIO pins output enable when a bit is set to "1"; otherwise, input is configured.
|
||||||
#define GPIO_MOD (REG_GPIO_PIN_CTRL+3)
|
#define GPIO_MOD (REG_GPIO_PIN_CTRL+3)
|
||||||
|
|
||||||
|
@ -593,7 +593,7 @@ Default: 00b.
|
||||||
#define IMR_TIMEOUT2 BIT17 // Timeout interrupt 2
|
#define IMR_TIMEOUT2 BIT17 // Timeout interrupt 2
|
||||||
#define IMR_TIMEOUT1 BIT16 // Timeout interrupt 1
|
#define IMR_TIMEOUT1 BIT16 // Timeout interrupt 1
|
||||||
#define IMR_TXFOVW BIT15 // Transmit FIFO Overflow
|
#define IMR_TXFOVW BIT15 // Transmit FIFO Overflow
|
||||||
#define IMR_PSTIMEOUT BIT14 // Power save time out interrupt
|
#define IMR_PSTIME BIT14 // Power save time out interrupt
|
||||||
#define IMR_BcnInt BIT13 // Beacon DMA Interrupt 0
|
#define IMR_BcnInt BIT13 // Beacon DMA Interrupt 0
|
||||||
#define IMR_RXFOVW BIT12 // Receive FIFO Overflow
|
#define IMR_RXFOVW BIT12 // Receive FIFO Overflow
|
||||||
#define IMR_RDU BIT11 // Receive Descriptor Unavailable
|
#define IMR_RDU BIT11 // Receive Descriptor Unavailable
|
||||||
|
@ -666,13 +666,13 @@ Default: 00b.
|
||||||
#define EEPROM_CHANNEL_PLAN_FCC 0x0
|
#define EEPROM_CHANNEL_PLAN_FCC 0x0
|
||||||
#define EEPROM_CHANNEL_PLAN_IC 0x1
|
#define EEPROM_CHANNEL_PLAN_IC 0x1
|
||||||
#define EEPROM_CHANNEL_PLAN_ETSI 0x2
|
#define EEPROM_CHANNEL_PLAN_ETSI 0x2
|
||||||
#define EEPROM_CHANNEL_PLAN_SPAIN 0x3
|
#define EEPROM_CHANNEL_PLAN_SPA 0x3
|
||||||
#define EEPROM_CHANNEL_PLAN_FRANCE 0x4
|
#define EEPROM_CHANNEL_PLAN_FRANCE 0x4
|
||||||
#define EEPROM_CHANNEL_PLAN_MKK 0x5
|
#define EEPROM_CHANNEL_PLAN_MKK 0x5
|
||||||
#define EEPROM_CHANNEL_PLAN_MKK1 0x6
|
#define EEPROM_CHANNEL_PLAN_MKK1 0x6
|
||||||
#define EEPROM_CHANNEL_PLAN_ISRAEL 0x7
|
#define EEPROM_CHANNEL_PLAN_ISRAEL 0x7
|
||||||
#define EEPROM_CHANNEL_PLAN_TELEC 0x8
|
#define EEPROM_CHANNEL_PLAN_TELEC 0x8
|
||||||
#define EEPROM_CHANNEL_PLAN_GLOBAL_DOMAIN 0x9
|
#define EEPROM_CHANNEL_PLAN_GLOBAL_DOMA 0x9
|
||||||
#define EEPROM_CHANNEL_PLAN_WORLD_WIDE_13 0xA
|
#define EEPROM_CHANNEL_PLAN_WORLD_WIDE_13 0xA
|
||||||
#define EEPROM_CHANNEL_PLAN_NCC 0xB
|
#define EEPROM_CHANNEL_PLAN_NCC 0xB
|
||||||
#define EEPROM_USB_OPTIONAL1 0xE
|
#define EEPROM_USB_OPTIONAL1 0xE
|
||||||
|
@ -1755,8 +1755,8 @@ Current IOREG MAP
|
||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
// 8192C GPIO PIN Control Register (offset 0x44, 4 byte)
|
// 8192C GPIO PIN Control Register (offset 0x44, 4 byte)
|
||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
#define GPIO_IN REG_GPIO_PIN_CTRL // GPIO pins input value
|
#define GPIO_ REG_GPIO_PIN_CTRL // GPIO pins input value
|
||||||
#define GPIO_OUT (REG_GPIO_PIN_CTRL+1) // GPIO pins output value
|
#define GPIO_ (REG_GPIO_PIN_CTRL+1) // GPIO pins output value
|
||||||
#define GPIO_IO_SEL (REG_GPIO_PIN_CTRL+2) // GPIO pins output enable when a bit is set to "1"; otherwise, input is configured.
|
#define GPIO_IO_SEL (REG_GPIO_PIN_CTRL+2) // GPIO pins output enable when a bit is set to "1"; otherwise, input is configured.
|
||||||
#define GPIO_MOD (REG_GPIO_PIN_CTRL+3)
|
#define GPIO_MOD (REG_GPIO_PIN_CTRL+3)
|
||||||
|
|
||||||
|
|
|
@ -378,7 +378,7 @@ enum ChannelPlan{
|
||||||
CHPL_FCC = 0,
|
CHPL_FCC = 0,
|
||||||
CHPL_IC = 1,
|
CHPL_IC = 1,
|
||||||
CHPL_ETSI = 2,
|
CHPL_ETSI = 2,
|
||||||
CHPL_SPAIN = 3,
|
CHPL_SPA = 3,
|
||||||
CHPL_FRANCE = 4,
|
CHPL_FRANCE = 4,
|
||||||
CHPL_MKK = 5,
|
CHPL_MKK = 5,
|
||||||
CHPL_MKK1 = 6,
|
CHPL_MKK1 = 6,
|
||||||
|
|
|
@ -71,21 +71,21 @@
|
||||||
//
|
//
|
||||||
// RF RL6052 Series API
|
// RF RL6052 Series API
|
||||||
//
|
//
|
||||||
void rtl8192d_RF_ChangeTxPath( IN PADAPTER Adapter,
|
void rtl8192d_RF_ChangeTxPath( PADAPTER Adapter,
|
||||||
IN u16 DataRate);
|
u16 DataRate);
|
||||||
void rtl8192d_PHY_RF6052SetBandwidth(
|
void rtl8192d_PHY_RF6052SetBandwidth(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN HT_CHANNEL_WIDTH Bandwidth);
|
HT_CHANNEL_WIDTH Bandwidth);
|
||||||
void rtl8192d_PHY_RF6052SetCckTxPower(
|
void rtl8192d_PHY_RF6052SetCckTxPower(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN u8* pPowerlevel);
|
u8* pPowerlevel);
|
||||||
void rtl8192d_PHY_RF6052SetOFDMTxPower(
|
void rtl8192d_PHY_RF6052SetOFDMTxPower(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN u8* pPowerLevel,
|
u8* pPowerLevel,
|
||||||
IN u8 Channel);
|
u8 Channel);
|
||||||
int PHY_RF6052_Config8192D( IN PADAPTER Adapter );
|
int PHY_RF6052_Config8192D( PADAPTER Adapter );
|
||||||
|
|
||||||
bool rtl8192d_PHY_EnableAnotherPHY(IN PADAPTER Adapter, IN bool bMac0);
|
bool rtl8192d_PHY_EnableAnotherPHY( PADAPTER Adapter, bool bMac0);
|
||||||
|
|
||||||
void rtl8192d_PHY_PowerDownAnotherPHY(IN PADAPTER Adapter, IN bool bMac0);
|
void rtl8192d_PHY_PowerDownAnotherPHY(IN PADAPTER Adapter, IN bool bMac0);
|
||||||
|
|
||||||
|
|
|
@ -489,8 +489,8 @@
|
||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
// 8192C GPIO PIN Control Register (offset 0x44, 4 byte)
|
// 8192C GPIO PIN Control Register (offset 0x44, 4 byte)
|
||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
#define GPIO_IN REG_GPIO_PIN_CTRL // GPIO pins input value
|
#define GPIO_ REG_GPIO_PIN_CTRL // GPIO pins input value
|
||||||
#define GPIO_OUT (REG_GPIO_PIN_CTRL+1) // GPIO pins output value
|
#define GPIO_ (REG_GPIO_PIN_CTRL+1) // GPIO pins output value
|
||||||
#define GPIO_IO_SEL (REG_GPIO_PIN_CTRL+2) // GPIO pins output enable when a bit is set to "1"; otherwise, input is configured.
|
#define GPIO_IO_SEL (REG_GPIO_PIN_CTRL+2) // GPIO pins output enable when a bit is set to "1"; otherwise, input is configured.
|
||||||
#define GPIO_MOD (REG_GPIO_PIN_CTRL+3)
|
#define GPIO_MOD (REG_GPIO_PIN_CTRL+3)
|
||||||
|
|
||||||
|
@ -611,7 +611,7 @@ Default: 00b.
|
||||||
#define IMR_TIMEOUT2 BIT17 // Timeout interrupt 2
|
#define IMR_TIMEOUT2 BIT17 // Timeout interrupt 2
|
||||||
#define IMR_TIMEOUT1 BIT16 // Timeout interrupt 1
|
#define IMR_TIMEOUT1 BIT16 // Timeout interrupt 1
|
||||||
#define IMR_TXFOVW BIT15 // Transmit FIFO Overflow
|
#define IMR_TXFOVW BIT15 // Transmit FIFO Overflow
|
||||||
#define IMR_PSTIMEOUT BIT14 // Power save time out interrupt
|
#define IMR_PSTIME BIT14 // Power save time out interrupt
|
||||||
#define IMR_BcnInt BIT13 // Beacon DMA Interrupt 0
|
#define IMR_BcnInt BIT13 // Beacon DMA Interrupt 0
|
||||||
#define IMR_RXFOVW BIT12 // Receive FIFO Overflow
|
#define IMR_RXFOVW BIT12 // Receive FIFO Overflow
|
||||||
#define IMR_RDU BIT11 // Receive Descriptor Unavailable
|
#define IMR_RDU BIT11 // Receive Descriptor Unavailable
|
||||||
|
@ -692,13 +692,13 @@ Default: 00b.
|
||||||
#define EEPROM_CHANNEL_PLAN_FCC 0x0
|
#define EEPROM_CHANNEL_PLAN_FCC 0x0
|
||||||
#define EEPROM_CHANNEL_PLAN_IC 0x1
|
#define EEPROM_CHANNEL_PLAN_IC 0x1
|
||||||
#define EEPROM_CHANNEL_PLAN_ETSI 0x2
|
#define EEPROM_CHANNEL_PLAN_ETSI 0x2
|
||||||
#define EEPROM_CHANNEL_PLAN_SPAIN 0x3
|
#define EEPROM_CHANNEL_PLAN_SPA 0x3
|
||||||
#define EEPROM_CHANNEL_PLAN_FRANCE 0x4
|
#define EEPROM_CHANNEL_PLAN_FRANCE 0x4
|
||||||
#define EEPROM_CHANNEL_PLAN_MKK 0x5
|
#define EEPROM_CHANNEL_PLAN_MKK 0x5
|
||||||
#define EEPROM_CHANNEL_PLAN_MKK1 0x6
|
#define EEPROM_CHANNEL_PLAN_MKK1 0x6
|
||||||
#define EEPROM_CHANNEL_PLAN_ISRAEL 0x7
|
#define EEPROM_CHANNEL_PLAN_ISRAEL 0x7
|
||||||
#define EEPROM_CHANNEL_PLAN_TELEC 0x8
|
#define EEPROM_CHANNEL_PLAN_TELEC 0x8
|
||||||
#define EEPROM_CHANNEL_PLAN_GLOBAL_DOMAIN 0x9
|
#define EEPROM_CHANNEL_PLAN_GLOBAL_DOMA 0x9
|
||||||
#define EEPROM_CHANNEL_PLAN_WORLD_WIDE_13 0xA
|
#define EEPROM_CHANNEL_PLAN_WORLD_WIDE_13 0xA
|
||||||
#define EEPROM_CHANNEL_PLAN_NCC 0xB
|
#define EEPROM_CHANNEL_PLAN_NCC 0xB
|
||||||
#define EEPROM_CHANNEL_PLAN_BY_HW_MASK 0x80
|
#define EEPROM_CHANNEL_PLAN_BY_HW_MASK 0x80
|
||||||
|
|
|
@ -167,11 +167,11 @@ typedef enum _HCI_STATUS
|
||||||
HCI_STATUS_UNKNOW_HCI_CMD =0x01, //Unknown HCI Command
|
HCI_STATUS_UNKNOW_HCI_CMD =0x01, //Unknown HCI Command
|
||||||
HCI_STATUS_UNKNOW_CONNECT_ID =0X02, //Unknown Connection Identifier
|
HCI_STATUS_UNKNOW_CONNECT_ID =0X02, //Unknown Connection Identifier
|
||||||
HCI_STATUS_HW_FAIL =0X03, //Hardware Failure
|
HCI_STATUS_HW_FAIL =0X03, //Hardware Failure
|
||||||
HCI_STATUS_PAGE_TIMEOUT =0X04, //Page Timeout
|
HCI_STATUS_PAGE_TIME =0X04, //Page Timeout
|
||||||
HCI_STATUS_AUTH_FAIL =0X05, //Authentication Failure
|
HCI_STATUS_AUTH_FAIL =0X05, //Authentication Failure
|
||||||
HCI_STATUS_PIN_OR_KEY_MISSING =0X06, //PIN or Key Missing
|
HCI_STATUS_PIN_OR_KEY_MISSING =0X06, //PIN or Key Missing
|
||||||
HCI_STATUS_MEM_CAP_EXCEED =0X07, //Memory Capacity Exceeded
|
HCI_STATUS_MEM_CAP_EXCEED =0X07, //Memory Capacity Exceeded
|
||||||
HCI_STATUS_CONNECT_TIMEOUT =0X08, //Connection Timeout
|
HCI_STATUS_CONNECT_TIME =0X08, //Connection Timeout
|
||||||
HCI_STATUS_CONNECT_LIMIT =0X09, //Connection Limit Exceeded
|
HCI_STATUS_CONNECT_LIMIT =0X09, //Connection Limit Exceeded
|
||||||
HCI_STATUS_SYN_CONNECT_LIMIT =0X0a, //Synchronous Connection Limit To A Device Exceeded
|
HCI_STATUS_SYN_CONNECT_LIMIT =0X0a, //Synchronous Connection Limit To A Device Exceeded
|
||||||
HCI_STATUS_ACL_CONNECT_EXISTS =0X0b, //ACL Connection Already Exists
|
HCI_STATUS_ACL_CONNECT_EXISTS =0X0b, //ACL Connection Already Exists
|
||||||
|
@ -179,7 +179,7 @@ typedef enum _HCI_STATUS
|
||||||
HCI_STATUS_CONNECT_RJT_LIMIT_RESOURCE =0X0d, //Connection Rejected due to Limited Resources
|
HCI_STATUS_CONNECT_RJT_LIMIT_RESOURCE =0X0d, //Connection Rejected due to Limited Resources
|
||||||
HCI_STATUS_CONNECT_RJT_SEC_REASON =0X0e, //Connection Rejected Due To Security Reasons
|
HCI_STATUS_CONNECT_RJT_SEC_REASON =0X0e, //Connection Rejected Due To Security Reasons
|
||||||
HCI_STATUS_CONNECT_RJT_UNACCEPT_BD_ADDR =0X0f, //Connection Rejected due to Unacceptable BD_ADDR
|
HCI_STATUS_CONNECT_RJT_UNACCEPT_BD_ADDR =0X0f, //Connection Rejected due to Unacceptable BD_ADDR
|
||||||
HCI_STATUS_CONNECT_ACCEPT_TIMEOUT =0X10, //Connection Accept Timeout Exceeded
|
HCI_STATUS_CONNECT_ACCEPT_TIME =0X10, //Connection Accept Timeout Exceeded
|
||||||
HCI_STATUS_UNSUPPORT_FEATURE_PARA_VALUE =0X11, //Unsupported Feature or Parameter Value
|
HCI_STATUS_UNSUPPORT_FEATURE_PARA_VALUE =0X11, //Unsupported Feature or Parameter Value
|
||||||
HCI_STATUS_INVALID_HCI_CMD_PARA_VALUE =0X12, //Invalid HCI Command Parameters
|
HCI_STATUS_INVALID_HCI_CMD_PARA_VALUE =0X12, //Invalid HCI Command Parameters
|
||||||
HCI_STATUS_REMOTE_USER_TERMINATE_CONNECT =0X13, //Remote User Terminated Connection
|
HCI_STATUS_REMOTE_USER_TERMINATE_CONNECT =0X13, //Remote User Terminated Connection
|
||||||
|
@ -197,7 +197,7 @@ typedef enum _HCI_STATUS
|
||||||
HCI_STATUS_UNSPECIFIC_ERROR =0X1f, //Unspecified Error
|
HCI_STATUS_UNSPECIFIC_ERROR =0X1f, //Unspecified Error
|
||||||
HCI_STATUS_UNSUPPORT_LMP_PARA_VALUE =0X20, //Unsupported LMP Parameter Value
|
HCI_STATUS_UNSUPPORT_LMP_PARA_VALUE =0X20, //Unsupported LMP Parameter Value
|
||||||
HCI_STATUS_ROLE_CHANGE_NOT_ALLOW =0X21, //Role Change Not Allowed
|
HCI_STATUS_ROLE_CHANGE_NOT_ALLOW =0X21, //Role Change Not Allowed
|
||||||
HCI_STATUS_LMP_RESPONSE_TIMEOUT =0X22, //LMP Response Timeout
|
HCI_STATUS_LMP_RESPONSE_TIME =0X22, //LMP Response Timeout
|
||||||
HCI_STATUS_LMP_ERROR_TRANSACTION_COLLISION =0X23, //LMP Error Transaction Collision
|
HCI_STATUS_LMP_ERROR_TRANSACTION_COLLISION =0X23, //LMP Error Transaction Collision
|
||||||
HCI_STATUS_LMP_PDU_NOT_ALLOW =0X24, //LMP PDU Not Allowed
|
HCI_STATUS_LMP_PDU_NOT_ALLOW =0X24, //LMP PDU Not Allowed
|
||||||
HCI_STATUS_ENCRYPTION_MODE_NOT_ALLOW =0X25, //Encryption Mode Not Acceptable
|
HCI_STATUS_ENCRYPTION_MODE_NOT_ALLOW =0X25, //Encryption Mode Not Acceptable
|
||||||
|
@ -318,10 +318,10 @@ typedef enum _SET_EVENT_MASK_COMMAND
|
||||||
HCI_DELETE_STORED_LINK_KEY =0x0012,
|
HCI_DELETE_STORED_LINK_KEY =0x0012,
|
||||||
HCI_WRITE_LOCAL_NAME =0x0013,
|
HCI_WRITE_LOCAL_NAME =0x0013,
|
||||||
HCI_READ_LOCAL_NAME =0x0014,
|
HCI_READ_LOCAL_NAME =0x0014,
|
||||||
HCI_READ_CONNECTION_ACCEPT_TIMEOUT =0x0015,
|
HCI_READ_CONNECTION_ACCEPT_TIME =0x0015,
|
||||||
HCI_WRITE_CONNECTION_ACCEPT_TIMEOUT =0x0016,
|
HCI_WRITE_CONNECTION_ACCEPT_TIME =0x0016,
|
||||||
HCI_READ_PAGE_TIMEOUT =0x0017,
|
HCI_READ_PAGE_TIME =0x0017,
|
||||||
HCI_WRITE_PAGE_TIMEOUT =0x0018,
|
HCI_WRITE_PAGE_TIME =0x0018,
|
||||||
HCI_READ_SCAN_ENABLE =0x0019,
|
HCI_READ_SCAN_ENABLE =0x0019,
|
||||||
HCI_WRITE_SCAN_ENABLE =0x001a,
|
HCI_WRITE_SCAN_ENABLE =0x001a,
|
||||||
HCI_READ_PAGE_SCAN_ACTIVITY =0x001b,
|
HCI_READ_PAGE_SCAN_ACTIVITY =0x001b,
|
||||||
|
@ -334,8 +334,8 @@ typedef enum _SET_EVENT_MASK_COMMAND
|
||||||
HCI_WRITE_CLASS_OF_DEVICE =0x0024,
|
HCI_WRITE_CLASS_OF_DEVICE =0x0024,
|
||||||
HCI_READ_VOICE_SETTING =0x0025,
|
HCI_READ_VOICE_SETTING =0x0025,
|
||||||
HCI_WRITE_VOICE_SETTING =0x0026,
|
HCI_WRITE_VOICE_SETTING =0x0026,
|
||||||
HCI_READ_AUTOMATIC_FLUSH_TIMEOUT =0x0027,
|
HCI_READ_AUTOMATIC_FLUSH_TIME =0x0027,
|
||||||
HCI_WRITE_AUTOMATIC_FLUSH_TIMEOUT =0x0028,
|
HCI_WRITE_AUTOMATIC_FLUSH_TIME =0x0028,
|
||||||
HCI_READ_NUM_BROADCAST_RETRANSMISSIONS =0x0029,
|
HCI_READ_NUM_BROADCAST_RETRANSMISSIONS =0x0029,
|
||||||
HCI_WRITE_NUM_BROADCAST_RETRANSMISSIONS =0x002a,
|
HCI_WRITE_NUM_BROADCAST_RETRANSMISSIONS =0x002a,
|
||||||
HCI_READ_HOLD_MODE_ACTIVITY =0x002b,
|
HCI_READ_HOLD_MODE_ACTIVITY =0x002b,
|
||||||
|
@ -345,8 +345,8 @@ typedef enum _SET_EVENT_MASK_COMMAND
|
||||||
HCI_SET_CONTROLLER_TO_HOST_FLOW_CONTROL =0x0031,
|
HCI_SET_CONTROLLER_TO_HOST_FLOW_CONTROL =0x0031,
|
||||||
HCI_HOST_BUFFER_SIZE =0x0033,
|
HCI_HOST_BUFFER_SIZE =0x0033,
|
||||||
HCI_HOST_NUMBER_OF_COMPLETED_PACKETS =0x0035,
|
HCI_HOST_NUMBER_OF_COMPLETED_PACKETS =0x0035,
|
||||||
HCI_READ_LINK_SUPERVISION_TIMEOUT =0x0036,
|
HCI_READ_LINK_SUPERVISION_TIME =0x0036,
|
||||||
HCI_WRITE_LINK_SUPERVISION_TIMEOUT =0x0037,
|
HCI_WRITE_LINK_SUPERVISION_TIME =0x0037,
|
||||||
HCI_READ_NUMBER_OF_SUPPORTED_IAC =0x0038,
|
HCI_READ_NUMBER_OF_SUPPORTED_IAC =0x0038,
|
||||||
HCI_READ_CURRENT_IAC_LAP =0x0039,
|
HCI_READ_CURRENT_IAC_LAP =0x0039,
|
||||||
HCI_WRITE_CURRENT_IAC_LAP =0x003a,
|
HCI_WRITE_CURRENT_IAC_LAP =0x003a,
|
||||||
|
@ -373,16 +373,16 @@ typedef enum _SET_EVENT_MASK_COMMAND
|
||||||
HCI_WRITE_DEFAULT_ERRONEOUS_DATA_REPORTING =0x005b,
|
HCI_WRITE_DEFAULT_ERRONEOUS_DATA_REPORTING =0x005b,
|
||||||
HCI_ENHANCED_FLUSH =0x005f,
|
HCI_ENHANCED_FLUSH =0x005f,
|
||||||
HCI_SEND_KEYPRESS_NOTIFICATION =0x0060,
|
HCI_SEND_KEYPRESS_NOTIFICATION =0x0060,
|
||||||
HCI_READ_LOGICAL_LINK_ACCEPT_TIMEOUT =0x0061,
|
HCI_READ_LOGICAL_LINK_ACCEPT_TIME =0x0061,
|
||||||
HCI_WRITE_LOGICAL_LINK_ACCEPT_TIMEOUT =0x0062,
|
HCI_WRITE_LOGICAL_LINK_ACCEPT_TIME =0x0062,
|
||||||
HCI_SET_EVENT_MASK_PAGE_2 =0x0063,
|
HCI_SET_EVENT_MASK_PAGE_2 =0x0063,
|
||||||
HCI_READ_LOCATION_DATA =0x0064,
|
HCI_READ_LOCATION_DATA =0x0064,
|
||||||
HCI_WRITE_LOCATION_DATA =0x0065,
|
HCI_WRITE_LOCATION_DATA =0x0065,
|
||||||
HCI_READ_FLOW_CONTROL_MODE =0x0066,
|
HCI_READ_FLOW_CONTROL_MODE =0x0066,
|
||||||
HCI_WRITE_FLOW_CONTROL_MODE =0x0067,
|
HCI_WRITE_FLOW_CONTROL_MODE =0x0067,
|
||||||
HCI_READ_ENHANCE_TRANSMIT_POWER_LEVEL =0x0068,
|
HCI_READ_ENHANCE_TRANSMIT_POWER_LEVEL =0x0068,
|
||||||
HCI_READ_BEST_EFFORT_FLUSH_TIMEOUT =0x0069,
|
HCI_READ_BEST_EFFORT_FLUSH_TIME =0x0069,
|
||||||
HCI_WRITE_BEST_EFFORT_FLUSH_TIMEOUT =0x006a,
|
HCI_WRITE_BEST_EFFORT_FLUSH_TIME =0x006a,
|
||||||
HCI_SHORT_RANGE_MODE =0x006b
|
HCI_SHORT_RANGE_MODE =0x006b
|
||||||
}SET_EVENT_MASK_COMMAND,*PSET_EVENT_MASK_COMMAND;
|
}SET_EVENT_MASK_COMMAND,*PSET_EVENT_MASK_COMMAND;
|
||||||
|
|
||||||
|
|
|
@ -316,7 +316,7 @@ enum ChannelPlan
|
||||||
CHPL_FCC = 0,
|
CHPL_FCC = 0,
|
||||||
CHPL_IC = 1,
|
CHPL_IC = 1,
|
||||||
CHPL_ETSI = 2,
|
CHPL_ETSI = 2,
|
||||||
CHPL_SPAIN = 3,
|
CHPL_SPA = 3,
|
||||||
CHPL_FRANCE = 4,
|
CHPL_FRANCE = 4,
|
||||||
CHPL_MKK = 5,
|
CHPL_MKK = 5,
|
||||||
CHPL_MKK1 = 6,
|
CHPL_MKK1 = 6,
|
||||||
|
|
|
@ -21,6 +21,6 @@
|
||||||
#define __RTL8723A_RF_H__
|
#define __RTL8723A_RF_H__
|
||||||
|
|
||||||
#include "rtl8192c_rf.h"
|
#include "rtl8192c_rf.h"
|
||||||
int PHY_RF6052_Config8723A( IN PADAPTER Adapter );
|
int PHY_RF6052_Config8723A( PADAPTER Adapter );
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -411,7 +411,7 @@
|
||||||
#define SDIO_HISR_HSISR_IND BIT20
|
#define SDIO_HISR_HSISR_IND BIT20
|
||||||
#define SDIO_HISR_GTINT3_IND BIT21
|
#define SDIO_HISR_GTINT3_IND BIT21
|
||||||
#define SDIO_HISR_GTINT4_IND BIT22
|
#define SDIO_HISR_GTINT4_IND BIT22
|
||||||
#define SDIO_HISR_PSTIMEOUT BIT23
|
#define SDIO_HISR_PSTIME BIT23
|
||||||
#define SDIO_HISR_OCPINT BIT24
|
#define SDIO_HISR_OCPINT BIT24
|
||||||
#define SDIO_HISR_ATIMEND BIT25
|
#define SDIO_HISR_ATIMEND BIT25
|
||||||
#define SDIO_HISR_ATIMEND_E BIT26
|
#define SDIO_HISR_ATIMEND_E BIT26
|
||||||
|
@ -459,7 +459,7 @@
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
#define UHIMR_TIMEOUT2 BIT31
|
#define UHIMR_TIMEOUT2 BIT31
|
||||||
#define UHIMR_TIMEOUT1 BIT30
|
#define UHIMR_TIMEOUT1 BIT30
|
||||||
#define UHIMR_PSTIMEOUT BIT29
|
#define UHIMR_PSTIME BIT29
|
||||||
#define UHIMR_GTINT4 BIT28
|
#define UHIMR_GTINT4 BIT28
|
||||||
#define UHIMR_GTINT3 BIT27
|
#define UHIMR_GTINT3 BIT27
|
||||||
#define UHIMR_TXBCNERR BIT26
|
#define UHIMR_TXBCNERR BIT26
|
||||||
|
|
|
@ -112,7 +112,7 @@ typedef enum _BT_CTRL_STATUS{
|
||||||
BT_STATUS_SUCCESS = 0x00, // Success
|
BT_STATUS_SUCCESS = 0x00, // Success
|
||||||
BT_STATUS_BT_OP_SUCCESS = 0x01, // bt fw op execution success
|
BT_STATUS_BT_OP_SUCCESS = 0x01, // bt fw op execution success
|
||||||
BT_STATUS_H2C_SUCCESS = 0x02, // H2c success
|
BT_STATUS_H2C_SUCCESS = 0x02, // H2c success
|
||||||
BT_STATUS_H2C_TIMTOUT = 0x03, // H2c timeout
|
BT_STATUS_H2C_TIMT = 0x03, // H2c timeout
|
||||||
BT_STATUS_H2C_BT_NO_RSP = 0x04, // H2c sent, bt no rsp
|
BT_STATUS_H2C_BT_NO_RSP = 0x04, // H2c sent, bt no rsp
|
||||||
BT_STATUS_C2H_SUCCESS = 0x05, // C2h success
|
BT_STATUS_C2H_SUCCESS = 0x05, // C2h success
|
||||||
BT_STATUS_C2H_REQNUM_MISMATCH = 0x06, // bt fw wrong rsp
|
BT_STATUS_C2H_REQNUM_MISMATCH = 0x06, // bt fw wrong rsp
|
||||||
|
@ -182,20 +182,20 @@ typedef enum _BT_REPORT_TYPE{
|
||||||
|
|
||||||
void
|
void
|
||||||
MPTBT_Test(
|
MPTBT_Test(
|
||||||
IN PADAPTER Adapter,
|
PADAPTER Adapter,
|
||||||
IN u1Byte opCode,
|
u1Byte opCode,
|
||||||
IN u1Byte byte1,
|
u1Byte byte1,
|
||||||
IN u1Byte byte2,
|
u1Byte byte2,
|
||||||
IN u1Byte byte3
|
u1Byte byte3
|
||||||
);
|
);
|
||||||
|
|
||||||
NDIS_STATUS
|
NDIS_STATUS
|
||||||
MPTBT_SendOidBT(
|
MPTBT_SendOidBT(
|
||||||
IN PADAPTER pAdapter,
|
PADAPTER pAdapter,
|
||||||
IN void * InformationBuffer,
|
void * InformationBuffer,
|
||||||
IN ULONG InformationBufferLength,
|
ULONG InformationBufferLength,
|
||||||
OUT PULONG BytesRead,
|
PULONG BytesRead,
|
||||||
OUT PULONG BytesNeeded
|
PULONG BytesNeeded
|
||||||
);
|
);
|
||||||
|
|
||||||
void
|
void
|
||||||
|
@ -264,7 +264,7 @@ typedef enum _BT_CTRL_OPCODE_LOWER{
|
||||||
BT_LO_OP_RESET = 0x01,
|
BT_LO_OP_RESET = 0x01,
|
||||||
BT_LO_OP_TEST_CTRL = 0x02,
|
BT_LO_OP_TEST_CTRL = 0x02,
|
||||||
BT_LO_OP_SET_BT_MODE = 0x03,
|
BT_LO_OP_SET_BT_MODE = 0x03,
|
||||||
BT_LO_OP_SET_CHNL_TX_GAIN = 0x04,
|
BT_LO_OP_SET_CHNL_TX_GA = 0x04,
|
||||||
BT_LO_OP_SET_PKT_TYPE_LEN = 0x05,
|
BT_LO_OP_SET_PKT_TYPE_LEN = 0x05,
|
||||||
BT_LO_OP_SET_PKT_CNT_L_PL_TYPE = 0x06,
|
BT_LO_OP_SET_PKT_CNT_L_PL_TYPE = 0x06,
|
||||||
BT_LO_OP_SET_PKT_CNT_H_PKT_INTV = 0x07,
|
BT_LO_OP_SET_PKT_CNT_H_PKT_INTV = 0x07,
|
||||||
|
|
|
@ -56,8 +56,8 @@
|
||||||
#define EEPROM_CID_CAMEO 0X8
|
#define EEPROM_CID_CAMEO 0X8
|
||||||
#define EEPROM_CID_SITECOM 0x9
|
#define EEPROM_CID_SITECOM 0x9
|
||||||
#define EEPROM_CID_COREGA 0xB
|
#define EEPROM_CID_COREGA 0xB
|
||||||
#define EEPROM_CID_EDIMAX_BELKIN 0xC
|
#define EEPROM_CID_EDIMAX_BELK 0xC
|
||||||
#define EEPROM_CID_SERCOMM_BELKIN 0xE
|
#define EEPROM_CID_SERCOMM_BELK 0xE
|
||||||
#define EEPROM_CID_CAMEO1 0xF
|
#define EEPROM_CID_CAMEO1 0xF
|
||||||
#define EEPROM_CID_WNC_COREGA 0x12
|
#define EEPROM_CID_WNC_COREGA 0x12
|
||||||
#define EEPROM_CID_CLEVO 0x13
|
#define EEPROM_CID_CLEVO 0x13
|
||||||
|
|
|
@ -248,21 +248,21 @@ extern struct iw_handler_def rtw_handlers_def;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
extern NDIS_STATUS drv_query_info(
|
extern NDIS_STATUS drv_query_info(
|
||||||
IN _nic_hdl MiniportAdapterContext,
|
_nic_hdl MiniportAdapterContext,
|
||||||
IN NDIS_OID Oid,
|
NDIS_OID Oid,
|
||||||
IN void * InformationBuffer,
|
void * InformationBuffer,
|
||||||
IN u32 InformationBufferLength,
|
u32 InformationBufferLength,
|
||||||
OUT u32* BytesWritten,
|
u32* BytesWritten,
|
||||||
OUT u32* BytesNeeded
|
u32* BytesNeeded
|
||||||
);
|
);
|
||||||
|
|
||||||
extern NDIS_STATUS drv_set_info(
|
extern NDIS_STATUS drv_set_info(
|
||||||
IN _nic_hdl MiniportAdapterContext,
|
_nic_hdl MiniportAdapterContext,
|
||||||
IN NDIS_OID Oid,
|
NDIS_OID Oid,
|
||||||
IN void * InformationBuffer,
|
void * InformationBuffer,
|
||||||
IN u32 InformationBufferLength,
|
u32 InformationBufferLength,
|
||||||
OUT u32* BytesRead,
|
u32* BytesRead,
|
||||||
OUT u32* BytesNeeded
|
u32* BytesNeeded
|
||||||
);
|
);
|
||||||
|
|
||||||
#endif // #ifndef __INC_CEINFO_
|
#endif // #ifndef __INC_CEINFO_
|
||||||
|
|
|
@ -31,8 +31,8 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define MAX_BSS_CNT 128
|
#define MAX_BSS_CNT 128
|
||||||
//#define MAX_JOIN_TIMEOUT 2000
|
//#define MAX_JOIN_TIME 2000
|
||||||
//#define MAX_JOIN_TIMEOUT 2500
|
//#define MAX_JOIN_TIME 2500
|
||||||
#define MAX_JOIN_TIMEOUT 6500
|
#define MAX_JOIN_TIMEOUT 6500
|
||||||
|
|
||||||
// Commented by Albert 20101105
|
// Commented by Albert 20101105
|
||||||
|
@ -601,17 +601,17 @@ void rtw_indicate_wx_disassoc_event(_adapter *padapter);
|
||||||
extern thread_return event_thread(void *context);
|
extern thread_return event_thread(void *context);
|
||||||
|
|
||||||
extern void rtw_join_timeout_handler (
|
extern void rtw_join_timeout_handler (
|
||||||
IN void * SystemSpecific1,
|
void * SystemSpecific1,
|
||||||
IN void * FunctionContext,
|
void * FunctionContext,
|
||||||
IN void * SystemSpecific2,
|
void * SystemSpecific2,
|
||||||
IN void * SystemSpecific3
|
void * SystemSpecific3
|
||||||
);
|
);
|
||||||
|
|
||||||
extern void _rtw_scan_timeout_handler (
|
extern void _rtw_scan_timeout_handler (
|
||||||
IN void * SystemSpecific1,
|
void * SystemSpecific1,
|
||||||
IN void * FunctionContext,
|
void * FunctionContext,
|
||||||
IN void * SystemSpecific2,
|
void * SystemSpecific2,
|
||||||
IN void * SystemSpecific3
|
void * SystemSpecific3
|
||||||
);
|
);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -72,7 +72,7 @@
|
||||||
#define DYNAMIC_BB_CCK_PD BIT(5)
|
#define DYNAMIC_BB_CCK_PD BIT(5)
|
||||||
#define DYNAMIC_BB_ANT_DIV BIT(6)
|
#define DYNAMIC_BB_ANT_DIV BIT(6)
|
||||||
#define DYNAMIC_BB_PWR_SAVE BIT(7)
|
#define DYNAMIC_BB_PWR_SAVE BIT(7)
|
||||||
#define DYNAMIC_BB_PWR_TRAIN BIT(8)
|
#define DYNAMIC_BB_PWR_TRA BIT(8)
|
||||||
#define DYNAMIC_BB_RATE_ADAPTIVE BIT(9)
|
#define DYNAMIC_BB_RATE_ADAPTIVE BIT(9)
|
||||||
#define DYNAMIC_BB_PATH_DIV BIT(10)
|
#define DYNAMIC_BB_PATH_DIV BIT(10)
|
||||||
#define DYNAMIC_BB_PSD BIT(11)
|
#define DYNAMIC_BB_PSD BIT(11)
|
||||||
|
|
|
@ -52,17 +52,17 @@
|
||||||
|
|
||||||
enum Power_Mgnt
|
enum Power_Mgnt
|
||||||
{
|
{
|
||||||
PS_MODE_ACTIVE = 0 ,
|
PS_MODE_ACTIVE = 0,
|
||||||
PS_MODE_MIN ,
|
PS_MODE_MIN,
|
||||||
PS_MODE_MAX ,
|
PS_MODE_MAX,
|
||||||
PS_MODE_DTIM ,
|
PS_MODE_DTIM,
|
||||||
PS_MODE_VOIP ,
|
PS_MODE_VOIP,
|
||||||
PS_MODE_UAPSD_WMM ,
|
PS_MODE_UAPSD_WMM,
|
||||||
PS_MODE_UAPSD ,
|
PS_MODE_UAPSD,
|
||||||
PS_MODE_IBSS ,
|
PS_MODE_IBSS,
|
||||||
PS_MODE_WWLAN ,
|
PS_MODE_WWLAN,
|
||||||
PM_Radio_Off ,
|
PM_Radio_Off,
|
||||||
PM_Card_Disable ,
|
PM_Card_Disable ,
|
||||||
PS_MODE_NUM
|
PS_MODE_NUM
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -342,7 +342,7 @@ void rtw_ps_processor(_adapter*padapter);
|
||||||
int autoresume_enter(_adapter* padapter);
|
int autoresume_enter(_adapter* padapter);
|
||||||
#endif
|
#endif
|
||||||
#ifdef SUPPORT_HW_RFOFF_DETECTED
|
#ifdef SUPPORT_HW_RFOFF_DETECTED
|
||||||
rt_rf_power_state RfOnOffDetect(IN PADAPTER pAdapter );
|
rt_rf_power_state RfOnOffDetect( PADAPTER pAdapter );
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -430,10 +430,10 @@ int tdls_verify_mic(u8 *kck, u8 trans_seq,
|
||||||
|
|
||||||
#ifdef PLATFORM_WINDOWS
|
#ifdef PLATFORM_WINDOWS
|
||||||
void rtw_use_tkipkey_handler (
|
void rtw_use_tkipkey_handler (
|
||||||
IN void * SystemSpecific1,
|
void * SystemSpecific1,
|
||||||
IN void * FunctionContext,
|
void * FunctionContext,
|
||||||
IN void * SystemSpecific2,
|
void * SystemSpecific2,
|
||||||
IN void * SystemSpecific3
|
void * SystemSpecific3
|
||||||
);
|
);
|
||||||
#endif
|
#endif
|
||||||
#ifdef PLATFORM_LINUX
|
#ifdef PLATFORM_LINUX
|
||||||
|
|
|
@ -39,7 +39,7 @@
|
||||||
|
|
||||||
#define TPK_RESEND_COUNT 301
|
#define TPK_RESEND_COUNT 301
|
||||||
#define CH_SWITCH_TIME 10
|
#define CH_SWITCH_TIME 10
|
||||||
#define CH_SWITCH_TIMEOUT 30
|
#define CH_SWITCH_TIME 30
|
||||||
#define TDLS_STAY_TIME 500
|
#define TDLS_STAY_TIME 500
|
||||||
#define TDLS_SIGNAL_THRESH 0x20
|
#define TDLS_SIGNAL_THRESH 0x20
|
||||||
#define TDLS_WATCHDOG_PERIOD 10 //Periodically sending tdls discovery request in TDLS_WATCHDOG_PERIOD * 2 sec
|
#define TDLS_WATCHDOG_PERIOD 10 //Periodically sending tdls discovery request in TDLS_WATCHDOG_PERIOD * 2 sec
|
||||||
|
|
|
@ -32,7 +32,7 @@
|
||||||
#define MAX_USBCTRL_VENDORREQ_TIMES 1
|
#define MAX_USBCTRL_VENDORREQ_TIMES 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define RTW_USB_BULKOUT_TIMEOUT 5000//ms
|
#define RTW_USB_BULKOUT_TIME 5000//ms
|
||||||
|
|
||||||
#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0)) || (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,18))
|
#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0)) || (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,18))
|
||||||
#define _usbctrl_vendorreq_async_callback(urb, regs) _usbctrl_vendorreq_async_callback(urb)
|
#define _usbctrl_vendorreq_async_callback(urb, regs) _usbctrl_vendorreq_async_callback(urb)
|
||||||
|
|
|
@ -229,7 +229,7 @@ enum WIFI_REG_DOMAIN {
|
||||||
DOMAIN_FCC = 1,
|
DOMAIN_FCC = 1,
|
||||||
DOMAIN_IC = 2,
|
DOMAIN_IC = 2,
|
||||||
DOMAIN_ETSI = 3,
|
DOMAIN_ETSI = 3,
|
||||||
DOMAIN_SPAIN = 4,
|
DOMAIN_SPA = 4,
|
||||||
DOMAIN_FRANCE = 5,
|
DOMAIN_FRANCE = 5,
|
||||||
DOMAIN_MKK = 6,
|
DOMAIN_MKK = 6,
|
||||||
DOMAIN_ISRAEL = 7,
|
DOMAIN_ISRAEL = 7,
|
||||||
|
@ -993,7 +993,7 @@ typedef enum _HT_CAP_AMPDU_FACTOR {
|
||||||
#define WPS_PDT_SCID_RTK_DMP WPS_PDT_SCID_MEDIA_SERVER
|
#define WPS_PDT_SCID_RTK_DMP WPS_PDT_SCID_MEDIA_SERVER
|
||||||
|
|
||||||
// Value of Device Password ID
|
// Value of Device Password ID
|
||||||
#define WPS_DPID_PIN 0x0000
|
#define WPS_DPID_P 0x0000
|
||||||
#define WPS_DPID_USER_SPEC 0x0001
|
#define WPS_DPID_USER_SPEC 0x0001
|
||||||
#define WPS_DPID_MACHINE_SPEC 0x0002
|
#define WPS_DPID_MACHINE_SPEC 0x0002
|
||||||
#define WPS_DPID_REKEY 0x0003
|
#define WPS_DPID_REKEY 0x0003
|
||||||
|
@ -1111,12 +1111,12 @@ typedef enum _HT_CAP_AMPDU_FACTOR {
|
||||||
#define P2P_FINDPHASE_EX_SOCIAL_LAST P2P_FINDPHASE_EX_MAX
|
#define P2P_FINDPHASE_EX_SOCIAL_LAST P2P_FINDPHASE_EX_MAX
|
||||||
|
|
||||||
#define P2P_PROVISION_TIMEOUT 5000 // 5 seconds timeout for sending the provision discovery request
|
#define P2P_PROVISION_TIMEOUT 5000 // 5 seconds timeout for sending the provision discovery request
|
||||||
#define P2P_CONCURRENT_PROVISION_TIMEOUT 3000 // 3 seconds timeout for sending the provision discovery request under concurrent mode
|
#define P2P_CONCURRENT_PROVISION_TIME 3000 // 3 seconds timeout for sending the provision discovery request under concurrent mode
|
||||||
#define P2P_GO_NEGO_TIMEOUT 5000 // 5 seconds timeout for receiving the group negotation response
|
#define P2P_GO_NEGO_TIMEOUT 5000 // 5 seconds timeout for receiving the group negotation response
|
||||||
#define P2P_CONCURRENT_GO_NEGO_TIMEOUT 3000 // 3 seconds timeout for sending the negotiation request under concurrent mode
|
#define P2P_CONCURRENT_GO_NEGO_TIME 3000 // 3 seconds timeout for sending the negotiation request under concurrent mode
|
||||||
#define P2P_TX_PRESCAN_TIMEOUT 100 // 100ms
|
#define P2P_TX_PRESCAN_TIMEOUT 100 // 100ms
|
||||||
#define P2P_INVITE_TIMEOUT 5000 // 5 seconds timeout for sending the invitation request
|
#define P2P_INVITE_TIMEOUT 5000 // 5 seconds timeout for sending the invitation request
|
||||||
#define P2P_CONCURRENT_INVITE_TIMEOUT 3000 // 3 seconds timeout for sending the invitation request under concurrent mode
|
#define P2P_CONCURRENT_INVITE_TIME 3000 // 3 seconds timeout for sending the invitation request under concurrent mode
|
||||||
#define P2P_RESET_SCAN_CH 25000 // 25 seconds timeout to reset the scan channel ( based on channel plan )
|
#define P2P_RESET_SCAN_CH 25000 // 25 seconds timeout to reset the scan channel ( based on channel plan )
|
||||||
#define P2P_MAX_INTENT 15
|
#define P2P_MAX_INTENT 15
|
||||||
|
|
||||||
|
@ -1133,8 +1133,8 @@ typedef enum _HT_CAP_AMPDU_FACTOR {
|
||||||
#define WPS_CM_KEYPAD 0x0100
|
#define WPS_CM_KEYPAD 0x0100
|
||||||
#define WPS_CM_SW_PUHS_BUTTON 0x0280
|
#define WPS_CM_SW_PUHS_BUTTON 0x0280
|
||||||
#define WPS_CM_HW_PUHS_BUTTON 0x0480
|
#define WPS_CM_HW_PUHS_BUTTON 0x0480
|
||||||
#define WPS_CM_SW_DISPLAY_PIN 0x2008
|
#define WPS_CM_SW_DISPLAY_P 0x2008
|
||||||
#define WPS_CM_LCD_DISPLAY_PIN 0x4008
|
#define WPS_CM_LCD_DISPLAY_P 0x4008
|
||||||
|
|
||||||
enum P2P_ROLE {
|
enum P2P_ROLE {
|
||||||
P2P_ROLE_DISABLE = 0,
|
P2P_ROLE_DISABLE = 0,
|
||||||
|
|
|
@ -26,11 +26,7 @@
|
||||||
#include <xmit_osdep.h>
|
#include <xmit_osdep.h>
|
||||||
#include <hal_intf.h>
|
#include <hal_intf.h>
|
||||||
#include <rtw_version.h>
|
#include <rtw_version.h>
|
||||||
#ifndef CONFIG_USB_HCI
|
#include <linux/usb.h>
|
||||||
|
|
||||||
#error "CONFIG_USB_HCI shall be on!\n"
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <usb_vendor_req.h>
|
#include <usb_vendor_req.h>
|
||||||
#include <usb_ops.h>
|
#include <usb_ops.h>
|
||||||
|
|
Loading…
Reference in a new issue