rtl8188eu: Remove unused IN and OUT directives used only for Windows

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
Larry Finger 2013-05-26 22:51:56 -05:00
parent 058fa5a916
commit 78adabf36d
43 changed files with 289 additions and 324 deletions

View file

@ -142,9 +142,9 @@ Efuse_PowerSwitch(
*---------------------------------------------------------------------------*/ *---------------------------------------------------------------------------*/
u16 u16
Efuse_GetCurrentSize( Efuse_GetCurrentSize(
IN PADAPTER pAdapter, PADAPTER pAdapter,
IN u8 efuseType, u8 efuseType,
IN bool bPseudoTest) bool bPseudoTest)
{ {
u16 ret=0; u16 ret=0;
@ -155,7 +155,7 @@ Efuse_GetCurrentSize(
/* 11/16/2008 MH Add description. Get current efuse area enabled word!!. */ /* 11/16/2008 MH Add description. Get current efuse area enabled word!!. */
u8 u8
Efuse_CalculateWordCnts(IN u8 word_en) Efuse_CalculateWordCnts(u8 word_en)
{ {
u8 word_cnts = 0; u8 word_cnts = 0;
if (!(word_en & BIT(0))) word_cnts++; // 0 : write enable if (!(word_en & BIT(0))) word_cnts++; // 0 : write enable
@ -181,7 +181,7 @@ ReadEFuseByte(
PADAPTER Adapter, PADAPTER Adapter,
u16 _offset, u16 _offset,
u8 *pbuf, u8 *pbuf,
IN bool bPseudoTest) bool bPseudoTest)
{ {
u32 value32; u32 value32;
u8 readbyte; u8 readbyte;
@ -1083,9 +1083,9 @@ efuse_ShadowWrite4Byte(
* *
*---------------------------------------------------------------------------*/ *---------------------------------------------------------------------------*/
void EFUSE_ShadowMapUpdate( void EFUSE_ShadowMapUpdate(
IN PADAPTER pAdapter, PADAPTER pAdapter,
IN u8 efuseType, u8 efuseType,
IN bool bPseudoTest) bool bPseudoTest)
{ {
EEPROM_EFUSE_PRIV *pEEPROM = GET_EEPROM_EFUSE_PRIV(pAdapter); EEPROM_EFUSE_PRIV *pEEPROM = GET_EEPROM_EFUSE_PRIV(pAdapter);
u16 mapLen=0; u16 mapLen=0;

View file

@ -8468,11 +8468,8 @@ Following are some utitity fuctions for WiFi MLME
*****************************************************************************/ *****************************************************************************/
bool IsLegal5GChannel( bool IsLegal5GChannel(PADAPTER Adapter, u8 channel)
IN PADAPTER Adapter,
IN u8 channel)
{ {
int i=0; int i=0;
u8 Channel_5G[45] = {36,38,40,42,44,46,48,50,52,54,56,58, u8 Channel_5G[45] = {36,38,40,42,44,46,48,50,52,54,56,58,
60,62,64,100,102,104,106,108,110,112,114,116,118,120,122, 60,62,64,100,102,104,106,108,110,112,114,116,118,120,122,

View file

@ -772,14 +772,13 @@ _func_exit_;
// Description: Leave all power save mode: LPS, FwLPS, IPS if needed. // Description: Leave all power save mode: LPS, FwLPS, IPS if needed.
// Move code to function by tynli. 2010.03.26. // Move code to function by tynli. 2010.03.26.
// //
void LeaveAllPowerSaveMode(IN PADAPTER Adapter) void LeaveAllPowerSaveMode(PADAPTER Adapter)
{ {
struct mlme_priv *pmlmepriv = &(Adapter->mlmepriv); struct mlme_priv *pmlmepriv = &(Adapter->mlmepriv);
u8 enqueue = 0; u8 enqueue = 0;
_func_enter_; _func_enter_;
//DBG_88E("%s.....\n",__func__);
if (check_fwstate(pmlmepriv, _FW_LINKED) == true) if (check_fwstate(pmlmepriv, _FW_LINKED) == true)
{ //connect { //connect
#ifdef CONFIG_LPS_LCLK #ifdef CONFIG_LPS_LCLK

View file

@ -309,20 +309,15 @@ void get_rate_set(_adapter *padapter, unsigned char *pbssrate, int *bssrate_len)
_rtw_memcpy(pbssrate, supportedrates, *bssrate_len); _rtw_memcpy(pbssrate, supportedrates, *bssrate_len);
} }
void UpdateBrateTbl( void UpdateBrateTbl(PADAPTER Adapter, u8 *mBratesOS)
IN PADAPTER Adapter,
IN u8 *mBratesOS
)
{ {
u8 i; u8 i;
u8 rate; u8 rate;
// 1M, 2M, 5.5M, 11M, 6M, 12M, 24M are mandatory. // 1M, 2M, 5.5M, 11M, 6M, 12M, 24M are mandatory.
for (i=0;i<NDIS_802_11_LENGTH_RATES_EX;i++) for (i = 0; i < NDIS_802_11_LENGTH_RATES_EX; i++) {
{
rate = mBratesOS[i] & 0x7f; rate = mBratesOS[i] & 0x7f;
switch (rate) switch (rate) {
{
case IEEE80211_CCK_RATE_1MB: case IEEE80211_CCK_RATE_1MB:
case IEEE80211_CCK_RATE_2MB: case IEEE80211_CCK_RATE_2MB:
case IEEE80211_CCK_RATE_5MB: case IEEE80211_CCK_RATE_5MB:
@ -334,7 +329,6 @@ void UpdateBrateTbl(
break; break;
} }
} }
} }
void UpdateBrateTblForSoftAP(u8 *bssrateset, u32 bssratelen) void UpdateBrateTblForSoftAP(u8 *bssrateset, u32 bssratelen)

View file

@ -314,7 +314,7 @@ RateUpfinish:
return 0; return 0;
} }
static void odm_ResetRaCounter_8188E( IN PODM_RA_INFO_T pRaInfo){ static void odm_ResetRaCounter_8188E(PODM_RA_INFO_T pRaInfo){
u1Byte RateID; u1Byte RateID;
RateID=pRaInfo->DecisionRate; RateID=pRaInfo->DecisionRate;
pRaInfo->NscUp=(N_THRESHOLD_HIGH[RateID]+N_THRESHOLD_LOW[RateID])>>1; pRaInfo->NscUp=(N_THRESHOLD_HIGH[RateID]+N_THRESHOLD_LOW[RateID])>>1;
@ -731,7 +731,7 @@ ODM_RAInfo_Init(
int int
ODM_RAInfo_Init_all( ODM_RAInfo_Init_all(
IN PDM_ODM_T pDM_Odm PDM_ODM_T pDM_Odm
) )
{ {
u1Byte MacID = 0; u1Byte MacID = 0;
@ -792,11 +792,11 @@ ODM_RA_GetHwPwrStatus_8188E(
void void
ODM_RA_UpdateRateInfo_8188E( ODM_RA_UpdateRateInfo_8188E(
IN PDM_ODM_T pDM_Odm, PDM_ODM_T pDM_Odm,
IN u1Byte MacID, u1Byte MacID,
IN u1Byte RateID, u1Byte RateID,
IN u4Byte RateMask, u4Byte RateMask,
IN u1Byte SGIEnable u1Byte SGIEnable
) )
{ {
PODM_RA_INFO_T pRaInfo = NULL; PODM_RA_INFO_T pRaInfo = NULL;
@ -1009,7 +1009,7 @@ ODM_RAInfo_Init(
int int
ODM_RAInfo_Init_all( ODM_RAInfo_Init_all(
IN PDM_ODM_T pDM_Odm PDM_ODM_T pDM_Odm
) )
{ {
return 0; return 0;
@ -1043,11 +1043,11 @@ ODM_RA_GetHwPwrStatus_8188E(
void void
ODM_RA_UpdateRateInfo_8188E( ODM_RA_UpdateRateInfo_8188E(
IN PDM_ODM_T pDM_Odm, PDM_ODM_T pDM_Odm,
IN u1Byte MacID, u1Byte MacID,
IN u1Byte RateID, u1Byte RateID,
IN u4Byte RateMask, u4Byte RateMask,
IN u1Byte SGIEnable u1Byte SGIEnable
) )
{ {
return; return;

View file

@ -193,7 +193,7 @@ u4Byte Array_AGC_TAB_1T_8188E[] = {
HAL_STATUS HAL_STATUS
ODM_ReadAndConfig_AGC_TAB_1T_8188E( ODM_ReadAndConfig_AGC_TAB_1T_8188E(
IN PDM_ODM_T pDM_Odm PDM_ODM_T pDM_Odm
) )
{ {
#define READ_NEXT_PAIR(v1, v2, i) do { i += 2; v1 = Array[i]; v2 = Array[i+1]; } while (0) #define READ_NEXT_PAIR(v1, v2, i) do { i += 2; v1 = Array[i]; v2 = Array[i+1]; } while (0)
@ -524,7 +524,7 @@ u4Byte Array_PHY_REG_1T_8188E[] = {
HAL_STATUS HAL_STATUS
ODM_ReadAndConfig_PHY_REG_1T_8188E( ODM_ReadAndConfig_PHY_REG_1T_8188E(
IN PDM_ODM_T pDM_Odm PDM_ODM_T pDM_Odm
) )
{ {
#define READ_NEXT_PAIR(v1, v2, i) do { i += 2; v1 = Array[i]; v2 = Array[i+1]; } while (0) #define READ_NEXT_PAIR(v1, v2, i) do { i += 2; v1 = Array[i]; v2 = Array[i+1]; } while (0)
@ -831,7 +831,7 @@ u4Byte Array_PHY_REG_PG_8188E[] = {
void void
ODM_ReadAndConfig_PHY_REG_PG_8188E( ODM_ReadAndConfig_PHY_REG_PG_8188E(
IN PDM_ODM_T pDM_Odm PDM_ODM_T pDM_Odm
) )
{ {
u4Byte hex = 0; u4Byte hex = 0;

View file

@ -153,7 +153,7 @@ u4Byte Array_MAC_REG_8188E[] = {
HAL_STATUS HAL_STATUS
ODM_ReadAndConfig_MAC_REG_8188E( ODM_ReadAndConfig_MAC_REG_8188E(
IN PDM_ODM_T pDM_Odm PDM_ODM_T pDM_Odm
) )
{ {
#define READ_NEXT_PAIR(v1, v2, i) do { i += 2; v1 = Array[i]; v2 = Array[i+1]; } while (0) #define READ_NEXT_PAIR(v1, v2, i) do { i += 2; v1 = Array[i]; v2 = Array[i+1]; } while (0)

View file

@ -162,10 +162,7 @@ u4Byte Array_RadioA_1T_8188E[] = {
0x000, 0x00033E60, 0x000, 0x00033E60,
}; };
HAL_STATUS HAL_STATUS ODM_ReadAndConfig_RadioA_1T_8188E(PDM_ODM_T pDM_Odm)
ODM_ReadAndConfig_RadioA_1T_8188E(
IN PDM_ODM_T pDM_Odm
)
{ {
#define READ_NEXT_PAIR(v1, v2, i) do { i += 2; v1 = Array[i]; v2 = Array[i+1]; } while (0) #define READ_NEXT_PAIR(v1, v2, i) do { i += 2; v1 = Array[i]; v2 = Array[i+1]; } while (0)

View file

@ -179,10 +179,10 @@ phy_PathB_IQK_8192C(
void void
phy_PathAFillIQKMatrix( phy_PathAFillIQKMatrix(
PADAPTER pAdapter, PADAPTER pAdapter,
IN bool bIQKOK, bool bIQKOK,
s4Byte result[][8], s4Byte result[][8],
u1Byte final_candidate, u1Byte final_candidate,
IN bool bTxOnly bool bTxOnly
) )
{ {
u4Byte Oldval_0, X, TX0_A, reg; u4Byte Oldval_0, X, TX0_A, reg;
@ -246,7 +246,7 @@ phy_PathAFillIQKMatrix(
void void
phy_PathBFillIQKMatrix( phy_PathBFillIQKMatrix(
PADAPTER pAdapter, PADAPTER pAdapter,
IN bool bIQKOK, bool bIQKOK,
s4Byte result[][8], s4Byte result[][8],
u1Byte final_candidate, u1Byte final_candidate,
bool bTxOnly //do Tx only bool bTxOnly //do Tx only
@ -1498,7 +1498,7 @@ PHY_APCalibrate_8192C(
void void
ODM_ResetIQKResult( ODM_ResetIQKResult(
IN PDM_ODM_T pDM_Odm PDM_ODM_T pDM_Odm
) )
{ {
u1Byte i; u1Byte i;

View file

@ -155,9 +155,9 @@ odm_TxPwrTrackSetPwr88E(
void void
odm_TXPowerTrackingCallback_ThermalMeter_8188E( odm_TXPowerTrackingCallback_ThermalMeter_8188E(
#if (DM_ODM_SUPPORT_TYPE & ODM_AP) #if (DM_ODM_SUPPORT_TYPE & ODM_AP)
IN PDM_ODM_T pDM_Odm PDM_ODM_T pDM_Odm
#else #else
IN PADAPTER Adapter PADAPTER Adapter
#endif #endif
) )
{ {
@ -630,7 +630,7 @@ odm_TXPowerTrackingCallback_ThermalMeter_8188E(
u1Byte //bit0 = 1 => Tx OK, bit1 = 1 => Rx OK u1Byte //bit0 = 1 => Tx OK, bit1 = 1 => Rx OK
phy_PathA_IQK_8188E( phy_PathA_IQK_8188E(
#if (DM_ODM_SUPPORT_TYPE & ODM_AP) #if (DM_ODM_SUPPORT_TYPE & ODM_AP)
IN PDM_ODM_T pDM_Odm, PDM_ODM_T pDM_Odm,
#else #else
PADAPTER pAdapter, PADAPTER pAdapter,
#endif #endif
@ -694,7 +694,7 @@ phy_PathA_IQK_8188E(
u1Byte //bit0 = 1 => Tx OK, bit1 = 1 => Rx OK u1Byte //bit0 = 1 => Tx OK, bit1 = 1 => Rx OK
phy_PathA_RxIQK( phy_PathA_RxIQK(
#if (DM_ODM_SUPPORT_TYPE & ODM_AP) #if (DM_ODM_SUPPORT_TYPE & ODM_AP)
IN PDM_ODM_T pDM_Odm, PDM_ODM_T pDM_Odm,
#else #else
PADAPTER pAdapter, PADAPTER pAdapter,
#endif #endif
@ -839,7 +839,7 @@ phy_PathA_RxIQK(
u1Byte //bit0 = 1 => Tx OK, bit1 = 1 => Rx OK u1Byte //bit0 = 1 => Tx OK, bit1 = 1 => Rx OK
phy_PathB_IQK_8188E( phy_PathB_IQK_8188E(
#if (DM_ODM_SUPPORT_TYPE & ODM_AP) #if (DM_ODM_SUPPORT_TYPE & ODM_AP)
IN PDM_ODM_T pDM_Odm PDM_ODM_T pDM_Odm
#else #else
PADAPTER pAdapter PADAPTER pAdapter
#endif #endif
@ -902,14 +902,14 @@ phy_PathB_IQK_8188E(
void void
_PHY_PathAFillIQKMatrix( _PHY_PathAFillIQKMatrix(
#if (DM_ODM_SUPPORT_TYPE & ODM_AP) #if (DM_ODM_SUPPORT_TYPE & ODM_AP)
IN PDM_ODM_T pDM_Odm, PDM_ODM_T pDM_Odm,
#else #else
PADAPTER pAdapter, PADAPTER pAdapter,
#endif #endif
IN bool bIQKOK, bool bIQKOK,
s4Byte result[][8], s4Byte result[][8],
u1Byte final_candidate, u1Byte final_candidate,
IN bool bTxOnly bool bTxOnly
) )
{ {
u4Byte Oldval_0, X, TX0_A, reg; u4Byte Oldval_0, X, TX0_A, reg;
@ -977,11 +977,11 @@ _PHY_PathAFillIQKMatrix(
void void
_PHY_PathBFillIQKMatrix( _PHY_PathBFillIQKMatrix(
#if (DM_ODM_SUPPORT_TYPE & ODM_AP) #if (DM_ODM_SUPPORT_TYPE & ODM_AP)
IN PDM_ODM_T pDM_Odm, PDM_ODM_T pDM_Odm,
#else #else
PADAPTER pAdapter, PADAPTER pAdapter,
#endif #endif
IN bool bIQKOK, bool bIQKOK,
s4Byte result[][8], s4Byte result[][8],
u1Byte final_candidate, u1Byte final_candidate,
bool bTxOnly //do Tx only bool bTxOnly //do Tx only
@ -1081,7 +1081,7 @@ ODM_CheckPowerStatus(
void void
_PHY_SaveADDARegisters( _PHY_SaveADDARegisters(
#if (DM_ODM_SUPPORT_TYPE & ODM_AP) #if (DM_ODM_SUPPORT_TYPE & ODM_AP)
IN PDM_ODM_T pDM_Odm, PDM_ODM_T pDM_Odm,
#else #else
PADAPTER pAdapter, PADAPTER pAdapter,
#endif #endif
@ -1114,7 +1114,7 @@ _PHY_SaveADDARegisters(
void void
_PHY_SaveMACRegisters( _PHY_SaveMACRegisters(
#if (DM_ODM_SUPPORT_TYPE & ODM_AP) #if (DM_ODM_SUPPORT_TYPE & ODM_AP)
IN PDM_ODM_T pDM_Odm, PDM_ODM_T pDM_Odm,
#else #else
PADAPTER pAdapter, PADAPTER pAdapter,
#endif #endif
@ -1144,7 +1144,7 @@ _PHY_SaveMACRegisters(
void void
_PHY_ReloadADDARegisters( _PHY_ReloadADDARegisters(
#if (DM_ODM_SUPPORT_TYPE & ODM_AP) #if (DM_ODM_SUPPORT_TYPE & ODM_AP)
IN PDM_ODM_T pDM_Odm, PDM_ODM_T pDM_Odm,
#else #else
PADAPTER pAdapter, PADAPTER pAdapter,
#endif #endif
@ -1174,7 +1174,7 @@ _PHY_ReloadADDARegisters(
void void
_PHY_ReloadMACRegisters( _PHY_ReloadMACRegisters(
#if (DM_ODM_SUPPORT_TYPE & ODM_AP) #if (DM_ODM_SUPPORT_TYPE & ODM_AP)
IN PDM_ODM_T pDM_Odm, PDM_ODM_T pDM_Odm,
#else #else
PADAPTER pAdapter, PADAPTER pAdapter,
#endif #endif
@ -1203,7 +1203,7 @@ _PHY_ReloadMACRegisters(
void void
_PHY_PathADDAOn( _PHY_PathADDAOn(
#if (DM_ODM_SUPPORT_TYPE & ODM_AP) #if (DM_ODM_SUPPORT_TYPE & ODM_AP)
IN PDM_ODM_T pDM_Odm, PDM_ODM_T pDM_Odm,
#else #else
PADAPTER pAdapter, PADAPTER pAdapter,
#endif #endif
@ -1243,7 +1243,7 @@ _PHY_PathADDAOn(
void void
_PHY_MACSettingCalibration( _PHY_MACSettingCalibration(
#if (DM_ODM_SUPPORT_TYPE & ODM_AP) #if (DM_ODM_SUPPORT_TYPE & ODM_AP)
IN PDM_ODM_T pDM_Odm, PDM_ODM_T pDM_Odm,
#else #else
PADAPTER pAdapter, PADAPTER pAdapter,
#endif #endif
@ -1275,9 +1275,9 @@ _PHY_MACSettingCalibration(
void void
_PHY_PathAStandBy( _PHY_PathAStandBy(
#if (DM_ODM_SUPPORT_TYPE & ODM_AP) #if (DM_ODM_SUPPORT_TYPE & ODM_AP)
IN PDM_ODM_T pDM_Odm PDM_ODM_T pDM_Odm
#else #else
IN PADAPTER pAdapter PADAPTER pAdapter
#endif #endif
) )
{ {
@ -1300,7 +1300,7 @@ _PHY_PathAStandBy(
void void
_PHY_PIModeSwitch( _PHY_PIModeSwitch(
#if (DM_ODM_SUPPORT_TYPE & ODM_AP) #if (DM_ODM_SUPPORT_TYPE & ODM_AP)
IN PDM_ODM_T pDM_Odm, PDM_ODM_T pDM_Odm,
#else #else
PADAPTER pAdapter, PADAPTER pAdapter,
#endif #endif
@ -1327,7 +1327,7 @@ _PHY_PIModeSwitch(
bool bool
phy_SimularityCompare_8188E( phy_SimularityCompare_8188E(
#if (DM_ODM_SUPPORT_TYPE & ODM_AP) #if (DM_ODM_SUPPORT_TYPE & ODM_AP)
IN PDM_ODM_T pDM_Odm, PDM_ODM_T pDM_Odm,
#else #else
PADAPTER pAdapter, PADAPTER pAdapter,
#endif #endif
@ -1462,7 +1462,7 @@ phy_SimularityCompare_8188E(
void void
phy_IQCalibrate_8188E( phy_IQCalibrate_8188E(
#if (DM_ODM_SUPPORT_TYPE & ODM_AP) #if (DM_ODM_SUPPORT_TYPE & ODM_AP)
IN PDM_ODM_T pDM_Odm, PDM_ODM_T pDM_Odm,
#else #else
PADAPTER pAdapter, PADAPTER pAdapter,
#endif #endif
@ -1742,7 +1742,7 @@ else
void void
phy_LCCalibrate_8188E( phy_LCCalibrate_8188E(
#if (DM_ODM_SUPPORT_TYPE & ODM_AP) #if (DM_ODM_SUPPORT_TYPE & ODM_AP)
IN PDM_ODM_T pDM_Odm, PDM_ODM_T pDM_Odm,
#else #else
PADAPTER pAdapter, PADAPTER pAdapter,
#endif #endif
@ -1833,7 +1833,7 @@ phy_LCCalibrate_8188E(
void void
phy_APCalibrate_8188E( phy_APCalibrate_8188E(
#if (DM_ODM_SUPPORT_TYPE & ODM_AP) #if (DM_ODM_SUPPORT_TYPE & ODM_AP)
IN PDM_ODM_T pDM_Odm, PDM_ODM_T pDM_Odm,
#else #else
PADAPTER pAdapter, PADAPTER pAdapter,
#endif #endif
@ -2326,7 +2326,7 @@ if (*(pDM_Odm->mp_mode) != 1)
void void
PHY_IQCalibrate_8188E( PHY_IQCalibrate_8188E(
#if (DM_ODM_SUPPORT_TYPE & ODM_AP) #if (DM_ODM_SUPPORT_TYPE & ODM_AP)
IN PDM_ODM_T pDM_Odm, PDM_ODM_T pDM_Odm,
#else #else
PADAPTER pAdapter, PADAPTER pAdapter,
#endif #endif
@ -2592,7 +2592,7 @@ if (*(pDM_Odm->mp_mode) == 1)
void void
PHY_LCCalibrate_8188E( PHY_LCCalibrate_8188E(
#if (DM_ODM_SUPPORT_TYPE & ODM_AP) #if (DM_ODM_SUPPORT_TYPE & ODM_AP)
IN PDM_ODM_T pDM_Odm PDM_ODM_T pDM_Odm
#else #else
PADAPTER pAdapter PADAPTER pAdapter
#endif #endif
@ -2681,7 +2681,7 @@ if (*(pDM_Odm->mp_mode) == 1)
void void
PHY_APCalibrate_8188E( PHY_APCalibrate_8188E(
#if (DM_ODM_SUPPORT_TYPE & ODM_AP) #if (DM_ODM_SUPPORT_TYPE & ODM_AP)
IN PDM_ODM_T pDM_Odm, PDM_ODM_T pDM_Odm,
#else #else
PADAPTER pAdapter, PADAPTER pAdapter,
#endif #endif
@ -2731,7 +2731,7 @@ PHY_APCalibrate_8188E(
} }
void phy_SetRFPathSwitch_8188E( void phy_SetRFPathSwitch_8188E(
#if (DM_ODM_SUPPORT_TYPE & ODM_AP) #if (DM_ODM_SUPPORT_TYPE & ODM_AP)
IN PDM_ODM_T pDM_Odm, PDM_ODM_T pDM_Odm,
#else #else
PADAPTER pAdapter, PADAPTER pAdapter,
#endif #endif
@ -2780,7 +2780,7 @@ void phy_SetRFPathSwitch_8188E(
} }
void PHY_SetRFPathSwitch_8188E( void PHY_SetRFPathSwitch_8188E(
#if (DM_ODM_SUPPORT_TYPE & ODM_AP) #if (DM_ODM_SUPPORT_TYPE & ODM_AP)
IN PDM_ODM_T pDM_Odm, PDM_ODM_T pDM_Odm,
#else #else
PADAPTER pAdapter, PADAPTER pAdapter,
#endif #endif
@ -2826,7 +2826,7 @@ phy_DigitalPredistortion(
#if !(DM_ODM_SUPPORT_TYPE & ODM_AP) #if !(DM_ODM_SUPPORT_TYPE & ODM_AP)
PADAPTER pAdapter, PADAPTER pAdapter,
#else #else
IN PDM_ODM_T pDM_Odm, PDM_ODM_T pDM_Odm,
#endif #endif
bool is2T bool is2T
) )
@ -3261,7 +3261,7 @@ PHY_DigitalPredistortion_8188E(
#if !(DM_ODM_SUPPORT_TYPE & ODM_AP) #if !(DM_ODM_SUPPORT_TYPE & ODM_AP)
PADAPTER pAdapter PADAPTER pAdapter
#else #else
IN PDM_ODM_T pDM_Odm PDM_ODM_T pDM_Odm
#endif #endif
) )
{ {
@ -3301,7 +3301,7 @@ PHY_DigitalPredistortion_8188E(
bool phy_QueryRFPathSwitch_8188E( bool phy_QueryRFPathSwitch_8188E(
#if (DM_ODM_SUPPORT_TYPE & ODM_AP) #if (DM_ODM_SUPPORT_TYPE & ODM_AP)
IN PDM_ODM_T pDM_Odm, PDM_ODM_T pDM_Odm,
#else #else
PADAPTER pAdapter, PADAPTER pAdapter,
#endif #endif
@ -3347,7 +3347,7 @@ bool phy_QueryRFPathSwitch_8188E(
//return value TRUE => Main; FALSE => Aux //return value TRUE => Main; FALSE => Aux
bool PHY_QueryRFPathSwitch_8188E( bool PHY_QueryRFPathSwitch_8188E(
#if (DM_ODM_SUPPORT_TYPE & ODM_AP) #if (DM_ODM_SUPPORT_TYPE & ODM_AP)
IN PDM_ODM_T pDM_Odm PDM_ODM_T pDM_Odm
#else #else
PADAPTER pAdapter PADAPTER pAdapter
#endif #endif

View file

@ -154,33 +154,54 @@ u8 MRateToHwRate(u8 rate)
} }
void HalSetBrateCfg( void HalSetBrateCfg(
IN PADAPTER Adapter, PADAPTER Adapter,
IN u8 *mBratesOS, u8 *mBratesOS,
OUT u16 *pBrateCfg) u16 *pBrateCfg)
{ {
u8 i, is_brate, brate; u8 i, is_brate, brate;
for (i=0;i<NDIS_802_11_LENGTH_RATES_EX;i++) for (i=0;i<NDIS_802_11_LENGTH_RATES_EX;i++) {
{
is_brate = mBratesOS[i] & IEEE80211_BASIC_RATE_MASK; is_brate = mBratesOS[i] & IEEE80211_BASIC_RATE_MASK;
brate = mBratesOS[i] & 0x7f; brate = mBratesOS[i] & 0x7f;
if ( is_brate ) if ( is_brate ) {
{ switch (brate) {
switch (brate) case IEEE80211_CCK_RATE_1MB:
{ *pBrateCfg |= RATE_1M;
case IEEE80211_CCK_RATE_1MB: *pBrateCfg |= RATE_1M; break; break;
case IEEE80211_CCK_RATE_2MB: *pBrateCfg |= RATE_2M; break; case IEEE80211_CCK_RATE_2MB:
case IEEE80211_CCK_RATE_5MB: *pBrateCfg |= RATE_5_5M;break; *pBrateCfg |= RATE_2M;
case IEEE80211_CCK_RATE_11MB: *pBrateCfg |= RATE_11M; break; break;
case IEEE80211_OFDM_RATE_6MB: *pBrateCfg |= RATE_6M; break; case IEEE80211_CCK_RATE_5MB:
case IEEE80211_OFDM_RATE_9MB: *pBrateCfg |= RATE_9M; break; *pBrateCfg |= RATE_5_5M;
case IEEE80211_OFDM_RATE_12MB: *pBrateCfg |= RATE_12M; break; break;
case IEEE80211_OFDM_RATE_18MB: *pBrateCfg |= RATE_18M; break; case IEEE80211_CCK_RATE_11MB:
case IEEE80211_OFDM_RATE_24MB: *pBrateCfg |= RATE_24M; break; *pBrateCfg |= RATE_11M;
case IEEE80211_OFDM_RATE_36MB: *pBrateCfg |= RATE_36M; break; break;
case IEEE80211_OFDM_RATE_48MB: *pBrateCfg |= RATE_48M; break; case IEEE80211_OFDM_RATE_6MB:
case IEEE80211_OFDM_RATE_54MB: *pBrateCfg |= RATE_54M; break; *pBrateCfg |= RATE_6M;
break;
case IEEE80211_OFDM_RATE_9MB:
*pBrateCfg |= RATE_9M;
break;
case IEEE80211_OFDM_RATE_12MB:
*pBrateCfg |= RATE_12M;
break;
case IEEE80211_OFDM_RATE_18MB:
*pBrateCfg |= RATE_18M;
break;
case IEEE80211_OFDM_RATE_24MB:
*pBrateCfg |= RATE_24M;
break;
case IEEE80211_OFDM_RATE_36MB:
*pBrateCfg |= RATE_36M;
break;
case IEEE80211_OFDM_RATE_48MB:
*pBrateCfg |= RATE_48M;
break;
case IEEE80211_OFDM_RATE_54MB:
*pBrateCfg |= RATE_54M;
break;
} }
} }
} }

View file

@ -372,7 +372,7 @@ odm_CCKTXPathDiversityCallback(
void void
odm_CCKTXPathDiversityWorkItemCallback( odm_CCKTXPathDiversityWorkItemCallback(
IN void * pContext void * pContext
); );
void void
@ -382,7 +382,7 @@ odm_PathDivChkAntSwitchCallback(
void void
odm_PathDivChkAntSwitchWorkitemCallback( odm_PathDivChkAntSwitchWorkitemCallback(
IN void * pContext void * pContext
); );
void odm_SetRespPath_92C( PADAPTER Adapter, u1Byte DefaultRespPath); void odm_SetRespPath_92C( PADAPTER Adapter, u1Byte DefaultRespPath);
@ -397,7 +397,7 @@ void odm_Write_RXHP( PDM_ODM_T pDM_Odm);
void odm_PSD_RXHP( PDM_ODM_T pDM_Odm); void odm_PSD_RXHP( PDM_ODM_T pDM_Odm);
void odm_PSD_RXHPCallback( PRT_TIMER pTimer); void odm_PSD_RXHPCallback( PRT_TIMER pTimer);
void odm_PSD_RXHPWorkitemCallback( IN void * pContext); void odm_PSD_RXHPWorkitemCallback(void * pContext);
//End--------------------- RX High Power -----------------------// //End--------------------- RX High Power -----------------------//
void void
@ -531,7 +531,7 @@ odm_SwAntDivChkAntSwitchCallback(
); );
void void
odm_SwAntDivChkAntSwitchWorkitemCallback( odm_SwAntDivChkAntSwitchWorkitemCallback(
IN void * pContext void * pContext
); );
#elif (DM_ODM_SUPPORT_TYPE == ODM_CE) #elif (DM_ODM_SUPPORT_TYPE == ODM_CE)
void odm_SwAntDivChkAntSwitchCallback(void *FunctionContext); void odm_SwAntDivChkAntSwitchCallback(void *FunctionContext);
@ -604,17 +604,17 @@ ODM_RateAdaptiveStateApInit(
void void
odm_TXPowerTrackingCallbackThermalMeter92C( odm_TXPowerTrackingCallbackThermalMeter92C(
IN PADAPTER Adapter PADAPTER Adapter
); );
void void
odm_TXPowerTrackingCallbackRXGainThermalMeter92D( odm_TXPowerTrackingCallbackRXGainThermalMeter92D(
IN PADAPTER Adapter PADAPTER Adapter
); );
void void
odm_TXPowerTrackingCallbackThermalMeter92D( odm_TXPowerTrackingCallbackThermalMeter92D(
IN PADAPTER Adapter PADAPTER Adapter
); );
void void
@ -690,24 +690,24 @@ odm_EdcaParaInit(
void void
odm_InitHybridAntDiv( odm_InitHybridAntDiv(
IN PDM_ODM_T pDM_Odm PDM_ODM_T pDM_Odm
); );
bool bool
odm_StaDefAntSel( odm_StaDefAntSel(
IN PDM_ODM_T pDM_Odm, PDM_ODM_T pDM_Odm,
IN u4Byte OFDM_Ant1_Cnt, u4Byte OFDM_Ant1_Cnt,
IN u4Byte OFDM_Ant2_Cnt, u4Byte OFDM_Ant2_Cnt,
IN u4Byte CCK_Ant1_Cnt, u4Byte CCK_Ant1_Cnt,
IN u4Byte CCK_Ant2_Cnt, u4Byte CCK_Ant2_Cnt,
OUT u1Byte *pDefAnt u1Byte *pDefAnt
); );
void void
odm_SetRxIdleAnt( odm_SetRxIdleAnt(
PDM_ODM_T pDM_Odm, PDM_ODM_T pDM_Odm,
u1Byte Ant, u1Byte Ant,
IN bool bDualPath bool bDualPath
); );
@ -1345,7 +1345,7 @@ odm_CmnInfoUpdate_Debug(
#if (DM_ODM_SUPPORT_TYPE == ODM_MP) #if (DM_ODM_SUPPORT_TYPE == ODM_MP)
void void
ODM_InitAllWorkItems(IN PDM_ODM_T pDM_Odm ) ODM_InitAllWorkItems(PDM_ODM_T pDM_Odm )
{ {
#if USE_WORKITEM #if USE_WORKITEM
PADAPTER pAdapter = pDM_Odm->Adapter; PADAPTER pAdapter = pDM_Odm->Adapter;
@ -1390,7 +1390,7 @@ ODM_InitAllWorkItems(IN PDM_ODM_T pDM_Odm )
} }
void void
ODM_FreeAllWorkItems(IN PDM_ODM_T pDM_Odm ) ODM_FreeAllWorkItems(PDM_ODM_T pDM_Odm )
{ {
#if USE_WORKITEM #if USE_WORKITEM
ODM_FreeWorkItem( &(pDM_Odm->DM_SWAT_Table.SwAntennaSwitchWorkitem)); ODM_FreeWorkItem( &(pDM_Odm->DM_SWAT_Table.SwAntennaSwitchWorkitem));
@ -4304,7 +4304,7 @@ odm_RSSIMonitorCheckAP(
void void
ODM_InitAllTimers( ODM_InitAllTimers(
IN PDM_ODM_T pDM_Odm PDM_ODM_T pDM_Odm
) )
{ {
ODM_InitializeTimer(pDM_Odm,&pDM_Odm->DM_SWAT_Table.SwAntennaSwitchTimer, ODM_InitializeTimer(pDM_Odm,&pDM_Odm->DM_SWAT_Table.SwAntennaSwitchTimer,
@ -4339,7 +4339,7 @@ ODM_InitAllTimers(
void void
ODM_CancelAllTimers( ODM_CancelAllTimers(
IN PDM_ODM_T pDM_Odm PDM_ODM_T pDM_Odm
) )
{ {
#if (DM_ODM_SUPPORT_TYPE == ODM_MP) #if (DM_ODM_SUPPORT_TYPE == ODM_MP)
@ -4373,7 +4373,7 @@ ODM_CancelAllTimers(
void void
ODM_ReleaseAllTimers( ODM_ReleaseAllTimers(
IN PDM_ODM_T pDM_Odm PDM_ODM_T pDM_Odm
) )
{ {
ODM_ReleaseTimer(pDM_Odm,&pDM_Odm->DM_SWAT_Table.SwAntennaSwitchTimer); ODM_ReleaseTimer(pDM_Odm,&pDM_Odm->DM_SWAT_Table.SwAntennaSwitchTimer);
@ -4767,7 +4767,7 @@ ODM_SwAntDivResetBeforeLink(
// //
void void
ODM_SwAntDivRestAfterLink( ODM_SwAntDivRestAfterLink(
IN PDM_ODM_T pDM_Odm PDM_ODM_T pDM_Odm
) )
{ {
pSWAT_T pDM_SWAT_Table = &pDM_Odm->DM_SWAT_Table; pSWAT_T pDM_SWAT_Table = &pDM_Odm->DM_SWAT_Table;
@ -4782,9 +4782,9 @@ ODM_SwAntDivRestAfterLink(
void void
ODM_SwAntDivChkPerPktRssi( ODM_SwAntDivChkPerPktRssi(
IN PDM_ODM_T pDM_Odm, PDM_ODM_T pDM_Odm,
IN u1Byte StationID, u1Byte StationID,
IN PODM_PHY_INFO_T pPhyInfo PODM_PHY_INFO_T pPhyInfo
) )
{ {
SWAT_T *pDM_SWAT_Table = &pDM_Odm->DM_SWAT_Table; SWAT_T *pDM_SWAT_Table = &pDM_Odm->DM_SWAT_Table;
@ -5434,7 +5434,7 @@ odm_SwAntDivChkAntSwitchCallback(
} }
void void
odm_SwAntDivChkAntSwitchWorkitemCallback( odm_SwAntDivChkAntSwitchWorkitemCallback(
IN void * pContext void * pContext
) )
{ {
@ -5465,9 +5465,9 @@ void odm_SwAntDivChkAntSwitchCallback(void *FunctionContext)
void odm_SwAntDivInit( PDM_ODM_T pDM_Odm ) {} void odm_SwAntDivInit( PDM_ODM_T pDM_Odm ) {}
void ODM_SwAntDivChkPerPktRssi( void ODM_SwAntDivChkPerPktRssi(
IN PDM_ODM_T pDM_Odm, PDM_ODM_T pDM_Odm,
IN u1Byte StationID, u1Byte StationID,
IN PODM_PHY_INFO_T pPhyInfo PODM_PHY_INFO_T pPhyInfo
) {} ) {}
void odm_SwAntDivChkAntSwitch( void odm_SwAntDivChkAntSwitch(
PDM_ODM_T pDM_Odm, PDM_ODM_T pDM_Odm,
@ -5485,7 +5485,7 @@ odm_SwAntDivConsructChkScanChnl(
#endif #endif
#if (DM_ODM_SUPPORT_TYPE == ODM_MP) #if (DM_ODM_SUPPORT_TYPE == ODM_MP)
void odm_SwAntDivChkAntSwitchCallback( PRT_TIMER pTimer){} void odm_SwAntDivChkAntSwitchCallback( PRT_TIMER pTimer){}
void odm_SwAntDivChkAntSwitchWorkitemCallback( IN void * pContext ){} void odm_SwAntDivChkAntSwitchWorkitemCallback(void * pContext ){}
#elif (DM_ODM_SUPPORT_TYPE == ODM_CE) #elif (DM_ODM_SUPPORT_TYPE == ODM_CE)
void odm_SwAntDivChkAntSwitchCallback(void *FunctionContext){} void odm_SwAntDivChkAntSwitchCallback(void *FunctionContext){}
#elif (DM_ODM_SUPPORT_TYPE & (ODM_AP|ODM_ADSL)) #elif (DM_ODM_SUPPORT_TYPE & (ODM_AP|ODM_ADSL))
@ -5722,7 +5722,7 @@ ODM_SwAntDivCheckBeforeLink8192C(
#if (defined(CONFIG_HW_ANTENNA_DIVERSITY)) #if (defined(CONFIG_HW_ANTENNA_DIVERSITY))
void void
odm_InitHybridAntDiv_88C_92D( odm_InitHybridAntDiv_88C_92D(
IN PDM_ODM_T pDM_Odm PDM_ODM_T pDM_Odm
) )
{ {
@ -5807,7 +5807,7 @@ odm_InitHybridAntDiv_88C_92D(
void void
odm_InitHybridAntDiv( odm_InitHybridAntDiv(
IN PDM_ODM_T pDM_Odm PDM_ODM_T pDM_Odm
) )
{ {
if (!(pDM_Odm->SupportAbility & ODM_BB_ANT_DIV)) if (!(pDM_Odm->SupportAbility & ODM_BB_ANT_DIV))
@ -5834,12 +5834,12 @@ odm_InitHybridAntDiv(
bool bool
odm_StaDefAntSel( odm_StaDefAntSel(
IN PDM_ODM_T pDM_Odm, PDM_ODM_T pDM_Odm,
IN u4Byte OFDM_Ant1_Cnt, u4Byte OFDM_Ant1_Cnt,
IN u4Byte OFDM_Ant2_Cnt, u4Byte OFDM_Ant2_Cnt,
IN u4Byte CCK_Ant1_Cnt, u4Byte CCK_Ant1_Cnt,
IN u4Byte CCK_Ant2_Cnt, u4Byte CCK_Ant2_Cnt,
OUT u1Byte *pDefAnt u1Byte *pDefAnt
) )
{ {
@ -5897,7 +5897,7 @@ void
odm_SetRxIdleAnt( odm_SetRxIdleAnt(
PDM_ODM_T pDM_Odm, PDM_ODM_T pDM_Odm,
u1Byte Ant, u1Byte Ant,
IN bool bDualPath bool bDualPath
) )
{ {
SWAT_T *pDM_SWAT_Table = &pDM_Odm->DM_SWAT_Table; SWAT_T *pDM_SWAT_Table = &pDM_Odm->DM_SWAT_Table;
@ -6242,7 +6242,7 @@ ODM_Diversity_AntennaSelect(
#else //#if (defined(CONFIG_HW_ANTENNA_DIVERSITY)) #else //#if (defined(CONFIG_HW_ANTENNA_DIVERSITY))
void odm_InitHybridAntDiv( IN PDM_ODM_T pDM_Odm ){} void odm_InitHybridAntDiv( PDM_ODM_T pDM_Odm ){}
void odm_HwAntDiv( PDM_ODM_T pDM_Odm){} void odm_HwAntDiv( PDM_ODM_T pDM_Odm){}
#if (DM_ODM_SUPPORT_TYPE==ODM_MP) #if (DM_ODM_SUPPORT_TYPE==ODM_MP)
void ODM_SetTxAntByTxInfo_88C_92D( void ODM_SetTxAntByTxInfo_88C_92D(
@ -6265,7 +6265,7 @@ void ODM_SetTxAntByTxInfo_88C_92D( PDM_ODM_T pDM_Odm){ }
//============================================================ //============================================================
void void
ODM_EdcaTurboInit( ODM_EdcaTurboInit(
IN PDM_ODM_T pDM_Odm) PDM_ODM_T pDM_Odm)
{ {
#if ((DM_ODM_SUPPORT_TYPE == ODM_AP)||(DM_ODM_SUPPORT_TYPE==ODM_ADSL)) #if ((DM_ODM_SUPPORT_TYPE == ODM_AP)||(DM_ODM_SUPPORT_TYPE==ODM_ADSL))
@ -7739,7 +7739,7 @@ ODM_CheckPowerStatus(
#if ((DM_ODM_SUPPORT_TYPE == ODM_MP)||(DM_ODM_SUPPORT_TYPE == ODM_CE)) #if ((DM_ODM_SUPPORT_TYPE == ODM_MP)||(DM_ODM_SUPPORT_TYPE == ODM_CE))
u4Byte u4Byte
GetPSDData( GetPSDData(
IN PDM_ODM_T pDM_Odm, PDM_ODM_T pDM_Odm,
unsigned int point, unsigned int point,
u1Byte initial_gain_psd) u1Byte initial_gain_psd)
{ {
@ -7864,7 +7864,7 @@ ConvertTo_dB(
void void
odm_PSDMonitorInit( odm_PSDMonitorInit(
IN PDM_ODM_T pDM_Odm) PDM_ODM_T pDM_Odm)
{ {
#if (DEV_BUS_TYPE == RT_PCI_INTERFACE)|(DEV_BUS_TYPE == RT_USB_INTERFACE) #if (DEV_BUS_TYPE == RT_PCI_INTERFACE)|(DEV_BUS_TYPE == RT_USB_INTERFACE)
//HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter); //HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
@ -8712,7 +8712,7 @@ odm_PSDMonitorCallback(
void void
odm_PSDMonitorWorkItemCallback( odm_PSDMonitorWorkItemCallback(
IN void * pContext void * pContext
) )
{ {
PADAPTER Adapter = (PADAPTER)pContext; PADAPTER Adapter = (PADAPTER)pContext;
@ -9482,7 +9482,7 @@ odm_PSD_RXHPCallback(
void void
odm_PSD_RXHPWorkitemCallback( odm_PSD_RXHPWorkitemCallback(
IN void * pContext void * pContext
) )
{ {
PADAPTER pAdapter = (PADAPTER)pContext; PADAPTER pAdapter = (PADAPTER)pContext;
@ -9967,7 +9967,7 @@ odm_CCKTXPathDiversityCallback(
void void
odm_CCKTXPathDiversityWorkItemCallback( odm_CCKTXPathDiversityWorkItemCallback(
IN void * pContext void * pContext
) )
{ {
PADAPTER Adapter = (PADAPTER)pContext; PADAPTER Adapter = (PADAPTER)pContext;
@ -10345,7 +10345,7 @@ odm_PathDivChkAntSwitchCallback(
void void
odm_PathDivChkAntSwitchWorkitemCallback( odm_PathDivChkAntSwitchWorkitemCallback(
IN void * pContext void * pContext
) )
{ {
PADAPTER pAdapter = (PADAPTER)pContext; PADAPTER pAdapter = (PADAPTER)pContext;

View file

@ -67,7 +67,7 @@ odm_QueryRxPwrPercentage(
// //
s4Byte s4Byte
odm_SignalScaleMapping_92CSeries_patch_RT_CID_819x_Lenovo( odm_SignalScaleMapping_92CSeries_patch_RT_CID_819x_Lenovo(
IN OUT PDM_ODM_T pDM_Odm, PDM_ODM_T pDM_Odm,
s4Byte CurrSig s4Byte CurrSig
) )
{ {
@ -123,7 +123,7 @@ odm_SignalScaleMapping_92CSeries_patch_RT_CID_819x_Lenovo(
s4Byte s4Byte
odm_SignalScaleMapping_92CSeries_patch_RT_CID_819x_Netcore( odm_SignalScaleMapping_92CSeries_patch_RT_CID_819x_Netcore(
IN OUT PDM_ODM_T pDM_Odm, PDM_ODM_T pDM_Odm,
s4Byte CurrSig s4Byte CurrSig
) )
{ {
@ -184,8 +184,8 @@ odm_SignalScaleMapping_92CSeries_patch_RT_CID_819x_Netcore(
s4Byte s4Byte
odm_SignalScaleMapping_92CSeries( odm_SignalScaleMapping_92CSeries(
IN OUT PDM_ODM_T pDM_Odm, PDM_ODM_T pDM_Odm,
IN s4Byte CurrSig s4Byte CurrSig
) )
{ {
s4Byte RetSig; s4Byte RetSig;
@ -277,7 +277,7 @@ odm_SignalScaleMapping_92CSeries(
} }
s4Byte s4Byte
odm_SignalScaleMapping( odm_SignalScaleMapping(
IN OUT PDM_ODM_T pDM_Odm, PDM_ODM_T pDM_Odm,
s4Byte CurrSig s4Byte CurrSig
) )
{ {
@ -302,11 +302,11 @@ odm_SignalScaleMapping(
//pMgntInfo->CustomerID == RT_CID_819x_Lenovo //pMgntInfo->CustomerID == RT_CID_819x_Lenovo
static u1Byte odm_SQ_process_patch_RT_CID_819x_Lenovo( static u1Byte odm_SQ_process_patch_RT_CID_819x_Lenovo(
IN PDM_ODM_T pDM_Odm, PDM_ODM_T pDM_Odm,
IN u1Byte isCCKrate, u1Byte isCCKrate,
IN u1Byte PWDB_ALL, u1Byte PWDB_ALL,
IN u1Byte path, u1Byte path,
IN u1Byte RSSI u1Byte RSSI
) )
{ {
u1Byte SQ; u1Byte SQ;

View file

@ -277,7 +277,7 @@ ODM_AntennaDiversityInit_88E(
void void
ODM_UpdateRxIdleAnt_88E(IN PDM_ODM_T pDM_Odm, IN u1Byte Ant) ODM_UpdateRxIdleAnt_88E(PDM_ODM_T pDM_Odm, u1Byte Ant)
{ {
pFAT_T pDM_FatTable = &pDM_Odm->DM_FatTable; pFAT_T pDM_FatTable = &pDM_Odm->DM_FatTable;
u4Byte DefaultAnt, OptionalAnt; u4Byte DefaultAnt, OptionalAnt;
@ -317,7 +317,7 @@ ODM_UpdateRxIdleAnt_88E(IN PDM_ODM_T pDM_Odm, IN u1Byte Ant)
static void static void
odm_UpdateTxAnt_88E(IN PDM_ODM_T pDM_Odm, IN u1Byte Ant, IN u4Byte MacId) odm_UpdateTxAnt_88E(PDM_ODM_T pDM_Odm, u1Byte Ant, u4Byte MacId)
{ {
pFAT_T pDM_FatTable = &pDM_Odm->DM_FatTable; pFAT_T pDM_FatTable = &pDM_Odm->DM_FatTable;
u1Byte TargetAnt; u1Byte TargetAnt;
@ -1204,7 +1204,7 @@ odm_DynamicPrimaryCCA(
} }
#else //#if (RTL8188E_SUPPORT == 1) #else //#if (RTL8188E_SUPPORT == 1)
void void
ODM_UpdateRxIdleAnt_88E(IN PDM_ODM_T pDM_Odm, IN u1Byte Ant) ODM_UpdateRxIdleAnt_88E(PDM_ODM_T pDM_Odm, u1Byte Ant)
{ {
} }
void void

View file

@ -27,7 +27,7 @@ odm_ConfigRFReg_8188E(
PDM_ODM_T pDM_Odm, PDM_ODM_T pDM_Odm,
u4Byte Addr, u4Byte Addr,
u4Byte Data, u4Byte Data,
IN ODM_RF_RADIO_PATH_E RF_PATH, ODM_RF_RADIO_PATH_E RF_PATH,
u4Byte RegAddr u4Byte RegAddr
) )
{ {

View file

@ -459,7 +459,7 @@ ODM_StallExecution(
} }
void void
ODM_delay_ms(IN u4Byte ms) ODM_delay_ms(u4Byte ms)
{ {
#if (DM_ODM_SUPPORT_TYPE & (ODM_AP|ODM_ADSL)) #if (DM_ODM_SUPPORT_TYPE & (ODM_AP|ODM_ADSL))
delay_ms(ms); delay_ms(ms);
@ -471,7 +471,7 @@ ODM_delay_ms(IN u4Byte ms)
} }
void void
ODM_delay_us(IN u4Byte us) ODM_delay_us(u4Byte us)
{ {
#if (DM_ODM_SUPPORT_TYPE & (ODM_AP|ODM_ADSL)) #if (DM_ODM_SUPPORT_TYPE & (ODM_AP|ODM_ADSL))
delay_us(us); delay_us(us);
@ -483,7 +483,7 @@ ODM_delay_us(IN u4Byte us)
} }
void void
ODM_sleep_ms(IN u4Byte ms) ODM_sleep_ms(u4Byte ms)
{ {
#if (DM_ODM_SUPPORT_TYPE & (ODM_AP|ODM_ADSL)) #if (DM_ODM_SUPPORT_TYPE & (ODM_AP|ODM_ADSL))
@ -494,7 +494,7 @@ ODM_sleep_ms(IN u4Byte ms)
} }
void void
ODM_sleep_us(IN u4Byte us) ODM_sleep_us(u4Byte us)
{ {
#if (DM_ODM_SUPPORT_TYPE & (ODM_AP|ODM_ADSL)) #if (DM_ODM_SUPPORT_TYPE & (ODM_AP|ODM_ADSL))

View file

@ -520,7 +520,7 @@ skip_dm:
return; return;
} }
void rtl8188e_init_dm_priv(IN PADAPTER Adapter) void rtl8188e_init_dm_priv(PADAPTER Adapter)
{ {
PHAL_DATA_TYPE pHalData = GET_HAL_DATA(Adapter); PHAL_DATA_TYPE pHalData = GET_HAL_DATA(Adapter);
struct dm_priv *pdmpriv = &pHalData->dmpriv; struct dm_priv *pdmpriv = &pHalData->dmpriv;
@ -535,7 +535,7 @@ void rtl8188e_init_dm_priv(IN PADAPTER Adapter)
ODM_InitDebugSetting(podmpriv); ODM_InitDebugSetting(podmpriv);
} }
void rtl8188e_deinit_dm_priv(IN PADAPTER Adapter) void rtl8188e_deinit_dm_priv(PADAPTER Adapter)
{ {
PHAL_DATA_TYPE pHalData = GET_HAL_DATA(Adapter); PHAL_DATA_TYPE pHalData = GET_HAL_DATA(Adapter);
struct dm_priv *pdmpriv = &pHalData->dmpriv; struct dm_priv *pdmpriv = &pHalData->dmpriv;

View file

@ -1272,7 +1272,7 @@ ReadEFuseByIC(
u16 _offset, u16 _offset,
u16 _size_byte, u16 _size_byte,
u8 *pbuf, u8 *pbuf,
IN bool bPseudoTest bool bPseudoTest
) )
{ {
#ifdef DBG_IOL_READ_EFUSE_MAP #ifdef DBG_IOL_READ_EFUSE_MAP
@ -1331,7 +1331,7 @@ ReadEFuse_Pseudo (
u16 _offset, u16 _offset,
u16 _size_byte, u16 _size_byte,
u8 *pbuf, u8 *pbuf,
IN bool bPseudoTest bool bPseudoTest
) )
{ {
Hal_EfuseReadEFuse88E(Adapter, _offset, _size_byte, pbuf, bPseudoTest); Hal_EfuseReadEFuse88E(Adapter, _offset, _size_byte, pbuf, bPseudoTest);
@ -3078,16 +3078,11 @@ Hal_GetChnlGroup(
return group; return group;
} }
static u8 static u8 Hal_GetChnlGroup88E(u8 chnl, u8 *pGroup)
Hal_GetChnlGroup88E(
u8 chnl,
OUT u8* pGroup
)
{ {
u8 bIn24G=true; u8 bIn24G=true;
if (chnl<=14) if (chnl<=14) {
{
bIn24G=true; bIn24G=true;
if (chnl < 3) // Chanel 1-2 if (chnl < 3) // Chanel 1-2
@ -3102,13 +3097,7 @@ Hal_GetChnlGroup88E(
*pGroup = 4; *pGroup = 4;
else if (chnl ==14) // Channel 14 else if (chnl ==14) // Channel 14
*pGroup = 5; *pGroup = 5;
else } else {
{
//RT_TRACE(COMP_EFUSE,DBG_LOUD,("==>Hal_GetChnlGroup88E in 2.4 G, but Channel %d in Group not found\n",chnl));
}
}
else
{
bIn24G=false; bIn24G=false;
if (chnl <=40) if (chnl <=40)
@ -3137,21 +3126,11 @@ Hal_GetChnlGroup88E(
*pGroup = 10; *pGroup = 10;
else if (chnl <=177) else if (chnl <=177)
*pGroup = 11; *pGroup = 11;
else
{
//RT_TRACE(COMP_EFUSE,DBG_LOUD,("==>Hal_GetChnlGroup88E in 5G, but Channel %d in Group not found\n",chnl));
} }
}
//RT_TRACE(COMP_EFUSE,DBG_LOUD,("<==Hal_GetChnlGroup88E, Channel = %d, bIn24G =%d,\n",chnl,bIn24G));
return bIn24G; return bIn24G;
} }
void Hal_ReadPowerSavingMode88E( void Hal_ReadPowerSavingMode88E(PADAPTER padapter, u8 *hwinfo, bool AutoLoadFail)
PADAPTER padapter,
u8* hwinfo,
bool AutoLoadFail
)
{ {
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(padapter); HAL_DATA_TYPE *pHalData = GET_HAL_DATA(padapter);
struct pwrctrl_priv *pwrctrlpriv = &padapter->pwrctrlpriv; struct pwrctrl_priv *pwrctrlpriv = &padapter->pwrctrlpriv;

View file

@ -1432,7 +1432,7 @@ phy_ConfigBBWithPgHeaderFile(
static void static void
phy_BB8192C_Config_1T( phy_BB8192C_Config_1T(
IN PADAPTER Adapter PADAPTER Adapter
) )
{ {
//for path - B //for path - B
@ -2132,7 +2132,7 @@ phy_TxPwrIdxToDbm(
void void
PHY_GetTxPowerLevel8188E( PHY_GetTxPowerLevel8188E(
PADAPTER Adapter, PADAPTER Adapter,
OUT u32* powerlevel u32* powerlevel
) )
{ {
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter); HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
@ -2168,10 +2168,10 @@ PHY_GetTxPowerLevel8188E(
void getTxPowerIndex88E( void getTxPowerIndex88E(
PADAPTER Adapter, PADAPTER Adapter,
u8 channel, u8 channel,
IN OUT u8* cckPowerLevel, u8* cckPowerLevel,
IN OUT u8* ofdmPowerLevel, u8* ofdmPowerLevel,
IN OUT u8* BW20PowerLevel, u8* BW20PowerLevel,
IN OUT u8* BW40PowerLevel u8* BW40PowerLevel
) )
{ {
@ -2260,10 +2260,10 @@ void getTxPowerIndex88E(
void phy_PowerIndexCheck88E( void phy_PowerIndexCheck88E(
PADAPTER Adapter, PADAPTER Adapter,
u8 channel, u8 channel,
IN OUT u8 * cckPowerLevel, u8 * cckPowerLevel,
IN OUT u8 * ofdmPowerLevel, u8 * ofdmPowerLevel,
IN OUT u8 * BW20PowerLevel, u8 * BW20PowerLevel,
IN OUT u8 * BW40PowerLevel u8 * BW40PowerLevel
) )
{ {
@ -2711,7 +2711,7 @@ phy_SwChnlStepByStep(
u8 channel, u8 channel,
u8 *stage, u8 *stage,
u8 *step, u8 *step,
OUT u32 *delay u32 *delay
) )
{ {
return true; return true;

View file

@ -288,8 +288,8 @@ void getPowerBase88E(
u8* pPowerLevelBW20, u8* pPowerLevelBW20,
u8* pPowerLevelBW40, u8* pPowerLevelBW40,
u8 Channel, u8 Channel,
IN OUT u32* OfdmBase, u32* OfdmBase,
IN OUT u32* MCSBase u32* MCSBase
) )
{ {
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter); HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);

View file

@ -130,7 +130,7 @@ struct EMInfo{
void void
InsertEMContent_8188E( InsertEMContent_8188E(
struct EMInfo *pEMInfo, struct EMInfo *pEMInfo,
IN pu1Byte VirtualAddress) pu1Byte VirtualAddress)
{ {
#if RTL8188E_EARLY_MODE_PKT_NUM_10 == 1 #if RTL8188E_EARLY_MODE_PKT_NUM_10 == 1

View file

@ -302,7 +302,7 @@ static void _InitBTCoexist(_adapter *padapter)
//--------------------------------------------------------------- //---------------------------------------------------------------
static void static void
_SetMacID( _SetMacID(
IN PADAPTER Adapter, u8* MacID PADAPTER Adapter, u8* MacID
) )
{ {
u32 i; u32 i;
@ -318,7 +318,7 @@ _SetMacID(
static void static void
_SetBSSID( _SetBSSID(
IN PADAPTER Adapter, u8* BSSID PADAPTER Adapter, u8* BSSID
) )
{ {
u32 i; u32 i;
@ -336,7 +336,7 @@ _SetBSSID(
// Shall USB interface init this? // Shall USB interface init this?
static void static void
_InitInterrupt( _InitInterrupt(
IN PADAPTER Adapter PADAPTER Adapter
) )
{ {
u32 imr,imr_ex; u32 imr,imr_ex;
@ -379,7 +379,7 @@ _InitInterrupt(
static void static void
_InitQueueReservedPage( _InitQueueReservedPage(
IN PADAPTER Adapter PADAPTER Adapter
) )
{ {
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter); HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
@ -428,8 +428,8 @@ _InitQueueReservedPage(
static void static void
_InitTxBufferBoundary( _InitTxBufferBoundary(
IN PADAPTER Adapter, PADAPTER Adapter,
IN u8 txpktbuf_bndy u8 txpktbuf_bndy
) )
{ {
struct registry_priv *pregistrypriv = &Adapter->registrypriv; struct registry_priv *pregistrypriv = &Adapter->registrypriv;
@ -447,7 +447,7 @@ _InitTxBufferBoundary(
static void static void
_InitPageBoundary( _InitPageBoundary(
IN PADAPTER Adapter PADAPTER Adapter
) )
{ {
// RX Page Boundary // RX Page Boundary
@ -623,7 +623,7 @@ _InitQueuePriority(
static void static void
_InitHardwareDropIncorrectBulkOut( _InitHardwareDropIncorrectBulkOut(
IN PADAPTER Adapter PADAPTER Adapter
) )
{ {
u32 value32 = rtw_read32(Adapter, REG_TXDMA_OFFSET_CHK); u32 value32 = rtw_read32(Adapter, REG_TXDMA_OFFSET_CHK);
@ -633,7 +633,7 @@ _InitHardwareDropIncorrectBulkOut(
static void static void
_InitNetworkType( _InitNetworkType(
IN PADAPTER Adapter PADAPTER Adapter
) )
{ {
u32 value32; u32 value32;
@ -648,7 +648,7 @@ _InitNetworkType(
static void static void
_InitTransferPageSize( _InitTransferPageSize(
IN PADAPTER Adapter PADAPTER Adapter
) )
{ {
// Tx page size is always 128. // Tx page size is always 128.
@ -660,7 +660,7 @@ _InitTransferPageSize(
static void static void
_InitDriverInfoSize( _InitDriverInfoSize(
IN PADAPTER Adapter, PADAPTER Adapter,
u8 drvInfoSize u8 drvInfoSize
) )
{ {
@ -669,7 +669,7 @@ _InitDriverInfoSize(
static void static void
_InitWMACSetting( _InitWMACSetting(
IN PADAPTER Adapter PADAPTER Adapter
) )
{ {
//u4Byte value32; //u4Byte value32;
@ -713,7 +713,7 @@ _InitWMACSetting(
static void static void
_InitAdaptiveCtrl( _InitAdaptiveCtrl(
IN PADAPTER Adapter PADAPTER Adapter
) )
{ {
u16 value16; u16 value16;
@ -740,7 +740,7 @@ _InitAdaptiveCtrl(
static void static void
_InitRateFallback( _InitRateFallback(
IN PADAPTER Adapter PADAPTER Adapter
) )
{ {
// Set Data Auto Rate Fallback Retry Count register. // Set Data Auto Rate Fallback Retry Count register.
@ -754,7 +754,7 @@ _InitRateFallback(
static void static void
_InitEDCA( _InitEDCA(
IN PADAPTER Adapter PADAPTER Adapter
) )
{ {
// Set Spec SIFS (used in NAV) // Set Spec SIFS (used in NAV)
@ -777,7 +777,7 @@ _InitEDCA(
static void static void
_InitBeaconMaxError( _InitBeaconMaxError(
IN PADAPTER Adapter, PADAPTER Adapter,
bool InfraMode bool InfraMode
) )
{ {
@ -821,7 +821,7 @@ _InitRxSetting(
static void static void
_InitRetryFunction( _InitRetryFunction(
IN PADAPTER Adapter PADAPTER Adapter
) )
{ {
u8 value8; u8 value8;
@ -977,7 +977,7 @@ usb_AggSettingRxUpdate(
static void static void
InitUsbAggregationSetting( InitUsbAggregationSetting(
IN PADAPTER Adapter PADAPTER Adapter
) )
{ {
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter); HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
@ -993,8 +993,8 @@ InitUsbAggregationSetting(
} }
void void
HalRxAggr8188EUsb( HalRxAggr8188EUsb(
IN PADAPTER Adapter, PADAPTER Adapter,
IN bool Value bool Value
) )
{ {
} }
@ -1035,7 +1035,7 @@ _InitOperationMode(
static void static void
_InitBeaconParameters( _InitBeaconParameters(
IN PADAPTER Adapter PADAPTER Adapter
) )
{ {
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter); HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
@ -1156,7 +1156,7 @@ _InitAntenna_Selection( PADAPTER Adapter)
// //
static void static void
HalDetectSelectiveSuspendMode( HalDetectSelectiveSuspendMode(
IN PADAPTER Adapter PADAPTER Adapter
) )
{ {
} // HalDetectSelectiveSuspendMode } // HalDetectSelectiveSuspendMode
@ -2098,7 +2098,7 @@ Hal_CustomizeByCustomerID_8188EU(
} }
// Read HW power down mode selection // Read HW power down mode selection
static void _ReadPSSetting(IN PADAPTER Adapter,IN u8*PROMContent,IN u8 AutoloadFail) static void _ReadPSSetting(PADAPTER Adapter, u8 *PROMContent, u8 AutoloadFail)
{ {
} }
@ -2271,7 +2271,7 @@ readAdapterInfo_8188EU(
} }
static void _ReadPROMContent( static void _ReadPROMContent(
IN PADAPTER Adapter PADAPTER Adapter
) )
{ {
EEPROM_EFUSE_PRIV *pEEPROM = GET_EEPROM_EFUSE_PRIV(Adapter); EEPROM_EFUSE_PRIV *pEEPROM = GET_EEPROM_EFUSE_PRIV(Adapter);

View file

@ -240,7 +240,7 @@ int PHY_BBConfig8188E( PADAPTER Adapter );
int PHY_RFConfig8188E( 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(PADAPTER Adapter, u8 * pFileName, RF_RADIO_PATH_E eRFPath);
int rtl8188e_PHY_ConfigRFWithHeaderFile( PADAPTER Adapter, int rtl8188e_PHY_ConfigRFWithHeaderFile( PADAPTER Adapter,
RF_RADIO_PATH_E eRFPath); RF_RADIO_PATH_E eRFPath);
@ -256,12 +256,9 @@ void rtl8192c_PHY_GetHWRegOriginalValue( PADAPTER Adapter );
// //
// BB TX Power R/W // BB TX Power R/W
// //
void PHY_GetTxPowerLevel8188E( PADAPTER Adapter, void PHY_GetTxPowerLevel8188E(PADAPTER Adapter, u32 *powerlevel);
OUT u32* powerlevel ); void PHY_SetTxPowerLevel8188E(PADAPTER Adapter, u8 channel);
void PHY_SetTxPowerLevel8188E( PADAPTER Adapter, bool PHY_UpdateTxPowerDbm8188E(PADAPTER Adapter, int powerInDbm);
u8 channel );
bool PHY_UpdateTxPowerDbm8188E( PADAPTER Adapter,
int powerInDbm );
// //
void void
@ -419,7 +416,7 @@ storePwrIndexDiffRateOffset(
#endif #endif
#if (SIC_ENABLE == 1) #if (SIC_ENABLE == 1)
void SIC_Init(IN PADAPTER Adapter); void SIC_Init(PADAPTER Adapter);
#endif #endif

View file

@ -47,7 +47,7 @@ ODM_RASupport_Init(
int int
ODM_RAInfo_Init_all( ODM_RAInfo_Init_all(
IN PDM_ODM_T pDM_Odm PDM_ODM_T pDM_Odm
); );
int int
@ -75,11 +75,11 @@ ODM_RA_GetHwPwrStatus_8188E(
); );
void void
ODM_RA_UpdateRateInfo_8188E( ODM_RA_UpdateRateInfo_8188E(
IN PDM_ODM_T pDM_Odm, PDM_ODM_T pDM_Odm,
IN u1Byte MacID, u1Byte MacID,
IN u1Byte RateID, u1Byte RateID,
IN u4Byte RateMask, u4Byte RateMask,
IN u1Byte SGIEnable u1Byte SGIEnable
); );
void void

View file

@ -30,7 +30,7 @@
HAL_STATUS HAL_STATUS
ODM_ReadAndConfig_AGC_TAB_1T_8188E( ODM_ReadAndConfig_AGC_TAB_1T_8188E(
IN PDM_ODM_T pDM_Odm PDM_ODM_T pDM_Odm
); );
/****************************************************************************** /******************************************************************************
@ -39,7 +39,7 @@ ODM_ReadAndConfig_AGC_TAB_1T_8188E(
HAL_STATUS HAL_STATUS
ODM_ReadAndConfig_PHY_REG_1T_8188E( ODM_ReadAndConfig_PHY_REG_1T_8188E(
IN PDM_ODM_T pDM_Odm PDM_ODM_T pDM_Odm
); );
/****************************************************************************** /******************************************************************************
@ -48,7 +48,7 @@ ODM_ReadAndConfig_PHY_REG_1T_8188E(
void void
ODM_ReadAndConfig_PHY_REG_PG_8188E( ODM_ReadAndConfig_PHY_REG_PG_8188E(
IN PDM_ODM_T pDM_Odm PDM_ODM_T pDM_Odm
); );
#endif #endif

View file

@ -27,12 +27,7 @@
* FW_AP.TXT * FW_AP.TXT
******************************************************************************/ ******************************************************************************/
#if (DM_ODM_SUPPORT_TYPE & (ODM_AP)) #if (DM_ODM_SUPPORT_TYPE & (ODM_AP))
void void ODM_ReadFirmware_8188E_FW_AP(PDM_ODM_T pDM_Odm, u1Byte *pFirmware, u4Byte *pFirmwareSize);
ODM_ReadFirmware_8188E_FW_AP(
IN PDM_ODM_T pDM_Odm,
OUT u1Byte *pFirmware,
OUT u4Byte *pFirmwareSize
);
#else #else
/****************************************************************************** /******************************************************************************

View file

@ -30,7 +30,7 @@
HAL_STATUS HAL_STATUS
ODM_ReadAndConfig_MAC_REG_8188E( ODM_ReadAndConfig_MAC_REG_8188E(
IN PDM_ODM_T pDM_Odm PDM_ODM_T pDM_Odm
); );
#endif #endif

View file

@ -28,10 +28,7 @@
* RadioA_1T.TXT * RadioA_1T.TXT
******************************************************************************/ ******************************************************************************/
HAL_STATUS HAL_STATUS ODM_ReadAndConfig_RadioA_1T_8188E(PDM_ODM_T pDM_Odm);
ODM_ReadAndConfig_RadioA_1T_8188E(
IN PDM_ODM_T pDM_Odm
);
#endif #endif
#endif // end of HWIMG_SUPPORT #endif // end of HWIMG_SUPPORT

View file

@ -58,11 +58,11 @@ PHY_APCalibrate_8192C( PADAPTER pAdapter,
void void
ODM_ResetIQKResult( ODM_ResetIQKResult(
IN PDM_ODM_T pDM_Odm PDM_ODM_T pDM_Odm
); );
u1Byte u1Byte
ODM_GetRightChnlPlaceforIQK( ODM_GetRightChnlPlaceforIQK(
IN u1Byte chnl u1Byte chnl
); );

View file

@ -39,9 +39,9 @@ ODM_TxPwrTrackAdjust88E(
void void
odm_TXPowerTrackingCallback_ThermalMeter_8188E( odm_TXPowerTrackingCallback_ThermalMeter_8188E(
#if (DM_ODM_SUPPORT_TYPE & ODM_AP) #if (DM_ODM_SUPPORT_TYPE & ODM_AP)
IN PDM_ODM_T pDM_Odm PDM_ODM_T pDM_Odm
#else #else
IN PADAPTER Adapter PADAPTER Adapter
#endif #endif
); );
@ -51,9 +51,9 @@ odm_TXPowerTrackingCallback_ThermalMeter_8188E(
void void
PHY_IQCalibrate_8188E( PHY_IQCalibrate_8188E(
#if (DM_ODM_SUPPORT_TYPE & ODM_AP) #if (DM_ODM_SUPPORT_TYPE & ODM_AP)
IN PDM_ODM_T pDM_Odm, PDM_ODM_T pDM_Odm,
#else #else
IN PADAPTER Adapter, PADAPTER Adapter,
#endif #endif
bool bReCovery); bool bReCovery);
@ -64,7 +64,7 @@ PHY_IQCalibrate_8188E(
void void
PHY_LCCalibrate_8188E( PHY_LCCalibrate_8188E(
#if (DM_ODM_SUPPORT_TYPE & ODM_AP) #if (DM_ODM_SUPPORT_TYPE & ODM_AP)
IN PDM_ODM_T pDM_Odm PDM_ODM_T pDM_Odm
#else #else
PADAPTER pAdapter PADAPTER pAdapter
#endif #endif
@ -76,7 +76,7 @@ PHY_LCCalibrate_8188E(
void void
PHY_APCalibrate_8188E( PHY_APCalibrate_8188E(
#if (DM_ODM_SUPPORT_TYPE & ODM_AP) #if (DM_ODM_SUPPORT_TYPE & ODM_AP)
IN PDM_ODM_T pDM_Odm, PDM_ODM_T pDM_Odm,
#else #else
PADAPTER pAdapter, PADAPTER pAdapter,
#endif #endif
@ -88,7 +88,7 @@ PHY_DigitalPredistortion_8188E( PADAPTER pAdapter);
void void
_PHY_SaveADDARegisters( _PHY_SaveADDARegisters(
#if (DM_ODM_SUPPORT_TYPE & ODM_AP) #if (DM_ODM_SUPPORT_TYPE & ODM_AP)
IN PDM_ODM_T pDM_Odm, PDM_ODM_T pDM_Odm,
#else #else
PADAPTER pAdapter, PADAPTER pAdapter,
#endif #endif
@ -100,7 +100,7 @@ _PHY_SaveADDARegisters(
void void
_PHY_PathADDAOn( _PHY_PathADDAOn(
#if (DM_ODM_SUPPORT_TYPE & ODM_AP) #if (DM_ODM_SUPPORT_TYPE & ODM_AP)
IN PDM_ODM_T pDM_Odm, PDM_ODM_T pDM_Odm,
#else #else
PADAPTER pAdapter, PADAPTER pAdapter,
#endif #endif
@ -112,7 +112,7 @@ _PHY_PathADDAOn(
void void
_PHY_MACSettingCalibration( _PHY_MACSettingCalibration(
#if (DM_ODM_SUPPORT_TYPE & ODM_AP) #if (DM_ODM_SUPPORT_TYPE & ODM_AP)
IN PDM_ODM_T pDM_Odm, PDM_ODM_T pDM_Odm,
#else #else
PADAPTER pAdapter, PADAPTER pAdapter,
#endif #endif
@ -124,7 +124,7 @@ _PHY_MACSettingCalibration(
void void
_PHY_PathAStandBy( _PHY_PathAStandBy(
#if (DM_ODM_SUPPORT_TYPE & ODM_AP) #if (DM_ODM_SUPPORT_TYPE & ODM_AP)
IN PDM_ODM_T pDM_Odm PDM_ODM_T pDM_Odm
#else #else
PADAPTER pAdapter PADAPTER pAdapter
#endif #endif

View file

@ -27,14 +27,12 @@
#define FAIL (-1) #define FAIL (-1)
#include <linux/types.h> #include <linux/types.h>
#define IN
#define OUT
#define NDIS_OID uint #define NDIS_OID uint
#define NDIS_STATUS uint #define NDIS_STATUS uint
typedef signed int sint; typedef signed int sint;
#define UCHAR u8 #define UCHAR u8
#define USHORT u16 #define USHORT u16
#define UINT u32 #define UINT u32
#define ULONG u32 #define ULONG u32

View file

@ -163,9 +163,9 @@ hal_com_get_channel_plan(
u8 MRateToHwRate(u8 rate); u8 MRateToHwRate(u8 rate);
void HalSetBrateCfg( void HalSetBrateCfg(
IN PADAPTER Adapter, PADAPTER Adapter,
IN u8 *mBratesOS, u8 *mBratesOS,
OUT u16 *pBrateCfg); u16 *pBrateCfg);
bool bool
Hal_MappingOutPipe( Hal_MappingOutPipe(

View file

@ -1657,11 +1657,7 @@ ODM_SwAntDivCheckBeforeLink8192C(
#endif #endif
#define dm_SWAW_RSSI_Check ODM_SwAntDivChkPerPktRssi #define dm_SWAW_RSSI_Check ODM_SwAntDivChkPerPktRssi
void ODM_SwAntDivChkPerPktRssi( void ODM_SwAntDivChkPerPktRssi(PDM_ODM_T pDM_Odm, u1Byte StationID, PODM_PHY_INFO_T pPhyInfo);
IN PDM_ODM_T pDM_Odm,
IN u1Byte StationID,
IN PODM_PHY_INFO_T pPhyInfo
);
#if ((DM_ODM_SUPPORT_TYPE==ODM_MP)||(DM_ODM_SUPPORT_TYPE==ODM_CE)) #if ((DM_ODM_SUPPORT_TYPE==ODM_MP)||(DM_ODM_SUPPORT_TYPE==ODM_CE))
@ -1696,7 +1692,7 @@ void odm_PSDMonitorCallback(PRT_TIMER pTimer);
void void
odm_PSDMonitorWorkItemCallback( odm_PSDMonitorWorkItemCallback(
IN void * pContext void *pContext
); );
@ -1762,28 +1758,28 @@ ODM_CmnInfoUpdate(
void void
ODM_InitAllTimers( ODM_InitAllTimers(
IN PDM_ODM_T pDM_Odm PDM_ODM_T pDM_Odm
); );
void void
ODM_CancelAllTimers( ODM_CancelAllTimers(
IN PDM_ODM_T pDM_Odm PDM_ODM_T pDM_Odm
); );
void void
ODM_ReleaseAllTimers( ODM_ReleaseAllTimers(
IN PDM_ODM_T pDM_Odm PDM_ODM_T pDM_Odm
); );
void void
ODM_ResetIQKResult( ODM_ResetIQKResult(
IN PDM_ODM_T pDM_Odm PDM_ODM_T pDM_Odm
); );
#if (DM_ODM_SUPPORT_TYPE == ODM_MP) #if (DM_ODM_SUPPORT_TYPE == ODM_MP)
void ODM_InitAllWorkItems(IN PDM_ODM_T pDM_Odm ); void ODM_InitAllWorkItems(PDM_ODM_T pDM_Odm );
void ODM_FreeAllWorkItems(IN PDM_ODM_T pDM_Odm ); void ODM_FreeAllWorkItems(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(
@ -1818,8 +1814,8 @@ void ODM_PathDivChkPerPktRssi(PADAPTER Adapter,
u8Byte u8Byte
PlatformDivision64( PlatformDivision64(
IN u8Byte x, u8Byte x,
IN u8Byte y u8Byte y
); );

View file

@ -65,8 +65,8 @@ ODM_SetTxAntByTxInfo_88E(
void void
ODM_UpdateRxIdleAnt_88E( ODM_UpdateRxIdleAnt_88E(
IN PDM_ODM_T pDM_Odm, PDM_ODM_T pDM_Odm,
IN u1Byte Ant u1Byte Ant
); );
void void

View file

@ -27,7 +27,7 @@ odm_ConfigRFReg_8188E(
PDM_ODM_T pDM_Odm, PDM_ODM_T pDM_Odm,
u4Byte Addr, u4Byte Addr,
u4Byte Data, u4Byte Data,
IN ODM_RF_RADIO_PATH_E RF_PATH, ODM_RF_RADIO_PATH_E RF_PATH,
u4Byte RegAddr u4Byte RegAddr
); );

View file

@ -269,17 +269,17 @@ ODM_StallExecution(
); );
void void
ODM_delay_ms(IN u4Byte ms); ODM_delay_ms(u4Byte ms);
void void
ODM_delay_us(IN u4Byte us); ODM_delay_us(u4Byte us);
void void
ODM_sleep_ms(IN u4Byte ms); ODM_sleep_ms(u4Byte ms);
void void
ODM_sleep_us(IN u4Byte us); ODM_sleep_us(u4Byte us);
void void
ODM_SetTimer( ODM_SetTimer(

View file

@ -240,7 +240,7 @@ __inline static void _cancel_timer(_timer *ptimer,u8 *bcancelled)
#ifdef PLATFORM_LINUX #ifdef PLATFORM_LINUX
#define RTW_TIMER_HDL_ARGS void *FunctionContext #define RTW_TIMER_HDL_ARGS void *FunctionContext
#elif defined(PLATFORM_OS_CE) || defined(PLATFORM_WINDOWS) #elif defined(PLATFORM_OS_CE) || defined(PLATFORM_WINDOWS)
#define RTW_TIMER_HDL_ARGS IN void * SystemSpecific1, IN void * FunctionContext, IN PVOID SystemSpecific2, IN PVOID SystemSpecific3 #define RTW_TIMER_HDL_ARGS void * SystemSpecific1, void * FunctionContext, PVOID SystemSpecific2, PVOID SystemSpecific3
#endif #endif
#define RTW_TIMER_HDL_NAME(name) rtw_##name##_timer_hdl #define RTW_TIMER_HDL_NAME(name) rtw_##name##_timer_hdl

View file

@ -31,7 +31,7 @@ extern void _rtw_free_recv_priv (struct recv_priv *precvpriv);
extern s32 rtw_recv_entry(union recv_frame *precv_frame); extern s32 rtw_recv_entry(union recv_frame *precv_frame);
extern int rtw_recv_indicatepkt(_adapter *adapter, union recv_frame *precv_frame); extern int rtw_recv_indicatepkt(_adapter *adapter, union recv_frame *precv_frame);
extern void rtw_recv_returnpacket(IN _nic_hdl cnxt, IN _pkt *preturnedpkt); extern void rtw_recv_returnpacket(_nic_hdl cnxt, _pkt *preturnedpkt);
extern void rtw_hostapd_mlme_rx(_adapter *padapter, union recv_frame *precv_frame); extern void rtw_hostapd_mlme_rx(_adapter *padapter, union recv_frame *precv_frame);
extern void rtw_handle_tkip_mic_err(_adapter *padapter,u8 bgroup); extern void rtw_handle_tkip_mic_err(_adapter *padapter,u8 bgroup);

View file

@ -51,10 +51,10 @@ struct dm_priv
u8 PowerIndex_backup[6]; u8 PowerIndex_backup[6];
}; };
void rtl8188e_init_dm_priv(IN PADAPTER Adapter); void rtl8188e_init_dm_priv(PADAPTER Adapter);
void rtl8188e_deinit_dm_priv(IN PADAPTER Adapter); void rtl8188e_deinit_dm_priv(PADAPTER Adapter);
void rtl8188e_InitHalDm(IN PADAPTER Adapter); void rtl8188e_InitHalDm(PADAPTER Adapter);
void rtl8188e_HalDmWatchDog(IN PADAPTER Adapter); void rtl8188e_HalDmWatchDog(PADAPTER Adapter);
#ifdef CONFIG_ANTENNA_DIVERSITY #ifdef CONFIG_ANTENNA_DIVERSITY
void AntDivCompare8188E(PADAPTER Adapter, WLAN_BSSID_EX *dst, WLAN_BSSID_EX *src); void AntDivCompare8188E(PADAPTER Adapter, WLAN_BSSID_EX *dst, WLAN_BSSID_EX *src);

View file

@ -115,7 +115,7 @@ static NDIS_STATUS oid_null_function(struct oid_par_priv* poid_par_priv)
#ifdef PLATFORM_WINDOWS #ifdef PLATFORM_WINDOWS
int TranslateNdisPsToRtPs(IN NDIS_802_11_POWER_MODE ndisPsMode); int TranslateNdisPsToRtPs(NDIS_802_11_POWER_MODE ndisPsMode);
//OID Handler for Segment 1 //OID Handler for Segment 1
NDIS_STATUS oid_gen_supported_list_hdl(struct oid_par_priv* poid_par_priv); NDIS_STATUS oid_gen_supported_list_hdl(struct oid_par_priv* poid_par_priv);

View file

@ -222,7 +222,7 @@ struct mp_tx
typedef void (*MPT_WORK_ITEM_HANDLER)(IN void * Adapter); typedef void (*MPT_WORK_ITEM_HANDLER)(void *Adapter);
typedef struct _MPT_CONTEXT typedef struct _MPT_CONTEXT
{ {
// Indicate if we have started Mass Production Test. // Indicate if we have started Mass Production Test.

View file

@ -51,9 +51,4 @@ typedef enum _RT_USB_WVALUE {
} RT_USB_WVALUE; } RT_USB_WVALUE;
//bool usbvendorrequest(PCE_USB_DEVICE CEdevice, RT_USB_BREQUEST bRequest, RT_USB_WVALUE wValue, UCHAR wIndex, void * Data, UCHAR DataLength, bool isDirectionIn);
//bool CEusbGetStatusRequest(PCE_USB_DEVICE CEdevice, IN USHORT Op, IN USHORT Index, void * Data);
//bool CEusbFeatureRequest(PCE_USB_DEVICE CEdevice, IN USHORT Op, IN USHORT FeatureSelector, IN USHORT Index);
//bool CEusbGetDescriptorRequest(PCE_USB_DEVICE CEdevice, IN short urbLength, IN UCHAR DescriptorType, IN UCHAR Index, IN USHORT LanguageId, IN void * TransferBuffer, IN ULONG TransferBufferLength);
#endif #endif

View file

@ -52,9 +52,9 @@ struct pkt_file {
#define ETH_ALEN 6 #define ETH_ALEN 6
extern NDIS_STATUS rtw_xmit_entry( extern NDIS_STATUS rtw_xmit_entry(
IN _nic_hdl cnxt, _nic_hdl cnxt,
IN NDIS_PACKET *pkt, NDIS_PACKET *pkt,
IN UINT flags UINT flags
); );
#endif #endif