From dd62caa1e1293f02b1b1edcb91584ecdcc074e48 Mon Sep 17 00:00:00 2001 From: Larry Finger Date: Mon, 2 Mar 2015 17:25:27 -0600 Subject: [PATCH] rtl8199eu: Replace TRUE and FALSE with true and false Signed-off-by: Larry Finger --- hal/Hal8188ERateAdaptive.c | 2 +- hal/HalHWImg8188E_BB.c | 16 ++-- hal/HalHWImg8188E_MAC.c | 12 +-- hal/HalHWImg8188E_RF.c | 12 +-- hal/HalPhyRf.c | 2 +- hal/HalPhyRf_8188e.c | 74 ++++++++--------- hal/odm.c | 164 ++++++++++++++++++------------------- hal/odm.h | 8 +- hal/odm_HWConfig.c | 10 +-- hal/odm_RTL8188E.c | 14 ++-- hal/odm_debug.h | 2 +- hal/odm_interface.c | 2 +- hal/odm_types.h | 4 +- hal/rtl8188e_cmd.c | 4 +- hal/rtl8188e_hal_init.c | 6 +- hal/rtl8188e_phycfg.c | 38 ++++----- hal/usb_halinit.c | 8 +- hal/usb_ops_linux.c | 8 +- include/HalVerDef.h | 68 +++++++-------- include/osdep_service.h | 2 +- include/rtl8192c_dm.h | 2 +- include/rtw_mp.h | 16 ++-- os_dep/ioctl_linux.c | 2 +- os_dep/rtw_android.c | 4 +- os_dep/usb_ops_linux.c | 6 +- 25 files changed, 243 insertions(+), 243 deletions(-) diff --git a/hal/Hal8188ERateAdaptive.c b/hal/Hal8188ERateAdaptive.c index 6eb530b..53dd93d 100755 --- a/hal/Hal8188ERateAdaptive.c +++ b/hal/Hal8188ERateAdaptive.c @@ -607,7 +607,7 @@ ODM_RASupport_Init( /* 2012/02/14 MH Be noticed, the init must be after IC type is recognized!!!!! */ if (pDM_Odm->SupportICType == ODM_RTL8188E) - pDM_Odm->RaSupport88E = TRUE; + pDM_Odm->RaSupport88E = true; } diff --git a/hal/HalHWImg8188E_BB.c b/hal/HalHWImg8188E_BB.c index 68ae5d8..33c4f79 100755 --- a/hal/HalHWImg8188E_BB.c +++ b/hal/HalHWImg8188E_BB.c @@ -32,22 +32,22 @@ CheckCondition( u32 cond = Condition; if ( Condition == 0xCDCDCDCD ) - return TRUE; + return true; cond = Condition & 0x000000FF; if ( (_board != cond) && (cond != 0xFF) ) - return FALSE; + return false; cond = Condition & 0x0000FF00; cond = cond >> 8; if ( ((_interface & cond) == 0) && (cond != 0x07) ) - return FALSE; + return false; cond = Condition & 0x00FF0000; cond = cond >> 16; if ( ((_platform & cond) == 0) && (cond != 0x0F) ) - return FALSE; - return TRUE; + return false; + return true; } @@ -339,7 +339,7 @@ ODM_ReadAndConfig_AGC_TAB_1T_8188E( u8 board = pDM_Odm->BoardType; u32 ArrayLen = sizeof(Array_AGC_TAB_1T_8188E)/sizeof(u32); u32 * Array = Array_AGC_TAB_1T_8188E; - bool biol = FALSE; + bool biol = false; HAL_STATUS rst =HAL_STATUS_SUCCESS; hex += board; @@ -838,7 +838,7 @@ ODM_ReadAndConfig_PHY_REG_1T_8188E( u8 board = pDM_Odm->BoardType; u32 ArrayLen = sizeof(Array_PHY_REG_1T_8188E)/sizeof(u32); u32 * Array = Array_PHY_REG_1T_8188E; - bool biol = FALSE; + bool biol = false; HAL_STATUS rst =HAL_STATUS_SUCCESS; hex += board; hex += interfaceValue << 8; @@ -1190,7 +1190,7 @@ ODM_ReadAndConfig_PHY_REG_PG_8188E( u8 board = pDM_Odm->BoardType; u32 ArrayLen = sizeof(Array_PHY_REG_PG_8188E)/sizeof(u32); u32 * Array = Array_PHY_REG_PG_8188E; - bool biol = FALSE; + bool biol = false; hex += board; hex += interfaceValue << 8; diff --git a/hal/HalHWImg8188E_MAC.c b/hal/HalHWImg8188E_MAC.c index 6f16115..d70b620 100755 --- a/hal/HalHWImg8188E_MAC.c +++ b/hal/HalHWImg8188E_MAC.c @@ -32,22 +32,22 @@ CheckCondition( u32 cond = Condition; if ( Condition == 0xCDCDCDCD ) - return TRUE; + return true; cond = Condition & 0x000000FF; if ( (_board != cond) && (cond != 0xFF) ) - return FALSE; + return false; cond = Condition & 0x0000FF00; cond = cond >> 8; if ( ((_interface & cond) == 0) && (cond != 0x07) ) - return FALSE; + return false; cond = Condition & 0x00FF0000; cond = cond >> 16; if ( ((_platform & cond) == 0) && (cond != 0x0F) ) - return FALSE; - return TRUE; + return false; + return true; } @@ -169,7 +169,7 @@ ODM_ReadAndConfig_MAC_REG_8188E( u8 board = pDM_Odm->BoardType; u32 ArrayLen = sizeof(Array_MAC_REG_8188E)/sizeof(u32); u32 * Array = Array_MAC_REG_8188E; - bool biol = FALSE; + bool biol = false; HAL_STATUS rst =HAL_STATUS_SUCCESS; hex += board; hex += interfaceValue << 8; diff --git a/hal/HalHWImg8188E_RF.c b/hal/HalHWImg8188E_RF.c index ea29a52..52508ce 100755 --- a/hal/HalHWImg8188E_RF.c +++ b/hal/HalHWImg8188E_RF.c @@ -32,22 +32,22 @@ CheckCondition( u32 cond = Condition; if ( Condition == 0xCDCDCDCD ) - return TRUE; + return true; cond = Condition & 0x000000FF; if ( (_board != cond) && (cond != 0xFF) ) - return FALSE; + return false; cond = Condition & 0x0000FF00; cond = cond >> 8; if ( ((_interface & cond) == 0) && (cond != 0x07) ) - return FALSE; + return false; cond = Condition & 0x00FF0000; cond = cond >> 16; if ( ((_platform & cond) == 0) && (cond != 0x0F) ) - return FALSE; - return TRUE; + return false; + return true; } @@ -188,7 +188,7 @@ ODM_ReadAndConfig_RadioA_1T_8188E( u8 board = pDM_Odm->BoardType; u32 ArrayLen = sizeof(Array_RadioA_1T_8188E)/sizeof(u32); u32 * Array = Array_RadioA_1T_8188E; - bool biol = FALSE; + bool biol = false; HAL_STATUS rst =HAL_STATUS_SUCCESS; hex += board; diff --git a/hal/HalPhyRf.c b/hal/HalPhyRf.c index 327914d..f150994 100755 --- a/hal/HalPhyRf.c +++ b/hal/HalPhyRf.c @@ -50,7 +50,7 @@ ODM_ResetIQKResult( pDM_Odm->RFCalibrateInfo.IQKMatrixRegSetting[i].Value[0][5] = pDM_Odm->RFCalibrateInfo.IQKMatrixRegSetting[i].Value[0][7] = 0x0; - pDM_Odm->RFCalibrateInfo.IQKMatrixRegSetting[i].bIQKDone = FALSE; + pDM_Odm->RFCalibrateInfo.IQKMatrixRegSetting[i].bIQKDone = false; } } diff --git a/hal/HalPhyRf_8188e.c b/hal/HalPhyRf_8188e.c index e16fb93..f1c0467 100755 --- a/hal/HalPhyRf_8188e.c +++ b/hal/HalPhyRf_8188e.c @@ -144,7 +144,7 @@ static void doIQK( ODM_ResetIQKResult(pDM_Odm); pDM_Odm->RFCalibrateInfo.ThermalValue_IQK= ThermalValue; - PHY_IQCalibrate_8188E(Adapter, FALSE); + PHY_IQCalibrate_8188E(Adapter, false); } /*----------------------------------------------------------------------------- @@ -353,8 +353,8 @@ odm_TXPowerTrackingCallback_ThermalMeter_8188E( s8 OFDM_index[2], CCK_index=0, OFDM_index_old[2]={0,0}, CCK_index_old=0, index; s8 deltaPowerIndex = 0; u32 i = 0, j = 0; - bool is2T = FALSE; - bool bInteralPA = FALSE; + bool is2T = false; + bool bInteralPA = false; u8 OFDM_min_index = 6, rf = (is2T) ? 2 : 1; /* OFDM BB Swing should be less than +3.0dB, which is required by Arthur */ u8 Indexforchannel = 0;/*GetRightChnlPlaceforIQK(pHalData->CurrentChannel)*/ @@ -375,7 +375,7 @@ odm_TXPowerTrackingCallback_ThermalMeter_8188E( /* 4 0.1 Initilization ( 7 steps in total ) */ pDM_Odm->RFCalibrateInfo.TXPowerTrackingCallbackCnt++; /* cosa add for debug */ - pDM_Odm->RFCalibrateInfo.bTXPowerTrackingInit = TRUE; + pDM_Odm->RFCalibrateInfo.bTXPowerTrackingInit = true; #if (MP_DRIVER == 1) /* RFCalibrateInfo.RegA24 will be initialized when ODM HW configuring, but MP configures with para files. */ @@ -508,7 +508,7 @@ odm_TXPowerTrackingCallback_ThermalMeter_8188E( { /* 4 7.2 Configure the Swing Table to adjust Tx Power. */ - pDM_Odm->RFCalibrateInfo.bTxPowerChanged = TRUE; /* Always TRUE after Tx Power is adjusted by power tracking. */ + pDM_Odm->RFCalibrateInfo.bTxPowerChanged = true; /* Always true after Tx Power is adjusted by power tracking. */ /* */ /* 2012/04/23 MH According to Luke's suggestion, we can not write BB digital */ /* to increase TX power. Otherwise, EVM will be bad. */ @@ -932,7 +932,7 @@ static bool ODM_CheckPowerStatus( IN struct adapter * Adapter) { - return TRUE; + return true; } void @@ -947,7 +947,7 @@ _PHY_SaveADDARegisters( HAL_DATA_TYPE *pHalData = GET_HAL_DATA(pAdapter); PDM_ODM_T pDM_Odm = &pHalData->odmpriv; - if (ODM_CheckPowerStatus(pAdapter) == FALSE) + if (ODM_CheckPowerStatus(pAdapter) == false) return; ODM_RT_TRACE(pDM_Odm,ODM_COMP_CALIBRATION, ODM_DBG_LOUD, ("Save ADDA parameters.\n")); for( i = 0 ; i < RegisterNum ; i++){ @@ -1030,7 +1030,7 @@ _PHY_PathADDAOn( ODM_RT_TRACE(pDM_Odm,ODM_COMP_CALIBRATION, ODM_DBG_LOUD, ("ADDA ON.\n")); pathOn = isPathAOn ? 0x04db25a4 : 0x0b1b25a4; - if(FALSE == is2T){ + if(false == is2T){ pathOn = 0x0bdb25a0; ODM_SetBBReg(pDM_Odm, ADDAReg[0], bMaskDWord, 0x0b1b25a0); } @@ -1110,14 +1110,14 @@ phy_SimularityCompare_8188E( HAL_DATA_TYPE *pHalData = GET_HAL_DATA(pAdapter); PDM_ODM_T pDM_Odm = &pHalData->odmpriv; u8 final_candidate[2] = {0xFF, 0xFF}; /* for path A and path B */ - bool bResult = TRUE; + bool bResult = true; bool is2T; s32 tmp1 = 0,tmp2 = 0; if( (pDM_Odm->RFType ==ODM_2T2R )||(pDM_Odm->RFType ==ODM_2T3R )||(pDM_Odm->RFType ==ODM_2T4R )) - is2T = TRUE; + is2T = true; else - is2T = FALSE; + is2T = false; if(is2T) bound = 8; @@ -1182,7 +1182,7 @@ phy_SimularityCompare_8188E( { for( j = i*4; j < (i+1)*4-2; j++) result[3][j] = result[final_candidate[i]][j]; - bResult = FALSE; + bResult = false; } } return bResult; @@ -1215,7 +1215,7 @@ phy_SimularityCompare_8188E( result[3][i] = result[c1][i]; } - return FALSE; + return false; } } @@ -1276,7 +1276,7 @@ else } ODM_RT_TRACE(pDM_Odm,ODM_COMP_CALIBRATION, ODM_DBG_LOUD, ("IQ Calibration for %s for %d times\n", (is2T ? "2T2R" : "1T1R"), t)); - _PHY_PathADDAOn(pAdapter, ADDA_REG, TRUE, is2T); + _PHY_PathADDAOn(pAdapter, ADDA_REG, true, is2T); if(t==0) { pDM_Odm->RFCalibrateInfo.bRfPiEnable = (u8)ODM_GetBBReg(pDM_Odm, rFPGA0_XA_HSSIParameter1, BIT(8)); @@ -1284,7 +1284,7 @@ else if(!pDM_Odm->RFCalibrateInfo.bRfPiEnable){ /* Switch BB to PI mode to do IQ Calibration. */ - _PHY_PIModeSwitch(pAdapter, TRUE); + _PHY_PIModeSwitch(pAdapter, true); } /* BB setting */ @@ -1354,7 +1354,7 @@ else _PHY_PathAStandBy(pAdapter); /* Turn Path B ADDA on */ - _PHY_PathADDAOn(pAdapter, ADDA_REG, FALSE, is2T); + _PHY_PathADDAOn(pAdapter, ADDA_REG, false, is2T); for(i = 0 ; i < retryCount ; i++){ PathBOK = phy_PathB_IQK_8188E(pAdapter); @@ -1386,7 +1386,7 @@ else if(t!=0) { if(!pDM_Odm->RFCalibrateInfo.bRfPiEnable){ /* Switch back BB to SI mode after finish IQ Calibration. */ - _PHY_PIModeSwitch(pAdapter, FALSE); + _PHY_PIModeSwitch(pAdapter, false); } /* Reload ADDA power saving parameters */ @@ -1906,7 +1906,7 @@ if (*(pDM_Odm->mp_mode) != 1) ((0x08 << 15) | (0x08 << 10) | (0x08 << 5) | 0x08)); } - pDM_Odm->RFCalibrateInfo.bAPKdone = TRUE; + pDM_Odm->RFCalibrateInfo.bAPKdone = true; ODM_RT_TRACE(pDM_Odm,ODM_COMP_CALIBRATION, ODM_DBG_LOUD, ("<==phy_APCalibrate_8188E()\n")); } @@ -1944,7 +1944,7 @@ PHY_IQCalibrate_8188E( bool bPathAOK, bPathBOK; s32 RegE94, RegE9C, RegEA4, RegEAC, RegEB4, RegEBC, RegEC4, RegECC, RegTmp = 0; bool is12simular, is13simular, is23simular; - bool bStartContTx = FALSE, bSingleTone = FALSE, bCarrierSuppression = FALSE; + bool bStartContTx = false, bSingleTone = false, bCarrierSuppression = false; u32 IQK_BB_REG_92C[IQK_BB_REG_NUM] = { rOFDM0_XARxIQImbalance, rOFDM0_XBRxIQImbalance, rOFDM0_ECCAThreshold, rOFDM0_AGCRSSITable, @@ -1953,8 +1953,8 @@ PHY_IQCalibrate_8188E( rOFDM0_RxIQExtAnta}; bool is2T; - is2T = (pDM_Odm->RFType == ODM_2T2R)?TRUE:FALSE; - if (ODM_CheckPowerStatus(pAdapter) == FALSE) + is2T = (pDM_Odm->RFType == ODM_2T2R)?true:false; + if (ODM_CheckPowerStatus(pAdapter) == false) return; if(!(pDM_Odm->SupportAbility & ODM_RF_CALIBRATION)) @@ -1997,11 +1997,11 @@ if (*(pDM_Odm->mp_mode) == 1) result[3][i] = 0; } final_candidate = 0xff; - bPathAOK = FALSE; - bPathBOK = FALSE; - is12simular = FALSE; - is23simular = FALSE; - is13simular = FALSE; + bPathAOK = false; + bPathBOK = false; + is12simular = false; + is23simular = false; + is13simular = false; /* ODM_RT_TRACE(pDM_Odm,ODM_COMP_CALIBRATION, ODM_DBG_LOUD, ("IQK !!!interface %d currentband %d ishardwareD %d \n", pDM_Odm->interfaceIndex, pHalData->CurrentBandType92D, IS_HARDWARE_TYPE_8192D(pAdapter))); */ @@ -2075,7 +2075,7 @@ if (*(pDM_Odm->mp_mode) == 1) RegECC = result[final_candidate][7]; ODM_RT_TRACE(pDM_Odm,ODM_COMP_CALIBRATION, ODM_DBG_LOUD, ("IQK: final_candidate is %x\n",final_candidate)); ODM_RT_TRACE(pDM_Odm,ODM_COMP_CALIBRATION, ODM_DBG_LOUD, ("IQK: RegE94=%x RegE9C=%x RegEA4=%x RegEAC=%x RegEB4=%x RegEBC=%x RegEC4=%x RegECC=%x\n ", RegE94, RegE9C, RegEA4, RegEAC, RegEB4, RegEBC, RegEC4, RegECC)); - bPathAOK = bPathBOK = TRUE; + bPathAOK = bPathBOK = true; } else { ODM_RT_TRACE(pDM_Odm,ODM_COMP_CALIBRATION, ODM_DBG_LOUD, ("IQK: FAIL use default value\n")); @@ -2099,7 +2099,7 @@ if (*(pDM_Odm->mp_mode) == 1) { for(i = 0; i < IQK_Matrix_REG_NUM; i++) pDM_Odm->RFCalibrateInfo.IQKMatrixRegSetting[Indexforchannel].Value[0][i] = result[final_candidate][i]; - pDM_Odm->RFCalibrateInfo.IQKMatrixRegSetting[Indexforchannel].bIQKDone = TRUE; + pDM_Odm->RFCalibrateInfo.IQKMatrixRegSetting[Indexforchannel].bIQKDone = true; } /* RTPRINT(FINIT, INIT_IQK, ("\nIQK OK Indexforchannel %d.\n", Indexforchannel)); */ ODM_RT_TRACE(pDM_Odm,ODM_COMP_CALIBRATION, ODM_DBG_LOUD, ("\nIQK OK Indexforchannel %d.\n", Indexforchannel)); @@ -2114,7 +2114,7 @@ PHY_LCCalibrate_8188E( IN struct adapter *pAdapter ) { - bool bStartContTx = FALSE, bSingleTone = FALSE, bCarrierSuppression = FALSE; + bool bStartContTx = false, bSingleTone = false, bCarrierSuppression = false; u32 timeout = 2000, timecount = 0; HAL_DATA_TYPE *pHalData = GET_HAL_DATA(pAdapter); PDM_ODM_T pDM_Odm = &pHalData->odmpriv; @@ -2154,21 +2154,21 @@ if (*(pDM_Odm->mp_mode) == 1) timecount += 50; } - pDM_Odm->RFCalibrateInfo.bLCKInProgress = TRUE; + pDM_Odm->RFCalibrateInfo.bLCKInProgress = true; /* ODM_RT_TRACE(pDM_Odm,ODM_COMP_CALIBRATION, ODM_DBG_LOUD, ("LCK:Start!!!interface %d currentband %x delay %d ms\n", pDM_Odm->interfaceIndex, pHalData->CurrentBandType92D, timecount)); */ if(pDM_Odm->RFType == ODM_2T2R) { - phy_LCCalibrate_8188E(pAdapter, TRUE); + phy_LCCalibrate_8188E(pAdapter, true); } else { /* For 88C 1T1R */ - phy_LCCalibrate_8188E(pAdapter, FALSE); + phy_LCCalibrate_8188E(pAdapter, false); } - pDM_Odm->RFCalibrateInfo.bLCKInProgress = FALSE; + pDM_Odm->RFCalibrateInfo.bLCKInProgress = false; ODM_RT_TRACE(pDM_Odm,ODM_COMP_CALIBRATION, ODM_DBG_LOUD, ("LCK:Finish!!!interface %d\n", pDM_Odm->InterfaceIndex)); @@ -2196,12 +2196,12 @@ PHY_APCalibrate_8188E( return; if(pDM_Odm->RFType == ODM_2T2R){ - phy_APCalibrate_8188E(pAdapter, delta, TRUE); + phy_APCalibrate_8188E(pAdapter, delta, true); } else { /* For 88C 1T1R */ - phy_APCalibrate_8188E(pAdapter, delta, FALSE); + phy_APCalibrate_8188E(pAdapter, delta, false); } } @@ -2252,11 +2252,11 @@ void PHY_SetRFPathSwitch_8188E( if(pDM_Odm->RFType == ODM_2T2R) { - phy_SetRFPathSwitch_8188E(pAdapter, bMain, TRUE); + phy_SetRFPathSwitch_8188E(pAdapter, bMain, true); } else { /* For 88C 1T1R */ - phy_SetRFPathSwitch_8188E(pAdapter, bMain, FALSE); + phy_SetRFPathSwitch_8188E(pAdapter, bMain, false); } } diff --git a/hal/odm.c b/hal/odm.c index 02f7af2..2d9bb66 100755 --- a/hal/odm.c +++ b/hal/odm.c @@ -612,7 +612,7 @@ ODM_DMWatchdog( odm_CCKPacketDetectionThresh(pDM_Odm); - if(*(pDM_Odm->pbPowerSaving)==TRUE) + if(*(pDM_Odm->pbPowerSaving)==true) return; odm_Adaptivity(pDM_Odm, pDM_Odm->DM_DigTable.CurIGValue); @@ -1014,9 +1014,9 @@ odm_CommonInfoSelfUpdate( EntryCnt++; } if(EntryCnt == 1) - pDM_Odm->bOneEntryOnly = TRUE; + pDM_Odm->bOneEntryOnly = true; else - pDM_Odm->bOneEntryOnly = FALSE; + pDM_Odm->bOneEntryOnly = false; } void @@ -1113,11 +1113,11 @@ ODM_ChangeDynamicInitGainThresh( } else if (DM_Type == DIG_TYPE_ENABLE) { - pDM_DigTable->Dig_Enable_Flag = TRUE; + pDM_DigTable->Dig_Enable_Flag = true; } else if (DM_Type == DIG_TYPE_DISABLE) { - pDM_DigTable->Dig_Enable_Flag = FALSE; + pDM_DigTable->Dig_Enable_Flag = false; } else if (DM_Type == DIG_TYPE_BACKOFF) { @@ -1211,9 +1211,9 @@ odm_DIGbyRSSI_LPS( { struct adapter * pAdapter =pDM_Odm->Adapter; pDIG_T pDM_DigTable = &pDM_Odm->DM_DigTable; - PFALSE_ALARM_STATISTICS pFalseAlmCnt = &pDM_Odm->FalseAlmCnt; + Pfalse_ALARM_STATISTICS pFalseAlmCnt = &pDM_Odm->FalseAlmCnt; u8 RSSI_Lower=DM_DIG_MIN_NIC; /* 0x1E or 0x1C */ - u8 bFwCurrentInPSMode = FALSE; + u8 bFwCurrentInPSMode = false; u8 CurrentIGI=pDM_Odm->RSSI_Min; if(! (pDM_Odm->SupportICType & (ODM_RTL8723A |ODM_RTL8188E))) @@ -1376,7 +1376,7 @@ odm_DIGInit( { pDIG_T pDM_DigTable = &pDM_Odm->DM_DigTable; - /* pDM_DigTable->Dig_Enable_Flag = TRUE; */ + /* pDM_DigTable->Dig_Enable_Flag = true; */ /* pDM_DigTable->Dig_Ext_Port_Stage = DIG_EXT_PORT_STAGE_MAX; */ pDM_DigTable->CurIGValue = (u8) ODM_GetBBReg(pDM_Odm, ODM_REG(IGI_A,pDM_Odm), ODM_BIT(IGI,pDM_Odm)); /* pDM_DigTable->PreIGValue = 0x0; */ @@ -1406,11 +1406,11 @@ odm_DIGInit( pDM_DigTable->Recover_cnt = 0; pDM_DigTable->DIG_Dynamic_MIN_0 = DM_DIG_MIN_NIC; pDM_DigTable->DIG_Dynamic_MIN_1 = DM_DIG_MIN_NIC; - pDM_DigTable->bMediaConnect_0 = FALSE; - pDM_DigTable->bMediaConnect_1 = FALSE; + pDM_DigTable->bMediaConnect_0 = false; + pDM_DigTable->bMediaConnect_1 = false; - /* To Initialize pDM_Odm->bDMInitialGainEnable == FALSE to avoid DIG error */ - pDM_Odm->bDMInitialGainEnable = TRUE; + /* To Initialize pDM_Odm->bDMInitialGainEnable == false to avoid DIG error */ + pDM_Odm->bDMInitialGainEnable = true; /* To Initi BT30 IGI */ pDM_DigTable->BT30_CurIGI=0x32; @@ -1430,7 +1430,7 @@ odm_DIG( ) { pDIG_T pDM_DigTable = &pDM_Odm->DM_DigTable; - PFALSE_ALARM_STATISTICS pFalseAlmCnt = &pDM_Odm->FalseAlmCnt; + Pfalse_ALARM_STATISTICS pFalseAlmCnt = &pDM_Odm->FalseAlmCnt; pRXHP_T pRX_HP_Table = &pDM_Odm->DM_RXHP_Table; u8 DIG_Dynamic_MIN; u8 DIG_MaxOfMin; @@ -1465,7 +1465,7 @@ odm_DIG( /* add by Neil Chen to avoid PSD is processing */ if(pDM_Odm->SupportICType==ODM_RTL8723A) { - if(pDM_Odm->bDMInitialGainEnable == FALSE) + if(pDM_Odm->bDMInitialGainEnable == false) { ODM_RT_TRACE(pDM_Odm,ODM_COMP_DIG, ODM_DBG_LOUD, ("odm_DIG() Return: PSD is Processing \n")); return; @@ -1479,14 +1479,14 @@ odm_DIG( if(*(pDM_Odm->pbMasterOfDMSP)) { DIG_Dynamic_MIN = pDM_DigTable->DIG_Dynamic_MIN_0; - FirstConnect = (pDM_Odm->bLinked) && (pDM_DigTable->bMediaConnect_0 == FALSE); - FirstDisConnect = (!pDM_Odm->bLinked) && (pDM_DigTable->bMediaConnect_0 == TRUE); + FirstConnect = (pDM_Odm->bLinked) && (pDM_DigTable->bMediaConnect_0 == false); + FirstDisConnect = (!pDM_Odm->bLinked) && (pDM_DigTable->bMediaConnect_0 == true); } else { DIG_Dynamic_MIN = pDM_DigTable->DIG_Dynamic_MIN_1; - FirstConnect = (pDM_Odm->bLinked) && (pDM_DigTable->bMediaConnect_1 == FALSE); - FirstDisConnect = (!pDM_Odm->bLinked) && (pDM_DigTable->bMediaConnect_1 == TRUE); + FirstConnect = (pDM_Odm->bLinked) && (pDM_DigTable->bMediaConnect_1 == false); + FirstDisConnect = (!pDM_Odm->bLinked) && (pDM_DigTable->bMediaConnect_1 == true); } } else @@ -1494,22 +1494,22 @@ odm_DIG( if(*(pDM_Odm->pBandType) == ODM_BAND_5G) { DIG_Dynamic_MIN = pDM_DigTable->DIG_Dynamic_MIN_0; - FirstConnect = (pDM_Odm->bLinked) && (pDM_DigTable->bMediaConnect_0 == FALSE); - FirstDisConnect = (!pDM_Odm->bLinked) && (pDM_DigTable->bMediaConnect_0 == TRUE); + FirstConnect = (pDM_Odm->bLinked) && (pDM_DigTable->bMediaConnect_0 == false); + FirstDisConnect = (!pDM_Odm->bLinked) && (pDM_DigTable->bMediaConnect_0 == true); } else { DIG_Dynamic_MIN = pDM_DigTable->DIG_Dynamic_MIN_1; - FirstConnect = (pDM_Odm->bLinked) && (pDM_DigTable->bMediaConnect_1 == FALSE); - FirstDisConnect = (!pDM_Odm->bLinked) && (pDM_DigTable->bMediaConnect_1 == TRUE); + FirstConnect = (pDM_Odm->bLinked) && (pDM_DigTable->bMediaConnect_1 == false); + FirstDisConnect = (!pDM_Odm->bLinked) && (pDM_DigTable->bMediaConnect_1 == true); } } } else { DIG_Dynamic_MIN = pDM_DigTable->DIG_Dynamic_MIN_0; - FirstConnect = (pDM_Odm->bLinked) && (pDM_DigTable->bMediaConnect_0 == FALSE); - FirstDisConnect = (!pDM_Odm->bLinked) && (pDM_DigTable->bMediaConnect_0 == TRUE); + FirstConnect = (pDM_Odm->bLinked) && (pDM_DigTable->bMediaConnect_0 == false); + FirstDisConnect = (!pDM_Odm->bLinked) && (pDM_DigTable->bMediaConnect_0 == true); } /* 1 Boundary Decision */ @@ -1653,7 +1653,7 @@ odm_DIG( else DIG_Dynamic_MIN = pDM_Odm->RSSI_Min - offset; - ODM_RT_TRACE(pDM_Odm,ODM_COMP_DIG, ODM_DBG_LOUD, ("odm_DIG() : bOneEntryOnly=TRUE, DIG_Dynamic_MIN=0x%x\n",DIG_Dynamic_MIN)); + ODM_RT_TRACE(pDM_Odm,ODM_COMP_DIG, ODM_DBG_LOUD, ("odm_DIG() : bOneEntryOnly=true, DIG_Dynamic_MIN=0x%x\n",DIG_Dynamic_MIN)); ODM_RT_TRACE(pDM_Odm,ODM_COMP_DIG, ODM_DBG_LOUD, ("odm_DIG() : pDM_Odm->RSSI_Min=%d\n",pDM_Odm->RSSI_Min)); } @@ -1887,7 +1887,7 @@ odm_DigAbort( IN PDM_ODM_T pDM_Odm ) { - return FALSE; + return false; } @@ -1924,11 +1924,11 @@ odm_DIGInit( pDM_DigTable->Recover_cnt = 0; pDM_DigTable->DIG_Dynamic_MIN_0 =DM_DIG_MIN_NIC; pDM_DigTable->DIG_Dynamic_MIN_1 = DM_DIG_MIN_NIC; - pDM_DigTable->bMediaConnect_0 = FALSE; - pDM_DigTable->bMediaConnect_1 = FALSE; + pDM_DigTable->bMediaConnect_0 = false; + pDM_DigTable->bMediaConnect_1 = false; - /* To Initialize pDM_Odm->bDMInitialGainEnable == FALSE to avoid DIG error */ - pDM_Odm->bDMInitialGainEnable = TRUE; + /* To Initialize pDM_Odm->bDMInitialGainEnable == false to avoid DIG error */ + pDM_Odm->bDMInitialGainEnable = true; } @@ -1940,7 +1940,7 @@ odm_DIG( { pDIG_T pDM_DigTable = &pDM_Odm->DM_DigTable; - PFALSE_ALARM_STATISTICS pFalseAlmCnt = &pDM_Odm->FalseAlmCnt; + Pfalse_ALARM_STATISTICS pFalseAlmCnt = &pDM_Odm->FalseAlmCnt; pRXHP_T pRX_HP_Table = &pDM_Odm->DM_RXHP_Table; u8 DIG_Dynamic_MIN; u8 DIG_MaxOfMin; @@ -1970,7 +1970,7 @@ odm_DIG( } /* add by Neil Chen to avoid PSD is processing */ - if(pDM_Odm->bDMInitialGainEnable == FALSE) + if(pDM_Odm->bDMInitialGainEnable == false) { ODM_RT_TRACE(pDM_Odm,ODM_COMP_DIG, ODM_DBG_LOUD, ("odm_DIG() Return: PSD is Processing \n")); return; @@ -1983,14 +1983,14 @@ odm_DIG( if(*(pDM_Odm->pbMasterOfDMSP)) { DIG_Dynamic_MIN = pDM_DigTable->DIG_Dynamic_MIN_0; - FirstConnect = (pDM_Odm->bLinked) && (pDM_DigTable->bMediaConnect_0 == FALSE); - FirstDisConnect = (!pDM_Odm->bLinked) && (pDM_DigTable->bMediaConnect_0 == TRUE); + FirstConnect = (pDM_Odm->bLinked) && (pDM_DigTable->bMediaConnect_0 == false); + FirstDisConnect = (!pDM_Odm->bLinked) && (pDM_DigTable->bMediaConnect_0 == true); } else { DIG_Dynamic_MIN = pDM_DigTable->DIG_Dynamic_MIN_1; - FirstConnect = (pDM_Odm->bLinked) && (pDM_DigTable->bMediaConnect_1 == FALSE); - FirstDisConnect = (!pDM_Odm->bLinked) && (pDM_DigTable->bMediaConnect_1 == TRUE); + FirstConnect = (pDM_Odm->bLinked) && (pDM_DigTable->bMediaConnect_1 == false); + FirstDisConnect = (!pDM_Odm->bLinked) && (pDM_DigTable->bMediaConnect_1 == true); } } else @@ -1998,22 +1998,22 @@ odm_DIG( if(*(pDM_Odm->pBandType) == ODM_BAND_5G) { DIG_Dynamic_MIN = pDM_DigTable->DIG_Dynamic_MIN_0; - FirstConnect = (pDM_Odm->bLinked) && (pDM_DigTable->bMediaConnect_0 == FALSE); - FirstDisConnect = (!pDM_Odm->bLinked) && (pDM_DigTable->bMediaConnect_0 == TRUE); + FirstConnect = (pDM_Odm->bLinked) && (pDM_DigTable->bMediaConnect_0 == false); + FirstDisConnect = (!pDM_Odm->bLinked) && (pDM_DigTable->bMediaConnect_0 == true); } else { DIG_Dynamic_MIN = pDM_DigTable->DIG_Dynamic_MIN_1; - FirstConnect = (pDM_Odm->bLinked) && (pDM_DigTable->bMediaConnect_1 == FALSE); - FirstDisConnect = (!pDM_Odm->bLinked) && (pDM_DigTable->bMediaConnect_1 == TRUE); + FirstConnect = (pDM_Odm->bLinked) && (pDM_DigTable->bMediaConnect_1 == false); + FirstDisConnect = (!pDM_Odm->bLinked) && (pDM_DigTable->bMediaConnect_1 == true); } } } else { DIG_Dynamic_MIN = pDM_DigTable->DIG_Dynamic_MIN_0; - FirstConnect = (pDM_Odm->bLinked) && (pDM_DigTable->bMediaConnect_0 == FALSE); - FirstDisConnect = (!pDM_Odm->bLinked) && (pDM_DigTable->bMediaConnect_0 == TRUE); + FirstConnect = (pDM_Odm->bLinked) && (pDM_DigTable->bMediaConnect_0 == false); + FirstDisConnect = (!pDM_Odm->bLinked) && (pDM_DigTable->bMediaConnect_0 == true); } /* 1 Boundary Decision */ @@ -2112,7 +2112,7 @@ odm_DIG( DIG_Dynamic_MIN = DIG_MaxOfMin; else DIG_Dynamic_MIN = pDM_Odm->RSSI_Min; - ODM_RT_TRACE(pDM_Odm,ODM_COMP_DIG, ODM_DBG_LOUD, ("odm_DIG() : bOneEntryOnly=TRUE, DIG_Dynamic_MIN=0x%x\n",DIG_Dynamic_MIN)); + ODM_RT_TRACE(pDM_Odm,ODM_COMP_DIG, ODM_DBG_LOUD, ("odm_DIG() : bOneEntryOnly=true, DIG_Dynamic_MIN=0x%x\n",DIG_Dynamic_MIN)); ODM_RT_TRACE(pDM_Odm,ODM_COMP_DIG, ODM_DBG_LOUD, ("odm_DIG() : pDM_Odm->RSSI_Min=%d\n",pDM_Odm->RSSI_Min)); } /* 1 Lower Bound for 88E AntDiv */ @@ -2294,7 +2294,7 @@ odm_FalseAlarmCounterStatistics( ) { u32 ret_value; - PFALSE_ALARM_STATISTICS FalseAlmCnt = &(pDM_Odm->FalseAlmCnt); + Pfalse_ALARM_STATISTICS FalseAlmCnt = &(pDM_Odm->FalseAlmCnt); if(!(pDM_Odm->SupportAbility & ODM_BB_FA_CNT)) return; @@ -2411,7 +2411,7 @@ odm_CCKPacketDetectionThresh( pDIG_T pDM_DigTable = &pDM_Odm->DM_DigTable; u8 CurCCK_CCAThres; - PFALSE_ALARM_STATISTICS FalseAlmCnt = &(pDM_Odm->FalseAlmCnt); + Pfalse_ALARM_STATISTICS FalseAlmCnt = &(pDM_Odm->FalseAlmCnt); if(!(pDM_Odm->SupportAbility & (ODM_BB_CCK_PD|ODM_BB_FA_CNT))) return; @@ -2503,7 +2503,7 @@ odm_DynamicBBPowerSaving( /* 1 3.Power Saving for 88C */ else { - ODM_RF_Saving(pDM_Odm, FALSE); + ODM_RF_Saving(pDM_Odm, false); } } @@ -2839,7 +2839,7 @@ odm_RefreshRateAdaptiveMaskCE( if(IS_STA_VALID(pstat) ) { if(IS_MCAST( pstat->hwaddr)) /* if(psta->mac_id ==1) */ continue; - if( TRUE == ODM_RAStateCheck(pDM_Odm, pstat->rssi_stat.UndecoratedSmoothedPWDB, FALSE , &pstat->rssi_level) ) + if( true == ODM_RAStateCheck(pDM_Odm, pstat->rssi_stat.UndecoratedSmoothedPWDB, false , &pstat->rssi_level) ) { ODM_RT_TRACE(pDM_Odm, ODM_COMP_RA_MASK, ODM_DBG_LOUD, ("RSSI:%d, RSSI_LEVEL:%d\n", pstat->rssi_stat.UndecoratedSmoothedPWDB, pstat->rssi_level)); /* printk("RSSI:%d, RSSI_LEVEL:%d\n", pstat->rssi_stat.UndecoratedSmoothedPWDB, pstat->rssi_level); */ @@ -2858,7 +2858,7 @@ odm_RefreshRateAdaptiveMaskAPADSL( } /* Return Value: bool */ -/* - TRUE: RATRState is changed. */ +/* - true: RATRState is changed. */ bool ODM_RAStateCheck( IN PDM_ODM_T pDM_Odm, @@ -2892,7 +2892,7 @@ ODM_RAStateCheck( break; default: - ODM_RT_ASSERT(pDM_Odm, FALSE, ("wrong rssi level setting %d !", *pRATRState) ); + ODM_RT_ASSERT(pDM_Odm, false, ("wrong rssi level setting %d !", *pRATRState) ); break; } @@ -2909,10 +2909,10 @@ ODM_RAStateCheck( { ODM_RT_TRACE( pDM_Odm, ODM_COMP_RA_MASK, ODM_DBG_LOUD, ("RSSI Level %d -> %d\n", *pRATRState, RATRState) ); *pRATRState = RATRState; - return TRUE; + return true; } - return FALSE; + return false; } @@ -2998,7 +2998,7 @@ odm_DynamicTxPower( return; /* 2012/01/12 MH According to Luke's suggestion, only high power will support the feature. */ - if (pDM_Odm->ExtPA == FALSE) + if (pDM_Odm->ExtPA == false) return; @@ -3300,7 +3300,7 @@ odm_TXPowerTrackingThermalMeterInit( pDM_Odm->RFCalibrateInfo.TxPowerTrackControl = true; MSG_8192C("pDM_Odm TxPowerTrackControl = %d\n", pDM_Odm->RFCalibrateInfo.TxPowerTrackControl); } - pDM_Odm->RFCalibrateInfo.TxPowerTrackControl = TRUE; + pDM_Odm->RFCalibrateInfo.TxPowerTrackControl = true; pDM_Odm->RFCalibrateInfo.DeltaPowerIndex = 0; pDM_Odm->RFCalibrateInfo.DeltaPowerIndexLast = 0; pDM_Odm->RFCalibrateInfo.PowerIndexOffset = 0; @@ -3443,7 +3443,7 @@ odm_InitHybridAntDiv_88C_92D( if((pDM_Odm->SupportICType != ODM_RTL8192C) && (pDM_Odm->SupportICType != ODM_RTL8192D)) return; - bTxPathSel=(pDM_Odm->RFType==ODM_1T1R)?FALSE:TRUE; + bTxPathSel=(pDM_Odm->RFType==ODM_1T1R)?false:true; ODM_SetBBReg(pDM_Odm,ODM_REG_BB_PWR_SAV1_11N, BIT23, 0); /* No update ANTSEL during GNT_BT=1 */ ODM_SetBBReg(pDM_Odm,ODM_REG_TX_ANT_CTRL_11N, BIT21, 1); /* TX atenna selection from tx_info */ @@ -3536,7 +3536,7 @@ odm_StaDefAntSel( if(((OFDM_Ant1_Cnt+OFDM_Ant2_Cnt)==0)&&((CCK_Ant1_Cnt + CCK_Ant2_Cnt) <10)){ ODM_RT_TRACE(pDM_Odm,ODM_COMP_ANT_DIV,ODM_DBG_LOUD,("odm_StaDefAntSelect Fail: No enough packet info!\n")); - return FALSE; + return false; } if(OFDM_Ant1_Cnt || OFDM_Ant2_Cnt ) { @@ -3571,7 +3571,7 @@ odm_StaDefAntSel( ODM_RT_TRACE(pDM_Odm, ODM_COMP_ANT_DIV,ODM_DBG_LOUD,("<==============odm_StaDefAntSelect\n")); - return TRUE; + return true; } @@ -3660,7 +3660,7 @@ odm_HwAntDiv_92C_92D( SWAT_T *pDM_SWAT_Table = &pDM_Odm->DM_SWAT_Table; u32 RSSI_Min=0xFF, RSSI, RSSI_Ant1, RSSI_Ant2; u8 RxIdleAnt, i; - bool bRet=FALSE; + bool bRet=false; PSTA_INFO_T pEntry; ODM_RT_TRACE(pDM_Odm, ODM_COMP_ANT_DIV,ODM_DBG_LOUD,("odm_HwAntDiv==============>\n")); @@ -3677,7 +3677,7 @@ odm_HwAntDiv_92C_92D( } if(!pDM_Odm->bLinked) { - ODM_RT_TRACE(pDM_Odm, ODM_COMP_ANT_DIV,ODM_DBG_LOUD,("Return: bLinked is FALSE\n")); + ODM_RT_TRACE(pDM_Odm, ODM_COMP_ANT_DIV,ODM_DBG_LOUD,("Return: bLinked is false\n")); return; } @@ -3722,7 +3722,7 @@ odm_HwAntDiv_92C_92D( /* set RX Idle Ant */ RxIdleAnt = pDM_SWAT_Table->TxAnt[pDM_SWAT_Table->TargetSTA]; - odm_SetRxIdleAnt(pDM_Odm, RxIdleAnt, FALSE); + odm_SetRxIdleAnt(pDM_Odm, RxIdleAnt, false); ODM_RT_TRACE(pDM_Odm, ODM_COMP_ANT_DIV, ODM_DBG_LOUD,("<==============odm_HwAntDiv\n")); } @@ -3756,9 +3756,9 @@ ODM_EdcaTurboInit( IN PDM_ODM_T pDM_Odm) { struct adapter *Adapter = pDM_Odm->Adapter; - pDM_Odm->DM_EDCA_Table.bCurrentTurboEDCA = FALSE; - pDM_Odm->DM_EDCA_Table.bIsCurRDLState = FALSE; - Adapter->recvpriv.bIsAnyNonBEPkts =FALSE; + pDM_Odm->DM_EDCA_Table.bCurrentTurboEDCA = false; + pDM_Odm->DM_EDCA_Table.bIsCurRDLState = false; + Adapter->recvpriv.bIsAnyNonBEPkts =false; ODM_RT_TRACE(pDM_Odm,ODM_COMP_EDCA_TURBO,ODM_DBG_LOUD,("Orginial VO PARAM: 0x%x\n",ODM_Read4Byte(pDM_Odm,ODM_EDCA_VO_PARAM))); ODM_RT_TRACE(pDM_Odm,ODM_COMP_EDCA_TURBO,ODM_DBG_LOUD,("Orginial VI PARAM: 0x%x\n",ODM_Read4Byte(pDM_Odm,ODM_EDCA_VI_PARAM))); ODM_RT_TRACE(pDM_Odm,ODM_COMP_EDCA_TURBO,ODM_DBG_LOUD,("Orginial BE PARAM: 0x%x\n",ODM_Read4Byte(pDM_Odm,ODM_EDCA_BE_PARAM))); @@ -3986,8 +3986,8 @@ ODM_SingleDualAntennaDefaultSetting( ) { pSWAT_T pDM_SWAT_Table = &pDM_Odm->DM_SWAT_Table; - pDM_SWAT_Table->ANTA_ON=TRUE; - pDM_SWAT_Table->ANTB_ON=TRUE; + pDM_SWAT_Table->ANTA_ON=true; + pDM_SWAT_Table->ANTB_ON=true; } @@ -4052,7 +4052,7 @@ ODM_SingleDualAntennaDetection( u8 initial_gain = 0x5a; u32 PSD_report_tmp; u32 AntA_report = 0x0, AntB_report = 0x0,AntO_report=0x0; - bool bResult = TRUE; + bool bResult = true; u32 AFE_Backup[16]; u32 AFE_REG_8723A[16] = { rRx_Wait_CCA, rTx_CCK_RFON, @@ -4214,20 +4214,20 @@ ODM_SingleDualAntennaDetection( { if(AntB_report > (AntA_report+1)) { - pDM_SWAT_Table->ANTB_ON=FALSE; + pDM_SWAT_Table->ANTB_ON=false; ODM_RT_TRACE(pDM_Odm,ODM_COMP_ANT_DIV, ODM_DBG_LOUD, ("ODM_SingleDualAntennaDetection(): Single Antenna A\n")); } else { - pDM_SWAT_Table->ANTB_ON=TRUE; + pDM_SWAT_Table->ANTB_ON=true; ODM_RT_TRACE(pDM_Odm,ODM_COMP_ANT_DIV, ODM_DBG_LOUD, ("ODM_SingleDualAntennaDetection(): Dual Antenna is A and B\n")); } } else { ODM_RT_TRACE(pDM_Odm,ODM_COMP_ANT_DIV, ODM_DBG_LOUD, ("ODM_SingleDualAntennaDetection(): Need to check again\n")); - pDM_SWAT_Table->ANTB_ON=FALSE; /* Set Antenna B off as default */ - bResult = FALSE; + pDM_SWAT_Table->ANTB_ON=false; /* Set Antenna B off as default */ + bResult = false; } } /* 2 Test Ant A and B based on DPDT Open */ @@ -4237,26 +4237,26 @@ ODM_SingleDualAntennaDetection( { if(AntA_report > (AntO_report+1)) { - pDM_SWAT_Table->ANTA_ON=FALSE; + pDM_SWAT_Table->ANTA_ON=false; /* RT_TRACE(COMP_ANTENNA, DBG_LOUD, ("ODM_AntennaDetection(): Antenna A is OFF\n")); */ ODM_RT_TRACE(pDM_Odm,ODM_COMP_ANT_DIV, ODM_DBG_LOUD,("Ant A is OFF")); } else { - pDM_SWAT_Table->ANTA_ON=TRUE; + pDM_SWAT_Table->ANTA_ON=true; /* RT_TRACE(COMP_ANTENNA, DBG_LOUD, ("ODM_AntennaDetection(): Antenna A is ON\n")); */ ODM_RT_TRACE(pDM_Odm,ODM_COMP_ANT_DIV, ODM_DBG_LOUD,("Ant A is ON")); } if(AntB_report > (AntO_report+2)) { - pDM_SWAT_Table->ANTB_ON=FALSE; + pDM_SWAT_Table->ANTB_ON=false; /* RT_TRACE(COMP_ANTENNA, DBG_LOUD, ("ODM_AntennaDetection(): Antenna B is OFF\n")); */ ODM_RT_TRACE(pDM_Odm,ODM_COMP_ANT_DIV, ODM_DBG_LOUD,("Ant B is OFF")); } else { - pDM_SWAT_Table->ANTB_ON=TRUE; + pDM_SWAT_Table->ANTB_ON=true; /* RT_TRACE(COMP_ANTENNA, DBG_LOUD, ("ODM_AntennaDetection(): Antenna B is ON\n")); */ ODM_RT_TRACE(pDM_Odm,ODM_COMP_ANT_DIV, ODM_DBG_LOUD,("Ant B is ON")); } @@ -4269,31 +4269,31 @@ ODM_SingleDualAntennaDetection( { if(AntB_report > (AntA_report+2)) { - pDM_SWAT_Table->ANTA_ON=FALSE; - pDM_SWAT_Table->ANTB_ON=TRUE; + pDM_SWAT_Table->ANTA_ON=false; + pDM_SWAT_Table->ANTB_ON=true; ODM_SetBBReg(pDM_Odm, rFPGA0_XA_RFInterfaceOE, 0x300, Antenna_B); ODM_RT_TRACE(pDM_Odm,ODM_COMP_ANT_DIV, ODM_DBG_LOUD, ("ODM_SingleDualAntennaDetection(): Single Antenna B\n")); } else if(AntA_report > (AntB_report+2)) { - pDM_SWAT_Table->ANTA_ON=TRUE; - pDM_SWAT_Table->ANTB_ON=FALSE; + pDM_SWAT_Table->ANTA_ON=true; + pDM_SWAT_Table->ANTB_ON=false; ODM_SetBBReg(pDM_Odm, rFPGA0_XA_RFInterfaceOE, 0x300, Antenna_A); ODM_RT_TRACE(pDM_Odm,ODM_COMP_ANT_DIV, ODM_DBG_LOUD, ("ODM_SingleDualAntennaDetection(): Single Antenna A\n")); } else { - pDM_SWAT_Table->ANTA_ON=TRUE; - pDM_SWAT_Table->ANTB_ON=TRUE; + pDM_SWAT_Table->ANTA_ON=true; + pDM_SWAT_Table->ANTB_ON=true; RT_TRACE(COMP_ANTENNA, DBG_LOUD, ("ODM_SingleDualAntennaDetection(): Dual Antenna \n")); } } else { ODM_RT_TRACE(pDM_Odm,ODM_COMP_ANT_DIV, ODM_DBG_LOUD, ("ODM_SingleDualAntennaDetection(): Need to check again\n")); - pDM_SWAT_Table->ANTA_ON=TRUE; /* Set Antenna A on as default */ - pDM_SWAT_Table->ANTB_ON=FALSE; /* Set Antenna B off as default */ - bResult = FALSE; + pDM_SWAT_Table->ANTA_ON=true; /* Set Antenna A on as default */ + pDM_SWAT_Table->ANTB_ON=false; /* Set Antenna B off as default */ + bResult = false; } } return bResult; diff --git a/hal/odm.h b/hal/odm.h index 62f39b5..013299a 100755 --- a/hal/odm.h +++ b/hal/odm.h @@ -201,7 +201,7 @@ typedef struct false_ALARM_STATISTICS{ u32 Cnt_CCA_all; u32 Cnt_BW_USC; /* Gary */ u32 Cnt_BW_LSC; /* Gary */ -}FALSE_ALARM_STATISTICS, *PFALSE_ALARM_STATISTICS; +}false_ALARM_STATISTICS, *Pfalse_ALARM_STATISTICS; typedef struct _Dynamic_Primary_CCA{ u8 PriCCA_flag; @@ -427,7 +427,7 @@ typedef enum _ODM_Common_Info_Definition ODM_CMNINFO_FAB_VER, /* ODM_FAB_E */ ODM_CMNINFO_RF_TYPE, /* ODM_RF_PATH_E or ODM_RF_TYPE_E? */ ODM_CMNINFO_BOARD_TYPE, /* ODM_BOARD_TYPE_E */ - ODM_CMNINFO_EXT_LNA, /* TRUE */ + ODM_CMNINFO_EXT_LNA, /* true */ ODM_CMNINFO_EXT_PA, ODM_CMNINFO_EXT_TRSW, ODM_CMNINFO_PATCH_ID, /* CUSTOMER ID */ @@ -1126,8 +1126,8 @@ typedef struct DM_Out_Source_Dynamic_Mechanism_Structure PS_T DM_PSTable; Pri_CCA_T DM_PriCCA; RXHP_T DM_RXHP_Table; - FALSE_ALARM_STATISTICS FalseAlmCnt; - FALSE_ALARM_STATISTICS FlaseAlmCntBuddyAdapter; + false_ALARM_STATISTICS FalseAlmCnt; + false_ALARM_STATISTICS FlaseAlmCntBuddyAdapter; SWAT_T DM_SWAT_Table; bool RSSI_test; diff --git a/hal/odm_HWConfig.c b/hal/odm_HWConfig.c index 4d7c4ae..0a550fe 100755 --- a/hal/odm_HWConfig.c +++ b/hal/odm_HWConfig.c @@ -255,7 +255,7 @@ odm_RxPhyStatus92CSeries_Parsing( PPHY_STATUS_RPT_8192CD_T pPhyStaRpt = (PPHY_STATUS_RPT_8192CD_T)pPhyStatus; - isCCKrate = ((pPktinfo->Rate >= DESC92C_RATE1M ) && (pPktinfo->Rate <= DESC92C_RATE11M ))?TRUE :FALSE; + isCCKrate = ((pPktinfo->Rate >= DESC92C_RATE1M ) && (pPktinfo->Rate <= DESC92C_RATE11M ))?true :false; pPhyInfo->RxMIMOSignalQuality[ODM_RF_PATH_A] = -1; pPhyInfo->RxMIMOSignalQuality[ODM_RF_PATH_B] = -1; @@ -275,7 +275,7 @@ odm_RxPhyStatus92CSeries_Parsing( /* if(pHalData->eRFPowerState == eRfOn) */ cck_highpwr = pDM_Odm->bCckHighPower; /* else */ - /* cck_highpwr = FALSE; */ + /* cck_highpwr = false; */ cck_agc_rpt = pPhyStaRpt->cck_agc_rpt_ofdm_cfosho_a ; @@ -323,7 +323,7 @@ odm_RxPhyStatus92CSeries_Parsing( } rx_pwr_all += 6; PWDB_ALL = odm_QueryRxPwrPercentage(rx_pwr_all); - if(cck_highpwr == FALSE) + if(cck_highpwr == false) { if(PWDB_ALL >= 80) PWDB_ALL = ((PWDB_ALL-80)<<1)+((PWDB_ALL-80)>>1)+80; @@ -609,7 +609,7 @@ odm_Process_RSSIForDM( return; } - isCCKrate = ((pPktinfo->Rate >= DESC92C_RATE1M ) && (pPktinfo->Rate <= DESC92C_RATE11M ))?TRUE :FALSE; + isCCKrate = ((pPktinfo->Rate >= DESC92C_RATE1M ) && (pPktinfo->Rate <= DESC92C_RATE11M ))?true :false; if(pPktinfo->bPacketBeacon) pDM_Odm->PhyDbgInfo.NumQryBeaconPkt++; @@ -792,7 +792,7 @@ ODM_PhyStatusQuery_92CSeries( pPhyStatus, pPktinfo); - if( pDM_Odm->RSSI_test == TRUE) { + if( pDM_Odm->RSSI_test == true) { /* Select the packets to do RSSI checking for antenna switching. */ if(pPktinfo->bPacketToSelf || pPktinfo->bPacketBeacon ) ODM_SwAntDivChkPerPktRssi(pDM_Odm,pPktinfo->StationID,pPhyInfo); diff --git a/hal/odm_RTL8188E.c b/hal/odm_RTL8188E.c index 6262357..907ab1d 100755 --- a/hal/odm_RTL8188E.c +++ b/hal/odm_RTL8188E.c @@ -248,7 +248,7 @@ ODM_AntennaDiversityInit_88E( /* ODM_RT_TRACE(pDM_Odm,ODM_COMP_ANT_DIV, ODM_DBG_LOUD, ("pDM_Odm->AntDivType=%d, pHalData->AntDivCfg=%d\n", */ /* pDM_Odm->AntDivType, pHalData->AntDivCfg)); */ ODM_RT_TRACE(pDM_Odm,ODM_COMP_ANT_DIV, ODM_DBG_LOUD, ("pDM_Odm->AntDivType=%d\n",pDM_Odm->AntDivType)); - ODM_RT_TRACE(pDM_Odm,ODM_COMP_ANT_DIV, ODM_DBG_LOUD, ("pDM_Odm->bIsMPChip=%s\n",(pDM_Odm->bIsMPChip?"TRUE":"FALSE"))); + ODM_RT_TRACE(pDM_Odm,ODM_COMP_ANT_DIV, ODM_DBG_LOUD, ("pDM_Odm->bIsMPChip=%s\n",(pDM_Odm->bIsMPChip?"true":"false"))); if(pDM_Odm->AntDivType == CGCS_RX_HW_ANTDIV) odm_RX_HWAntDivInit(pDM_Odm); @@ -392,7 +392,7 @@ odm_HWAntDiv( pFAT_T pDM_FatTable = &pDM_Odm->DM_FatTable; pDIG_T pDM_DigTable = &pDM_Odm->DM_DigTable; bool bMatchBSSID; - bool bPktFilterMacth = FALSE; + bool bPktFilterMacth = false; PSTA_INFO_T pEntry; for (i=0; ibLinked) { ODM_RT_TRACE(pDM_Odm,ODM_COMP_ANT_DIV, ODM_DBG_LOUD, ("ODM_AntennaDiversity_88E(): No Link.\n")); - if(pDM_FatTable->bBecomeLinked == TRUE) + if(pDM_FatTable->bBecomeLinked == true) { ODM_RT_TRACE(pDM_Odm,ODM_COMP_ANT_DIV, ODM_DBG_LOUD, ("Need to Turn off HW AntDiv\n")); ODM_SetBBReg(pDM_Odm, ODM_REG_IGI_A_11N , BIT7, 0); /* RegC50[7]=1'b1 enable HW AntDiv */ @@ -505,7 +505,7 @@ ODM_AntennaDiversity_88E( } return; } else { - if(pDM_FatTable->bBecomeLinked ==FALSE) { + if(pDM_FatTable->bBecomeLinked ==false) { ODM_RT_TRACE(pDM_Odm,ODM_COMP_ANT_DIV, ODM_DBG_LOUD, ("Need to Turn on HW AntDiv\n")); /* Because HW AntDiv is disabled before Link, we enable HW AntDiv after link */ ODM_SetBBReg(pDM_Odm, ODM_REG_IGI_A_11N , BIT7, 1); /* RegC50[7]=1'b1 enable HW AntDiv */ @@ -561,11 +561,11 @@ odm_DynamicPrimaryCCA( struct adapter *Adapter = pDM_Odm->Adapter; /* for NIC */ prtl8192cd_priv priv = pDM_Odm->priv; /* for AP */ HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter); - PFALSE_ALARM_STATISTICS FalseAlmCnt = &(pDM_Odm->FalseAlmCnt); + Pfalse_ALARM_STATISTICS FalseAlmCnt = &(pDM_Odm->FalseAlmCnt); pPri_CCA_T PrimaryCCA = &(pDM_Odm->DM_PriCCA); bool Is40MHz; - bool Client_40MHz = FALSE, Client_tmp = FALSE; /* connected client BW */ - bool bConnected = FALSE; /* connected or not */ + bool Client_40MHz = false, Client_tmp = false; /* connected client BW */ + bool bConnected = false; /* connected or not */ static u8 Client_40MHz_pre = 0; static u64 lastTxOkCnt = 0; static u64 lastRxOkCnt = 0; diff --git a/hal/odm_debug.h b/hal/odm_debug.h index 64c8e68..8dd84ef 100755 --- a/hal/odm_debug.h +++ b/hal/odm_debug.h @@ -132,7 +132,7 @@ DbgPrint( "Assertion failed! %s at ......\n", #expr); \ DbgPrint( " ......%s,%s,line=%d\n",__FILE__,__FUNCTION__,__LINE__); \ RT_PRINTK fmt; \ - ASSERT(FALSE); \ + ASSERT(false); \ } #define ODM_dbg_enter() { DbgPrint("==> %s\n", __FUNCTION__); } #define ODM_dbg_exit() { DbgPrint("<== %s\n", __FUNCTION__); } diff --git a/hal/odm_interface.c b/hal/odm_interface.c index bee5f0b..53109ac 100755 --- a/hal/odm_interface.c +++ b/hal/odm_interface.c @@ -356,5 +356,5 @@ ODM_FillH2CCmd( IN u8 * CmdStartSeq ) { - return TRUE; + return true; } diff --git a/hal/odm_types.h b/hal/odm_types.h index 4b97696..4acdabe 100755 --- a/hal/odm_types.h +++ b/hal/odm_types.h @@ -68,8 +68,8 @@ typedef void * RT_TIMER_CALL_BACK; -#define TRUE true -#define FALSE false +#define true true +#define false false #define SET_TX_DESC_ANTSEL_A_88E(__pTxDesc, __Value) \ diff --git a/hal/rtl8188e_cmd.c b/hal/rtl8188e_cmd.c index cc0d8a0..11fb33b 100755 --- a/hal/rtl8188e_cmd.c +++ b/hal/rtl8188e_cmd.c @@ -576,9 +576,9 @@ CheckFwRsvdPageContent( /* Now we just send 4 types packet to rsvd page. */ /* (1)Beacon, (2)Ps-poll, (3)Null data, (4)ProbeRsp. */ /* Input: */ -/* bDLFinished - FALSE: At the first time we will send all the packets as a large packet to Hw, */ +/* bDLFinished - false: At the first time we will send all the packets as a large packet to Hw, */ /* so we need to set the packet length to total lengh. */ -/* TRUE: At the second time, we should send the first packet (default:beacon) */ +/* true: At the second time, we should send the first packet (default:beacon) */ /* to Hw again and set the lengh in descriptor to the real beacon lengh. */ /* 2009.10.15 by tynli. */ static void SetFwRsvdPagePkt(struct adapter *padapter, bool bDLFinished) diff --git a/hal/rtl8188e_hal_init.c b/hal/rtl8188e_hal_init.c index d6dd3bd..80e5503 100755 --- a/hal/rtl8188e_hal_init.c +++ b/hal/rtl8188e_hal_init.c @@ -2951,7 +2951,7 @@ Hal_ReadPowerValueFromPROM_8188E( } - /* pHalData->bNOPG = TRUE; */ + /* pHalData->bNOPG = true; */ return; } @@ -2966,7 +2966,7 @@ Hal_ReadPowerValueFromPROM_8188E( if(pwrInfo24G->IndexCCK_Base[rfPath][group] == 0xFF) { pwrInfo24G->IndexCCK_Base[rfPath][group] = EEPROM_DEFAULT_24G_INDEX; -/* pHalData->bNOPG = TRUE; */ +/* pHalData->bNOPG = true; */ } } for(group = 0 ; group < MAX_CHNL_GROUP_24G-1; group++) @@ -3187,7 +3187,7 @@ Hal_ReadTxPowerInfo88E( Hal_ReadPowerValueFromPROM_8188E(padapter,&pwrInfo24G, PROMContent, AutoLoadFail); if(!AutoLoadFail) - pHalData->bTXPowerDataReadFromEEPORM = TRUE; + pHalData->bTXPowerDataReadFromEEPORM = true; /* for(rfPath = 0 ; rfPath < MAX_RF_PATH ; rfPath++) */ for(rfPath = 0 ; rfPath < pHalData->NumTotalRFPath ; rfPath++) diff --git a/hal/rtl8188e_phycfg.c b/hal/rtl8188e_phycfg.c index 7f6f28e..0ab5d4b 100755 --- a/hal/rtl8188e_phycfg.c +++ b/hal/rtl8188e_phycfg.c @@ -91,7 +91,7 @@ sic_IsSICReady( { if(retryCnt++ >= SIC_MAX_POLL_CNT) { - /* RTPRINT(FPHY, (PHY_SICR|PHY_SICW), ("[SIC], sic_IsSICReady() return FALSE\n")); */ + /* RTPRINT(FPHY, (PHY_SICR|PHY_SICW), ("[SIC], sic_IsSICReady() return false\n")); */ return false; } @@ -1041,7 +1041,7 @@ phy_BB8190_Config_HardCode( IN struct adapter *Adapter ) { - /* RT_ASSERT(FALSE, ("This function is not implement yet!! \n")); */ + /* RT_ASSERT(false, ("This function is not implement yet!! \n")); */ return _SUCCESS; } @@ -1304,7 +1304,7 @@ PHY_CheckBBAndRFOK( switch(CheckBlock) { case HW90_BLOCK_MAC: - /* RT_ASSERT(FALSE, ("PHY_CheckBBRFOK(): Never Write 0x100 here!")); */ + /* RT_ASSERT(false, ("PHY_CheckBBRFOK(): Never Write 0x100 here!")); */ /* RT_TRACE(COMP_INIT, DBG_LOUD, ("PHY_CheckBBRFOK(): Never Write 0x100 here!\n")); */ break; @@ -1890,11 +1890,11 @@ _PHY_SetBWMode92C( break; default: - /* RT_ASSERT(FALSE, ("Unknown RFChipID: %d\n", pHalData->RFChipID)); */ + /* RT_ASSERT(false, ("Unknown RFChipID: %d\n", pHalData->RFChipID)); */ break; } - /* pHalData->SetBWModeInProgress= FALSE; */ + /* pHalData->SetBWModeInProgress= false; */ /* RT_TRACE(COMP_SCAN, DBG_LOUD, ("<==PHY_SetBWModeCallback8192C() \n" )); */ } @@ -1994,7 +1994,7 @@ PHY_SwChnl8188E( /* Call after initialization */ if(pHalData->rf_chip == RF_PSEUDO_11N) { - /* pHalData->SwChnlInProgress=FALSE; */ + /* pHalData->SwChnlInProgress=false; */ return; /* return immediately if it is peudo-phy */ } @@ -2022,12 +2022,12 @@ PHY_SwChnl8188E( /* Call after initialization */ break; default: - /* RT_ASSERT(FALSE, ("Invalid WirelessMode(%#x)!!\n", pHalData->CurrentWirelessMode)); */ + /* RT_ASSERT(false, ("Invalid WirelessMode(%#x)!!\n", pHalData->CurrentWirelessMode)); */ break; } /* */ - /* pHalData->SwChnlInProgress = TRUE; */ + /* pHalData->SwChnlInProgress = true; */ if(channel == 0) channel = 1; @@ -2043,14 +2043,14 @@ PHY_SwChnl8188E( /* Call after initialization */ phy_SpurCalibration_8188E( Adapter); if(bResult) { - /* RT_TRACE(COMP_SCAN, DBG_LOUD, ("PHY_SwChnl8192C SwChnlInProgress TRUE schdule workitem done\n")); */ + /* RT_TRACE(COMP_SCAN, DBG_LOUD, ("PHY_SwChnl8192C SwChnlInProgress true schdule workitem done\n")); */ } else { - /* RT_TRACE(COMP_SCAN, DBG_LOUD, ("PHY_SwChnl8192C SwChnlInProgress FALSE schdule workitem error\n")); */ + /* RT_TRACE(COMP_SCAN, DBG_LOUD, ("PHY_SwChnl8192C SwChnlInProgress false schdule workitem error\n")); */ /* if(IS_HARDWARE_TYPE_8192SU(Adapter)) */ /* */ - /* pHalData->SwChnlInProgress = FALSE; */ + /* pHalData->SwChnlInProgress = false; */ pHalData->CurrentChannel = tmpchannel; /* */ } @@ -2058,10 +2058,10 @@ PHY_SwChnl8188E( /* Call after initialization */ } else { - /* RT_TRACE(COMP_SCAN, DBG_LOUD, ("PHY_SwChnl8192C SwChnlInProgress FALSE driver sleep or unload\n")); */ + /* RT_TRACE(COMP_SCAN, DBG_LOUD, ("PHY_SwChnl8192C SwChnlInProgress false driver sleep or unload\n")); */ /* if(IS_HARDWARE_TYPE_8192SU(Adapter)) */ /* */ - /* pHalData->SwChnlInProgress = FALSE; */ + /* pHalData->SwChnlInProgress = false; */ pHalData->CurrentChannel = tmpchannel; /* */ } @@ -2096,12 +2096,12 @@ phy_SetSwChnlCmdArray( if(CmdTable == NULL) { - /* RT_ASSERT(FALSE, ("phy_SetSwChnlCmdArray(): CmdTable cannot be NULL.\n")); */ + /* RT_ASSERT(false, ("phy_SetSwChnlCmdArray(): CmdTable cannot be NULL.\n")); */ return false; } if(CmdTableIdx >= CmdTableSz) { - /* RT_ASSERT(FALSE, */ + /* RT_ASSERT(false, */ /* ("phy_SetSwChnlCmdArray(): Access invalid index, please check size of the table, CmdTableIdx:%ld, CmdTableSz:%ld\n", */ /* CmdTableIdx, CmdTableSz)); */ return false; @@ -2155,11 +2155,11 @@ PHY_SwChnlPhy8192C( /* Only called during initialize */ /* return immediately if it is peudo-phy */ if(pHalData->rf_chip == RF_PSEUDO_11N) { - /* pHalData->SwChnlInProgress=FALSE; */ + /* pHalData->SwChnlInProgress=false; */ return; } - /* pHalData->SwChnlInProgress = TRUE; */ + /* pHalData->SwChnlInProgress = true; */ if( channel == 0) channel = 1; @@ -2170,7 +2170,7 @@ PHY_SwChnlPhy8192C( /* Only called during initialize */ phy_FinishSwChnlNow(Adapter,channel); - /* pHalData->SwChnlInProgress = FALSE; */ + /* pHalData->SwChnlInProgress = false; */ } @@ -2252,7 +2252,7 @@ static void _PHY_SetRFPathSwitch( } -/* return value TRUE => Main; FALSE => Aux */ +/* return value true => Main; false => Aux */ static bool _PHY_QueryRFPathSwitch( IN struct adapter *pAdapter, diff --git a/hal/usb_halinit.c b/hal/usb_halinit.c index face428..e20497a 100755 --- a/hal/usb_halinit.c +++ b/hal/usb_halinit.c @@ -462,7 +462,7 @@ _InitNormalChipOneOutEpPriority( value = QUEUE_NORMAL; break; default: - /* RT_ASSERT(FALSE,("Shall not reach here!\n")); */ + /* RT_ASSERT(false,("Shall not reach here!\n")); */ break; } @@ -505,7 +505,7 @@ _InitNormalChipTwoOutEpPriority( valueLow = QUEUE_NORMAL; break; default: - /* RT_ASSERT(FALSE,("Shall not reach here!\n")); */ + /* RT_ASSERT(false,("Shall not reach here!\n")); */ break; } @@ -576,7 +576,7 @@ _InitQueuePriority( _InitNormalChipThreeOutEpPriority(Adapter); break; default: - /* RT_ASSERT(FALSE,("Shall not reach here!\n")); */ + /* RT_ASSERT(false,("Shall not reach here!\n")); */ break; } @@ -912,7 +912,7 @@ usb_AggSettingRxUpdate( pHalData->HwRxPageSize = 1024; break; default: - /* RT_ASSERT(FALSE, ("RX_PAGE_SIZE_REG_VALUE definition is incorrect!\n")); */ + /* RT_ASSERT(false, ("RX_PAGE_SIZE_REG_VALUE definition is incorrect!\n")); */ break; } } /* usb_AggSettingRxUpdate */ diff --git a/hal/usb_ops_linux.c b/hal/usb_ops_linux.c index 64bad22..64b5056 100755 --- a/hal/usb_ops_linux.c +++ b/hal/usb_ops_linux.c @@ -372,10 +372,10 @@ static void usb_read_interrupt_complete(struct urb *purb, struct pt_regs *regs) case -ENODEV: case -ESHUTDOWN: /* padapter->bSurpriseRemoved=true; */ - RT_TRACE(_module_hci_ops_os_c_,_drv_err_,("usb_read_port_complete:bSurpriseRemoved=TRUE\n")); + RT_TRACE(_module_hci_ops_os_c_,_drv_err_,("usb_read_port_complete:bSurpriseRemoved=true\n")); case -ENOENT: padapter->bDriverStopped=true; - RT_TRACE(_module_hci_ops_os_c_,_drv_err_,("usb_read_port_complete:bDriverStopped=TRUE\n")); + RT_TRACE(_module_hci_ops_os_c_,_drv_err_,("usb_read_port_complete:bDriverStopped=true\n")); break; case -EPROTO: break; @@ -730,10 +730,10 @@ static void usb_read_port_complete(struct urb *purb, struct pt_regs *regs) case -ENODEV: case -ESHUTDOWN: /* padapter->bSurpriseRemoved=true; */ - RT_TRACE(_module_hci_ops_os_c_,_drv_err_,("usb_read_port_complete:bSurpriseRemoved=TRUE\n")); + RT_TRACE(_module_hci_ops_os_c_,_drv_err_,("usb_read_port_complete:bSurpriseRemoved=true\n")); case -ENOENT: padapter->bDriverStopped=true; - RT_TRACE(_module_hci_ops_os_c_,_drv_err_,("usb_read_port_complete:bDriverStopped=TRUE\n")); + RT_TRACE(_module_hci_ops_os_c_,_drv_err_,("usb_read_port_complete:bDriverStopped=true\n")); break; case -EPROTO: case -EILSEQ: diff --git a/include/HalVerDef.h b/include/HalVerDef.h index 0295536..78e65e9 100755 --- a/include/HalVerDef.h +++ b/include/HalVerDef.h @@ -20,8 +20,8 @@ #ifndef __HAL_VERSION_DEF_H__ #define __HAL_VERSION_DEF_H__ -#define TRUE true -#define FALSE false +#define true true +#define false false // HAL_IC_TYPE_E typedef enum tag_HAL_IC_Type_Definition @@ -109,55 +109,55 @@ typedef struct tag_HAL_VERSION //HAL_VERSION VersionID // HAL_IC_TYPE_E -#define IS_81XXC(version) (((GET_CVID_IC_TYPE(version) == CHIP_8192C)||(GET_CVID_IC_TYPE(version) == CHIP_8188C))? TRUE : FALSE) -#define IS_8723_SERIES(version) ((GET_CVID_IC_TYPE(version) == CHIP_8723A)? TRUE : FALSE) -#define IS_92D(version) ((GET_CVID_IC_TYPE(version) == CHIP_8192D)? TRUE : FALSE) -#define IS_8188E(version) ((GET_CVID_IC_TYPE(version) == CHIP_8188E)? TRUE : FALSE) +#define IS_81XXC(version) (((GET_CVID_IC_TYPE(version) == CHIP_8192C)||(GET_CVID_IC_TYPE(version) == CHIP_8188C))? true : false) +#define IS_8723_SERIES(version) ((GET_CVID_IC_TYPE(version) == CHIP_8723A)? true : false) +#define IS_92D(version) ((GET_CVID_IC_TYPE(version) == CHIP_8192D)? true : false) +#define IS_8188E(version) ((GET_CVID_IC_TYPE(version) == CHIP_8188E)? true : false) //HAL_CHIP_TYPE_E -#define IS_TEST_CHIP(version) ((GET_CVID_CHIP_TYPE(version)==TEST_CHIP)? TRUE: FALSE) -#define IS_NORMAL_CHIP(version) ((GET_CVID_CHIP_TYPE(version)==NORMAL_CHIP)? TRUE: FALSE) +#define IS_TEST_CHIP(version) ((GET_CVID_CHIP_TYPE(version)==TEST_CHIP)? true: false) +#define IS_NORMAL_CHIP(version) ((GET_CVID_CHIP_TYPE(version)==NORMAL_CHIP)? true: false) //HAL_CUT_VERSION_E -#define IS_A_CUT(version) ((GET_CVID_CUT_VERSION(version) == A_CUT_VERSION) ? TRUE : FALSE) -#define IS_B_CUT(version) ((GET_CVID_CUT_VERSION(version) == B_CUT_VERSION) ? TRUE : FALSE) -#define IS_C_CUT(version) ((GET_CVID_CUT_VERSION(version) == C_CUT_VERSION) ? TRUE : FALSE) -#define IS_D_CUT(version) ((GET_CVID_CUT_VERSION(version) == D_CUT_VERSION) ? TRUE : FALSE) -#define IS_E_CUT(version) ((GET_CVID_CUT_VERSION(version) == E_CUT_VERSION) ? TRUE : FALSE) -#define IS_I_CUT(version) ((GET_CVID_CUT_VERSION(version) == I_CUT_VERSION) ? TRUE : FALSE) -#define IS_J_CUT(version) ((GET_CVID_CUT_VERSION(version) == J_CUT_VERSION) ? TRUE : FALSE) -#define IS_K_CUT(version) ((GET_CVID_CUT_VERSION(version) == K_CUT_VERSION) ? TRUE : FALSE) +#define IS_A_CUT(version) ((GET_CVID_CUT_VERSION(version) == A_CUT_VERSION) ? true : false) +#define IS_B_CUT(version) ((GET_CVID_CUT_VERSION(version) == B_CUT_VERSION) ? true : false) +#define IS_C_CUT(version) ((GET_CVID_CUT_VERSION(version) == C_CUT_VERSION) ? true : false) +#define IS_D_CUT(version) ((GET_CVID_CUT_VERSION(version) == D_CUT_VERSION) ? true : false) +#define IS_E_CUT(version) ((GET_CVID_CUT_VERSION(version) == E_CUT_VERSION) ? true : false) +#define IS_I_CUT(version) ((GET_CVID_CUT_VERSION(version) == I_CUT_VERSION) ? true : false) +#define IS_J_CUT(version) ((GET_CVID_CUT_VERSION(version) == J_CUT_VERSION) ? true : false) +#define IS_K_CUT(version) ((GET_CVID_CUT_VERSION(version) == K_CUT_VERSION) ? true : false) -#define IS_VENDOR_8188E_I_CUT_SERIES(_Adapter) ((IS_8188E(GET_HAL_DATA(_Adapter)->VersionID)) ? ((GET_CVID_CUT_VERSION(GET_HAL_DATA(_Adapter)->VersionID) >= I_CUT_VERSION) ? TRUE : FALSE) : FALSE) +#define IS_VENDOR_8188E_I_CUT_SERIES(_Adapter) ((IS_8188E(GET_HAL_DATA(_Adapter)->VersionID)) ? ((GET_CVID_CUT_VERSION(GET_HAL_DATA(_Adapter)->VersionID) >= I_CUT_VERSION) ? true : false) : false) //HAL_VENDOR_E -#define IS_CHIP_VENDOR_TSMC(version) ((GET_CVID_MANUFACTUER(version) == CHIP_VENDOR_TSMC)? TRUE: FALSE) -#define IS_CHIP_VENDOR_UMC(version) ((GET_CVID_MANUFACTUER(version) == CHIP_VENDOR_UMC)? TRUE: FALSE) +#define IS_CHIP_VENDOR_TSMC(version) ((GET_CVID_MANUFACTUER(version) == CHIP_VENDOR_TSMC)? true: false) +#define IS_CHIP_VENDOR_UMC(version) ((GET_CVID_MANUFACTUER(version) == CHIP_VENDOR_UMC)? true: false) //HAL_RF_TYPE_E -#define IS_1T1R(version) ((GET_CVID_RF_TYPE(version) == RF_TYPE_1T1R)? TRUE : FALSE ) -#define IS_1T2R(version) ((GET_CVID_RF_TYPE(version) == RF_TYPE_1T2R)? TRUE : FALSE) -#define IS_2T2R(version) ((GET_CVID_RF_TYPE(version) == RF_TYPE_2T2R)? TRUE : FALSE) +#define IS_1T1R(version) ((GET_CVID_RF_TYPE(version) == RF_TYPE_1T1R)? true : false ) +#define IS_1T2R(version) ((GET_CVID_RF_TYPE(version) == RF_TYPE_1T2R)? true : false) +#define IS_2T2R(version) ((GET_CVID_RF_TYPE(version) == RF_TYPE_2T2R)? true : false) //---------------------------------------------------------------------------- //Chip version Macro. -- //---------------------------------------------------------------------------- -#define IS_81XXC_TEST_CHIP(version) ((IS_81XXC(version) && (!IS_NORMAL_CHIP(version)))? TRUE: FALSE) +#define IS_81XXC_TEST_CHIP(version) ((IS_81XXC(version) && (!IS_NORMAL_CHIP(version)))? true: false) -#define IS_92C_SERIAL(version) ((IS_81XXC(version) && IS_2T2R(version)) ? TRUE : FALSE) -#define IS_81xxC_VENDOR_UMC_A_CUT(version) (IS_81XXC(version)?(IS_CHIP_VENDOR_UMC(version) ? (IS_A_CUT(version) ? TRUE : FALSE) : FALSE): FALSE) -#define IS_81xxC_VENDOR_UMC_B_CUT(version) (IS_81XXC(version)?(IS_CHIP_VENDOR_UMC(version) ? (IS_B_CUT(version) ? TRUE : FALSE) : FALSE): FALSE) -#define IS_81xxC_VENDOR_UMC_C_CUT(version) (IS_81XXC(version)?(IS_CHIP_VENDOR_UMC(version) ? (IS_C_CUT(version) ? TRUE : FALSE) : FALSE): FALSE) +#define IS_92C_SERIAL(version) ((IS_81XXC(version) && IS_2T2R(version)) ? true : false) +#define IS_81xxC_VENDOR_UMC_A_CUT(version) (IS_81XXC(version)?(IS_CHIP_VENDOR_UMC(version) ? (IS_A_CUT(version) ? true : false) : false): false) +#define IS_81xxC_VENDOR_UMC_B_CUT(version) (IS_81XXC(version)?(IS_CHIP_VENDOR_UMC(version) ? (IS_B_CUT(version) ? true : false) : false): false) +#define IS_81xxC_VENDOR_UMC_C_CUT(version) (IS_81XXC(version)?(IS_CHIP_VENDOR_UMC(version) ? (IS_C_CUT(version) ? true : false) : false): false) -#define IS_NORMAL_CHIP92D(version) (( IS_92D(version))?((GET_CVID_CHIP_TYPE(version)==NORMAL_CHIP)? TRUE: FALSE):FALSE) +#define IS_NORMAL_CHIP92D(version) (( IS_92D(version))?((GET_CVID_CHIP_TYPE(version)==NORMAL_CHIP)? true: false):false) -#define IS_92D_SINGLEPHY(version) ((IS_92D(version)) ? (IS_2T2R(version) ? TRUE: FALSE) : FALSE) -#define IS_92D_C_CUT(version) ((IS_92D(version)) ? (IS_C_CUT(version) ? TRUE : FALSE) : FALSE) -#define IS_92D_D_CUT(version) ((IS_92D(version)) ? (IS_D_CUT(version) ? TRUE : FALSE) : FALSE) -#define IS_92D_E_CUT(version) ((IS_92D(version)) ? (IS_E_CUT(version) ? TRUE : FALSE) : FALSE) +#define IS_92D_SINGLEPHY(version) ((IS_92D(version)) ? (IS_2T2R(version) ? true: false) : false) +#define IS_92D_C_CUT(version) ((IS_92D(version)) ? (IS_C_CUT(version) ? true : false) : false) +#define IS_92D_D_CUT(version) ((IS_92D(version)) ? (IS_D_CUT(version) ? true : false) : false) +#define IS_92D_E_CUT(version) ((IS_92D(version)) ? (IS_E_CUT(version) ? true : false) : false) -#define IS_8723A_A_CUT(version) ((IS_8723_SERIES(version)) ? ( IS_A_CUT(version)?TRUE : FALSE) : FALSE) -#define IS_8723A_B_CUT(version) ((IS_8723_SERIES(version)) ? ( IS_B_CUT(version)?TRUE : FALSE) : FALSE) +#define IS_8723A_A_CUT(version) ((IS_8723_SERIES(version)) ? ( IS_A_CUT(version)?true : false) : false) +#define IS_8723A_B_CUT(version) ((IS_8723_SERIES(version)) ? ( IS_B_CUT(version)?true : false) : false) #endif diff --git a/include/osdep_service.h b/include/osdep_service.h index 36a96b6..09d509a 100755 --- a/include/osdep_service.h +++ b/include/osdep_service.h @@ -259,7 +259,7 @@ __inline static void _set_timer(_timer *ptimer,u32 delay_time) __inline static void _cancel_timer(_timer *ptimer,u8 *bcancelled) { del_timer_sync(ptimer); - *bcancelled= true;//TRUE ==1; FALSE==0 + *bcancelled= true;//true ==1; false==0 } #define RTW_TIMER_HDL_ARGS void *FunctionContext diff --git a/include/rtl8192c_dm.h b/include/rtl8192c_dm.h index 2890da3..f5cc20e 100755 --- a/include/rtl8192c_dm.h +++ b/include/rtl8192c_dm.h @@ -140,7 +140,7 @@ struct dm_priv PS_T DM_PSTable; - FALSE_ALARM_STATISTICS FalseAlmCnt; + false_ALARM_STATISTICS FalseAlmCnt; //for rate adaptive, in fact, 88c/92c fw will handle this u8 bUseRAMask; diff --git a/include/rtw_mp.h b/include/rtw_mp.h index 268a75d..d42c9bd 100755 --- a/include/rtw_mp.h +++ b/include/rtw_mp.h @@ -211,7 +211,7 @@ typedef struct _MPT_CONTEXT WIRELESS_MODE MptWirelessModeToSw; // Wireless mode to switch. u8 MptChannelToSw; // Channel to switch. u8 MptInitGainToSet; // Initial gain to set. - //ULONG bMptAntennaA; // TRUE if we want to use antenna A. + //ULONG bMptAntennaA; // true if we want to use antenna A. ULONG MptBandWidth; // bandwidth to switch. ULONG MptRateIndex; // rate index. // Register value kept for Single Carrier Tx test. @@ -223,21 +223,21 @@ typedef struct _MPT_CONTEXT // Content of RCR Regsiter for Mass Production Test. ULONG MptRCR; - // TRUE if we only receive packets with specific pattern. + // true if we only receive packets with specific pattern. bool bMptFilterPattern; // Rx OK count, statistics used in Mass Production Test. ULONG MptRxOkCnt; // Rx CRC32 error count, statistics used in Mass Production Test. ULONG MptRxCrcErrCnt; - bool bCckContTx; // TRUE if we are in CCK Continuous Tx test. - bool bOfdmContTx; // TRUE if we are in OFDM Continuous Tx test. - bool bStartContTx; // TRUE if we have start Continuous Tx test. - // TRUE if we are in Single Carrier Tx test. + bool bCckContTx; // true if we are in CCK Continuous Tx test. + bool bOfdmContTx; // true if we are in OFDM Continuous Tx test. + bool bStartContTx; // true if we have start Continuous Tx test. + // true if we are in Single Carrier Tx test. bool bSingleCarrier; - // TRUE if we are in Carrier Suppression Tx Test. + // true if we are in Carrier Suppression Tx Test. bool bCarrierSuppression; - //TRUE if we are in Single Tone Tx test. + //true if we are in Single Tone Tx test. bool bSingleTone; // ACK counter asked by K.Y.. diff --git a/os_dep/ioctl_linux.c b/os_dep/ioctl_linux.c index bc8ab2d..5b928f3 100755 --- a/os_dep/ioctl_linux.c +++ b/os_dep/ioctl_linux.c @@ -163,7 +163,7 @@ static void request_wps_pbc_event(struct adapter *padapter) p=buff; - p+=sprintf(p, "WPS_PBC_START.request=TRUE"); + p+=sprintf(p, "WPS_PBC_START.request=true"); memset(&wrqu,0,sizeof(wrqu)); diff --git a/os_dep/rtw_android.c b/os_dep/rtw_android.c index 36532b2..1dc34da 100755 --- a/os_dep/rtw_android.c +++ b/os_dep/rtw_android.c @@ -425,11 +425,11 @@ int rtw_android_priv_cmd(struct net_device *net, struct ifreq *ifr, int cmd) break; case ANDROID_WIFI_CMD_RXFILTER_ADD: /* int filter_num = *(command + strlen(CMD_RXFILTER_ADD) + 1) - '0'; */ - /* bytes_written = net_os_rxfilter_add_remove(net, TRUE, filter_num); */ + /* bytes_written = net_os_rxfilter_add_remove(net, true, filter_num); */ break; case ANDROID_WIFI_CMD_RXFILTER_REMOVE: /* int filter_num = *(command + strlen(CMD_RXFILTER_REMOVE) + 1) - '0'; */ - /* bytes_written = net_os_rxfilter_add_remove(net, FALSE, filter_num); */ + /* bytes_written = net_os_rxfilter_add_remove(net, false, filter_num); */ break; case ANDROID_WIFI_CMD_BTCOEXSCAN_START: diff --git a/os_dep/usb_ops_linux.c b/os_dep/usb_ops_linux.c index 6c35d89..8b97b4d 100755 --- a/os_dep/usb_ops_linux.c +++ b/os_dep/usb_ops_linux.c @@ -375,16 +375,16 @@ static void usb_write_port_complete(struct urb *purb, struct pt_regs *regs) } else if (purb->status == -ESHUTDOWN) { RT_TRACE(_module_hci_ops_os_c_,_drv_err_,("usb_write_port_complete: ESHUTDOWN\n")); padapter->bDriverStopped=true; - RT_TRACE(_module_hci_ops_os_c_,_drv_err_,("usb_write_port_complete:bDriverStopped=TRUE\n")); + RT_TRACE(_module_hci_ops_os_c_,_drv_err_,("usb_write_port_complete:bDriverStopped=true\n")); goto check_completion; } else { padapter->bSurpriseRemoved=true; - DBG_8192C("bSurpriseRemoved=TRUE\n"); + DBG_8192C("bSurpriseRemoved=true\n"); /* rtl8192cu_trigger_gpio_0(padapter); */ - RT_TRACE(_module_hci_ops_os_c_,_drv_err_,("usb_write_port_complete:bSurpriseRemoved=TRUE\n")); + RT_TRACE(_module_hci_ops_os_c_,_drv_err_,("usb_write_port_complete:bSurpriseRemoved=true\n")); goto check_completion; }