mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2025-05-08 14:33:05 +00:00
rtl8188eu: Replace _FALSE and _TRUE
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
17d1637977
commit
06334102cd
68 changed files with 2553 additions and 2572 deletions
|
@ -2771,7 +2771,7 @@ void phy_SetRFPathSwitch_8188E(
|
|||
#if (DM_ODM_SUPPORT_TYPE == ODM_MP)
|
||||
if(!pAdapter->bHWInitReady)
|
||||
#elif (DM_ODM_SUPPORT_TYPE == ODM_CE)
|
||||
if(pAdapter->hw_init_completed == _FALSE)
|
||||
if(pAdapter->hw_init_completed == false)
|
||||
#endif
|
||||
{
|
||||
u1Byte u1bTmp;
|
||||
|
|
|
@ -52,7 +52,7 @@ u8 HalPwrSeqCmdParsing(
|
|||
WLAN_PWR_CFG PwrSeqCmd[])
|
||||
{
|
||||
WLAN_PWR_CFG PwrCfgCmd = {0};
|
||||
u8 bPollingBit = _FALSE;
|
||||
u8 bPollingBit = false;
|
||||
u32 AryIdx = 0;
|
||||
u8 value = 0;
|
||||
u32 offset = 0;
|
||||
|
@ -100,20 +100,20 @@ u8 HalPwrSeqCmdParsing(
|
|||
case PWR_CMD_POLLING:
|
||||
RT_TRACE(_module_hal_init_c_ , _drv_info_, ("HalPwrSeqCmdParsing: PWR_CMD_POLLING\n"));
|
||||
|
||||
bPollingBit = _FALSE;
|
||||
bPollingBit = false;
|
||||
offset = GET_PWR_CFG_OFFSET(PwrCfgCmd);
|
||||
do {
|
||||
value = rtw_read8(padapter, offset);
|
||||
|
||||
value &= GET_PWR_CFG_MASK(PwrCfgCmd);
|
||||
if (value == (GET_PWR_CFG_VALUE(PwrCfgCmd) & GET_PWR_CFG_MASK(PwrCfgCmd)))
|
||||
bPollingBit = _TRUE;
|
||||
bPollingBit = true;
|
||||
else
|
||||
rtw_udelay_os(10);
|
||||
|
||||
if (pollingCount++ > maxPollingCnt) {
|
||||
DBG_871X("Fail to polling Offset[%#x]\n", offset);
|
||||
return _FALSE;
|
||||
return false;
|
||||
}
|
||||
} while (!bPollingBit);
|
||||
|
||||
|
@ -130,7 +130,7 @@ u8 HalPwrSeqCmdParsing(
|
|||
case PWR_CMD_END:
|
||||
// When this command is parsed, end the process
|
||||
RT_TRACE(_module_hal_init_c_ , _drv_info_, ("HalPwrSeqCmdParsing: PWR_CMD_END\n"));
|
||||
return _TRUE;
|
||||
return true;
|
||||
break;
|
||||
|
||||
default:
|
||||
|
@ -142,5 +142,5 @@ u8 HalPwrSeqCmdParsing(
|
|||
AryIdx++;//Add Array Index
|
||||
}while(1);
|
||||
|
||||
return _TRUE;
|
||||
return true;
|
||||
}
|
||||
|
|
|
@ -84,16 +84,16 @@ hal_com_get_channel_plan(
|
|||
u8 swConfig;
|
||||
u8 chnlPlan;
|
||||
|
||||
swConfig = _TRUE;
|
||||
swConfig = true;
|
||||
if (!AutoLoadFail)
|
||||
{
|
||||
if (!rtw_is_channel_plan_valid(sw_channel_plan))
|
||||
swConfig = _FALSE;
|
||||
swConfig = false;
|
||||
if (hw_channel_plan & EEPROM_CHANNEL_PLAN_BY_HW_MASK)
|
||||
swConfig = _FALSE;
|
||||
swConfig = false;
|
||||
}
|
||||
|
||||
if (swConfig == _TRUE)
|
||||
if (swConfig == true)
|
||||
chnlPlan = sw_channel_plan;
|
||||
else
|
||||
chnlPlan = hw_channel_plan & (~EEPROM_CHANNEL_PLAN_BY_HW_MASK);
|
||||
|
@ -289,9 +289,9 @@ Hal_MappingOutPipe(
|
|||
{
|
||||
struct registry_priv *pregistrypriv = &pAdapter->registrypriv;
|
||||
|
||||
BOOLEAN bWIFICfg = (pregistrypriv->wifi_spec) ?_TRUE:_FALSE;
|
||||
BOOLEAN bWIFICfg = (pregistrypriv->wifi_spec) ?true:false;
|
||||
|
||||
BOOLEAN result = _TRUE;
|
||||
BOOLEAN result = true;
|
||||
|
||||
switch(NumOutPipe)
|
||||
{
|
||||
|
@ -305,7 +305,7 @@ Hal_MappingOutPipe(
|
|||
_OneOutPipeMapping(pAdapter);
|
||||
break;
|
||||
default:
|
||||
result = _FALSE;
|
||||
result = false;
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
|
@ -101,28 +101,28 @@ uint rtw_hal_init(struct adapter *padapter)
|
|||
int i;
|
||||
|
||||
#ifdef CONFIG_DUALMAC_CONCURRENT
|
||||
if(padapter->hw_init_completed == _TRUE)
|
||||
if(padapter->hw_init_completed == true)
|
||||
{
|
||||
DBG_871X("rtw_hal_init: hw_init_completed == _TRUE\n");
|
||||
DBG_871X("rtw_hal_init: hw_init_completed == true\n");
|
||||
return status;
|
||||
}
|
||||
|
||||
// before init mac0, driver must init mac1 first to avoid usb rx error.
|
||||
if((padapter->pbuddy_adapter != NULL) && (padapter->DualMacConcurrent == _TRUE)
|
||||
if((padapter->pbuddy_adapter != NULL) && (padapter->DualMacConcurrent == true)
|
||||
&& (padapter->adapter_type == PRIMARY_ADAPTER))
|
||||
{
|
||||
if(padapter->pbuddy_adapter->hw_init_completed == _TRUE)
|
||||
if(padapter->pbuddy_adapter->hw_init_completed == true)
|
||||
{
|
||||
DBG_871X("rtw_hal_init: pbuddy_adapter hw_init_completed == _TRUE\n");
|
||||
DBG_871X("rtw_hal_init: pbuddy_adapter hw_init_completed == true\n");
|
||||
}
|
||||
else
|
||||
{
|
||||
status = padapter->HalFunc.hal_init(padapter->pbuddy_adapter);
|
||||
if(status == _SUCCESS){
|
||||
padapter->pbuddy_adapter->hw_init_completed = _TRUE;
|
||||
padapter->pbuddy_adapter->hw_init_completed = true;
|
||||
}
|
||||
else{
|
||||
padapter->pbuddy_adapter->hw_init_completed = _FALSE;
|
||||
padapter->pbuddy_adapter->hw_init_completed = false;
|
||||
RT_TRACE(_module_hal_init_c_,_drv_err_,("rtw_hal_init: hal__init fail(pbuddy_adapter)\n"));
|
||||
DBG_871X("rtw_hal_init: hal__init fail(pbuddy_adapter)\n");
|
||||
return status;
|
||||
|
@ -136,7 +136,7 @@ uint rtw_hal_init(struct adapter *padapter)
|
|||
if(status == _SUCCESS){
|
||||
for (i = 0; i<dvobj->iface_nums; i++) {
|
||||
padapter = dvobj->padapters[i];
|
||||
padapter->hw_init_completed = _TRUE;
|
||||
padapter->hw_init_completed = true;
|
||||
}
|
||||
|
||||
if (padapter->registrypriv.notch_filter == 1)
|
||||
|
@ -150,7 +150,7 @@ uint rtw_hal_init(struct adapter *padapter)
|
|||
else{
|
||||
for (i = 0; i<dvobj->iface_nums; i++) {
|
||||
padapter = dvobj->padapters[i];
|
||||
padapter->hw_init_completed = _FALSE;
|
||||
padapter->hw_init_completed = false;
|
||||
}
|
||||
DBG_871X("rtw_hal_init: hal__init fail\n");
|
||||
}
|
||||
|
@ -178,7 +178,7 @@ _func_enter_;
|
|||
if(status == _SUCCESS){
|
||||
for (i = 0; i<dvobj->iface_nums; i++) {
|
||||
padapter = dvobj->padapters[i];
|
||||
padapter->hw_init_completed = _FALSE;
|
||||
padapter->hw_init_completed = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
|
@ -287,7 +287,7 @@ s32 rtw_hal_xmitframe_enqueue(struct adapter *padapter, struct xmit_frame *pxmit
|
|||
if(padapter->HalFunc.hal_xmitframe_enqueue)
|
||||
return padapter->HalFunc.hal_xmitframe_enqueue(padapter, pxmitframe);
|
||||
|
||||
return _FALSE;
|
||||
return false;
|
||||
}
|
||||
|
||||
s32 rtw_hal_xmit(struct adapter *padapter, struct xmit_frame *pxmitframe)
|
||||
|
@ -295,7 +295,7 @@ s32 rtw_hal_xmit(struct adapter *padapter, struct xmit_frame *pxmitframe)
|
|||
if(padapter->HalFunc.hal_xmit)
|
||||
return padapter->HalFunc.hal_xmit(padapter, pxmitframe);
|
||||
|
||||
return _FALSE;
|
||||
return false;
|
||||
}
|
||||
|
||||
s32 rtw_hal_mgnt_xmit(struct adapter *padapter, struct xmit_frame *pmgntframe)
|
||||
|
@ -309,17 +309,17 @@ s32 rtw_hal_mgnt_xmit(struct adapter *padapter, struct xmit_frame *pmgntframe)
|
|||
_rtw_memcpy(pmgntframe->attrib.ra, pwlanhdr->addr1, ETH_ALEN);
|
||||
|
||||
#ifdef CONFIG_IEEE80211W
|
||||
if(padapter->securitypriv.binstallBIPkey == _TRUE)
|
||||
if(padapter->securitypriv.binstallBIPkey == true)
|
||||
{
|
||||
if(IS_MCAST(pmgntframe->attrib.ra))
|
||||
{
|
||||
pmgntframe->attrib.encrypt = _BIP_;
|
||||
//pmgntframe->attrib.bswenc = _TRUE;
|
||||
//pmgntframe->attrib.bswenc = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
pmgntframe->attrib.encrypt = _AES_;
|
||||
pmgntframe->attrib.bswenc = _TRUE;
|
||||
pmgntframe->attrib.bswenc = true;
|
||||
}
|
||||
rtw_mgmt_xmitframe_coalesce(padapter, pmgntframe->pkt, pmgntframe);
|
||||
}
|
||||
|
@ -367,7 +367,7 @@ void rtw_hal_update_ra_mask(struct sta_info *psta, u8 rssi_level)
|
|||
|
||||
pmlmepriv = &(padapter->mlmepriv);
|
||||
|
||||
if(check_fwstate(pmlmepriv, WIFI_AP_STATE) == _TRUE)
|
||||
if(check_fwstate(pmlmepriv, WIFI_AP_STATE) == true)
|
||||
{
|
||||
add_RATid(padapter, psta, rssi_level);
|
||||
}
|
||||
|
@ -464,7 +464,7 @@ u8 rtw_hal_antdiv_before_linked(struct adapter *padapter)
|
|||
{
|
||||
if(padapter->HalFunc.AntDivBeforeLinkHandler)
|
||||
return padapter->HalFunc.AntDivBeforeLinkHandler(padapter);
|
||||
return _FALSE;
|
||||
return false;
|
||||
}
|
||||
void rtw_hal_antdiv_rssi_compared(struct adapter *padapter, WLAN_BSSID_EX *dst, WLAN_BSSID_EX *src)
|
||||
{
|
||||
|
@ -528,7 +528,7 @@ u8 rtw_hal_sreset_get_wifi_status(struct adapter *padapter)
|
|||
|
||||
bool rtw_hal_sreset_inprogress(struct adapter *padapter)
|
||||
{
|
||||
bool inprogress = _FALSE;
|
||||
bool inprogress = false;
|
||||
|
||||
padapter = GET_PRIMARY_ADAPTER(padapter);
|
||||
|
||||
|
|
66
hal/odm.c
66
hal/odm.c
|
@ -1907,8 +1907,8 @@ odm_DIGInit(
|
|||
//pDM_DigTable->CurMultiSTAConnectState = DIG_MultiSTA_DISCONNECT;
|
||||
pDM_DigTable->RssiLowThresh = DM_DIG_THRESH_LOW;
|
||||
pDM_DigTable->RssiHighThresh = DM_DIG_THRESH_HIGH;
|
||||
pDM_DigTable->FALowThresh = DM_FALSEALARM_THRESH_LOW;
|
||||
pDM_DigTable->FAHighThresh = DM_FALSEALARM_THRESH_HIGH;
|
||||
pDM_DigTable->FALowThresh = DMfalseALARM_THRESH_LOW;
|
||||
pDM_DigTable->FAHighThresh = DMfalseALARM_THRESH_HIGH;
|
||||
if(pDM_Odm->BoardType & (ODM_BOARD_EXT_PA|ODM_BOARD_EXT_LNA))
|
||||
{
|
||||
pDM_DigTable->rx_gain_range_max = DM_DIG_MAX_NIC;
|
||||
|
@ -2627,8 +2627,8 @@ odm_DIGInit(
|
|||
//pDM_DigTable->CurMultiSTAConnectState = DIG_MultiSTA_DISCONNECT;
|
||||
pDM_DigTable->RssiLowThresh = DM_DIG_THRESH_LOW;
|
||||
pDM_DigTable->RssiHighThresh = DM_DIG_THRESH_HIGH;
|
||||
pDM_DigTable->FALowThresh = DM_FALSEALARM_THRESH_LOW;
|
||||
pDM_DigTable->FAHighThresh = DM_FALSEALARM_THRESH_HIGH;
|
||||
pDM_DigTable->FALowThresh = DMfalseALARM_THRESH_LOW;
|
||||
pDM_DigTable->FAHighThresh = DMfalseALARM_THRESH_HIGH;
|
||||
if(pDM_Odm->BoardType & (ODM_BOARD_EXT_LNA | ODM_BOARD_EXT_PA))
|
||||
{
|
||||
pDM_DigTable->rx_gain_range_max = DM_DIG_MAX_NIC;
|
||||
|
@ -3601,9 +3601,9 @@ odm_RateAdaptiveMaskInit(
|
|||
#elif (DM_ODM_SUPPORT_TYPE == ODM_CE)
|
||||
pOdmRA->Type = DM_Type_ByDriver;
|
||||
if (pOdmRA->Type == DM_Type_ByDriver)
|
||||
pDM_Odm->bUseRAMask = _TRUE;
|
||||
pDM_Odm->bUseRAMask = true;
|
||||
else
|
||||
pDM_Odm->bUseRAMask = _FALSE;
|
||||
pDM_Odm->bUseRAMask = false;
|
||||
|
||||
#endif
|
||||
|
||||
|
@ -4038,12 +4038,12 @@ odm_DynamicTxPowerInit(
|
|||
struct adapter *Adapter = pDM_Odm->Adapter;
|
||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
||||
struct dm_priv *pdmpriv = &pHalData->dmpriv;
|
||||
pdmpriv->bDynamicTxPowerEnable = _FALSE;
|
||||
pdmpriv->bDynamicTxPowerEnable = false;
|
||||
|
||||
#if (RTL8192C_SUPPORT==1)
|
||||
|
||||
#ifdef CONFIG_INTEL_PROXIM
|
||||
if((pHalData->BoardType == BOARD_USB_High_PA)||(Adapter->proximity.proxim_support==_TRUE))
|
||||
if((pHalData->BoardType == BOARD_USB_High_PA)||(Adapter->proximity.proxim_support==true))
|
||||
#else
|
||||
if(pHalData->BoardType == BOARD_USB_High_PA)
|
||||
#endif
|
||||
|
@ -4051,7 +4051,7 @@ odm_DynamicTxPowerInit(
|
|||
{
|
||||
//odm_SavePowerIndex(Adapter);
|
||||
odm_DynamicTxPowerSavePowerIndex(pDM_Odm);
|
||||
pdmpriv->bDynamicTxPowerEnable = _TRUE;
|
||||
pdmpriv->bDynamicTxPowerEnable = true;
|
||||
}
|
||||
else
|
||||
#endif
|
||||
|
@ -4369,7 +4369,7 @@ odm_DynamicTxPower_92C(
|
|||
return;
|
||||
|
||||
#ifdef CONFIG_INTEL_PROXIM
|
||||
if(Adapter->proximity.proxim_on== _TRUE){
|
||||
if(Adapter->proximity.proxim_on== true){
|
||||
struct proximity_priv *prox_priv=Adapter->proximity.proximity_priv;
|
||||
// Intel set fixed tx power
|
||||
printk("\n %s Adapter->proximity.proxim_on=%d prox_priv->proxim_modeinfo->power_output=%d \n",__FUNCTION__,Adapter->proximity.proxim_on,prox_priv->proxim_modeinfo->power_output);
|
||||
|
@ -4410,7 +4410,7 @@ odm_DynamicTxPower_92C(
|
|||
#endif
|
||||
{
|
||||
// STA not connected and AP not connected
|
||||
if((check_fwstate(pmlmepriv, _FW_LINKED) != _TRUE) &&
|
||||
if((check_fwstate(pmlmepriv, _FW_LINKED) != true) &&
|
||||
(pdmpriv->EntryMinUndecoratedSmoothedPWDB == 0))
|
||||
{
|
||||
//ODM_RT_TRACE(pDM_Odm,COMP_HIPWR, DBG_LOUD, ("Not connected to any \n"));
|
||||
|
@ -4423,7 +4423,7 @@ odm_DynamicTxPower_92C(
|
|||
return;
|
||||
}
|
||||
|
||||
if(check_fwstate(pmlmepriv, _FW_LINKED) == _TRUE) // Default port
|
||||
if(check_fwstate(pmlmepriv, _FW_LINKED) == true) // Default port
|
||||
{
|
||||
UndecoratedSmoothedPWDB = pdmpriv->EntryMinUndecoratedSmoothedPWDB;
|
||||
}
|
||||
|
@ -4645,7 +4645,7 @@ odm_DynamicTxPower_92D(
|
|||
#endif
|
||||
|
||||
// If dynamic high power is disabled.
|
||||
if( (pdmpriv->bDynamicTxPowerEnable != _TRUE) ||
|
||||
if( (pdmpriv->bDynamicTxPowerEnable != true) ||
|
||||
(!(podmpriv->SupportAbility& ODM_BB_DYNAMIC_TXPWR)) )
|
||||
{
|
||||
pdmpriv->DynamicTxHighPowerLvl = TxHighPwrLevel_Normal;
|
||||
|
@ -4653,7 +4653,7 @@ odm_DynamicTxPower_92D(
|
|||
}
|
||||
|
||||
// STA not connected and AP not connected
|
||||
if((check_fwstate(pmlmepriv, _FW_LINKED) != _TRUE) &&
|
||||
if((check_fwstate(pmlmepriv, _FW_LINKED) != true) &&
|
||||
(pdmpriv->EntryMinUndecoratedSmoothedPWDB == 0))
|
||||
{
|
||||
//ODM_RT_TRACE(pDM_Odm,COMP_HIPWR, DBG_LOUD, ("Not connected to any \n"));
|
||||
|
@ -4665,7 +4665,7 @@ odm_DynamicTxPower_92D(
|
|||
return;
|
||||
}
|
||||
|
||||
if(check_fwstate(pmlmepriv, _FW_LINKED) == _TRUE) // Default port
|
||||
if(check_fwstate(pmlmepriv, _FW_LINKED) == true) // Default port
|
||||
{
|
||||
UndecoratedSmoothedPWDB = pdmpriv->EntryMinUndecoratedSmoothedPWDB;
|
||||
}
|
||||
|
@ -4723,7 +4723,7 @@ odm_DynamicTxPower_92D(
|
|||
pHalData->DynamicTxHighPowerLvl = Adapter->DualMacDMSPControl.CurTxHighLvlForAnotherMacOfDMSP;
|
||||
PHY_SetTxPowerLevel8192D(Adapter, pHalData->CurrentChannel);
|
||||
pHalData->DynamicTxHighPowerLvl = HighPowerLvlBackForMac0;
|
||||
Adapter->DualMacDMSPControl.bChangeTxHighPowerLvlForAnotherMacOfDMSP = _FALSE;
|
||||
Adapter->DualMacDMSPControl.bChangeTxHighPowerLvlForAnotherMacOfDMSP = false;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
@ -4748,7 +4748,7 @@ odm_DynamicTxPower_92D(
|
|||
if(Adapter->bSlaveOfDMSP)
|
||||
{
|
||||
//ODM_RT_TRACE(pDM_Odm,COMP_MLME,DBG_LOUD,("dm_DynamicTxPower() bslave case \n"));
|
||||
BuddyAdapter->DualMacDMSPControl.bChangeTxHighPowerLvlForAnotherMacOfDMSP = _TRUE;
|
||||
BuddyAdapter->DualMacDMSPControl.bChangeTxHighPowerLvlForAnotherMacOfDMSP = true;
|
||||
BuddyAdapter->DualMacDMSPControl.CurTxHighLvlForAnotherMacOfDMSP = pHalData->DynamicTxHighPowerLvl;
|
||||
}
|
||||
else
|
||||
|
@ -4939,7 +4939,7 @@ IN struct adapter *pAdapter
|
|||
|
||||
//1 1.Determine the minimum RSSI
|
||||
|
||||
if((pDM_Odm->bLinked != _TRUE) &&
|
||||
if((pDM_Odm->bLinked != true) &&
|
||||
(pdmpriv->EntryMinUndecoratedSmoothedPWDB == 0))
|
||||
pdmpriv->MinUndecoratedPWDBForDM = 0;
|
||||
else
|
||||
|
@ -4961,10 +4961,10 @@ odm_RSSIMonitorCheckCE(
|
|||
u8 sta_cnt=0;
|
||||
u32 PWDB_rssi[NUM_STA]={0};//[0~15]:MACID, [16~31]:PWDB_rssi
|
||||
|
||||
if(pDM_Odm->bLinked != _TRUE)
|
||||
if(pDM_Odm->bLinked != true)
|
||||
return;
|
||||
|
||||
//if(check_fwstate(&Adapter->mlmepriv, WIFI_AP_STATE|WIFI_ADHOC_STATE|WIFI_ADHOC_MASTER_STATE) == _TRUE)
|
||||
//if(check_fwstate(&Adapter->mlmepriv, WIFI_AP_STATE|WIFI_ADHOC_STATE|WIFI_ADHOC_MASTER_STATE) == true)
|
||||
{
|
||||
#if 1
|
||||
struct sta_info *psta;
|
||||
|
@ -5005,7 +5005,7 @@ odm_RSSIMonitorCheckCE(
|
|||
phead = &(pstapriv->sta_hash[i]);
|
||||
plist = get_next(phead);
|
||||
|
||||
while ((rtw_end_of_queue_search(phead, plist)) == _FALSE)
|
||||
while ((rtw_end_of_queue_search(phead, plist)) == false)
|
||||
{
|
||||
psta = LIST_CONTAINOR(plist, struct sta_info, hash_list);
|
||||
|
||||
|
@ -5046,7 +5046,7 @@ odm_RSSIMonitorCheckCE(
|
|||
for(i=0; i< sta_cnt; i++)
|
||||
{
|
||||
if(PWDB_rssi[i] != (0)){
|
||||
if(pHalData->fw_ractrl == _TRUE)// Report every sta's RSSI to FW
|
||||
if(pHalData->fw_ractrl == true)// Report every sta's RSSI to FW
|
||||
{
|
||||
#if(RTL8192D_SUPPORT==1)
|
||||
FillH2CCmd92D(Adapter, H2C_RSSI_REPORT, 3, (u8 *)(&PWDB_rssi[i]));
|
||||
|
@ -5230,22 +5230,22 @@ odm_TXPowerTrackingThermalMeterInit(
|
|||
ODM_RT_TRACE(pDM_Odm,COMP_POWER_TRACKING, DBG_LOUD, ("pMgntInfo->bTXPowerTracking = %d\n", pMgntInfo->bTXPowerTracking));
|
||||
#elif (DM_ODM_SUPPORT_TYPE == ODM_CE)
|
||||
{
|
||||
pDM_Odm->RFCalibrateInfo.bTXPowerTracking = _TRUE;
|
||||
pDM_Odm->RFCalibrateInfo.bTXPowerTracking = true;
|
||||
pDM_Odm->RFCalibrateInfo.TXPowercount = 0;
|
||||
pDM_Odm->RFCalibrateInfo.bTXPowerTrackingInit = _FALSE;
|
||||
pDM_Odm->RFCalibrateInfo.bTXPowerTrackingInit = false;
|
||||
//#if (MP_DRIVER != 1) //for mp driver, turn off txpwrtracking as default
|
||||
if ( *(pDM_Odm->mp_mode) != 1)
|
||||
pDM_Odm->RFCalibrateInfo.TxPowerTrackControl = _TRUE;
|
||||
pDM_Odm->RFCalibrateInfo.TxPowerTrackControl = true;
|
||||
//#endif//#if (MP_DRIVER != 1)
|
||||
MSG_8192C("pDM_Odm TxPowerTrackControl = %d\n", pDM_Odm->RFCalibrateInfo.TxPowerTrackControl);
|
||||
}
|
||||
#elif (DM_ODM_SUPPORT_TYPE & (ODM_AP|ODM_ADSL))
|
||||
#ifdef RTL8188E_SUPPORT
|
||||
{
|
||||
pDM_Odm->RFCalibrateInfo.bTXPowerTracking = _TRUE;
|
||||
pDM_Odm->RFCalibrateInfo.bTXPowerTracking = true;
|
||||
pDM_Odm->RFCalibrateInfo.TXPowercount = 0;
|
||||
pDM_Odm->RFCalibrateInfo.bTXPowerTrackingInit = _FALSE;
|
||||
pDM_Odm->RFCalibrateInfo.TxPowerTrackControl = _TRUE;
|
||||
pDM_Odm->RFCalibrateInfo.bTXPowerTrackingInit = false;
|
||||
pDM_Odm->RFCalibrateInfo.TxPowerTrackControl = true;
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
@ -6229,7 +6229,7 @@ void odm_SwAntDivChkAntSwitchCallback(void *FunctionContext)
|
|||
{
|
||||
PDM_ODM_T pDM_Odm= (PDM_ODM_T)FunctionContext;
|
||||
struct adapter *padapter = pDM_Odm->Adapter;
|
||||
if(padapter->net_closed == _TRUE)
|
||||
if(padapter->net_closed == true)
|
||||
return;
|
||||
odm_SwAntDivChkAntSwitch(pDM_Odm, SWAW_STEP_DETERMINE);
|
||||
}
|
||||
|
@ -7145,7 +7145,7 @@ odm_EdcaTurboCheckCE(
|
|||
u32 edca_param;
|
||||
u64 cur_tx_bytes = 0;
|
||||
u64 cur_rx_bytes = 0;
|
||||
u8 bbtchange = _FALSE;
|
||||
u8 bbtchange = false;
|
||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
||||
struct xmit_priv *pxmitpriv = &(Adapter->xmitpriv);
|
||||
struct recv_priv *precvpriv = &(Adapter->recvpriv);
|
||||
|
@ -7220,7 +7220,7 @@ odm_EdcaTurboCheckCE(
|
|||
pDM_Odm->DM_EDCA_Table.prv_traffic_idx = trafficIndex;
|
||||
}
|
||||
|
||||
pDM_Odm->DM_EDCA_Table.bCurrentTurboEDCA = _TRUE;
|
||||
pDM_Odm->DM_EDCA_Table.bCurrentTurboEDCA = true;
|
||||
} else {
|
||||
//
|
||||
// Turn Off EDCA turbo here.
|
||||
|
@ -7229,13 +7229,13 @@ odm_EdcaTurboCheckCE(
|
|||
if(pDM_Odm->DM_EDCA_Table.bCurrentTurboEDCA)
|
||||
{
|
||||
rtw_write32(Adapter, REG_EDCA_BE_PARAM, pHalData->AcParam_BE);
|
||||
pDM_Odm->DM_EDCA_Table.bCurrentTurboEDCA = _FALSE;
|
||||
pDM_Odm->DM_EDCA_Table.bCurrentTurboEDCA = false;
|
||||
}
|
||||
}
|
||||
|
||||
dm_CheckEdcaTurbo_EXIT:
|
||||
// Set variables for next time.
|
||||
precvpriv->bIsAnyNonBEPkts = _FALSE;
|
||||
precvpriv->bIsAnyNonBEPkts = false;
|
||||
pxmitpriv->last_tx_bytes = pxmitpriv->tx_bytes;
|
||||
precvpriv->last_rx_bytes = precvpriv->rx_bytes;
|
||||
#endif
|
||||
|
|
|
@ -211,7 +211,7 @@ typedef struct _Dynamic_Power_Saving_
|
|||
|
||||
}PS_T,*pPS_T;
|
||||
|
||||
typedef struct _FALSE_ALARM_STATISTICS{
|
||||
typedef struct false_ALARM_STATISTICS{
|
||||
u4Byte Cnt_Parity_Fail;
|
||||
u4Byte Cnt_Rate_Illegal;
|
||||
u4Byte Cnt_Crc8_fail;
|
||||
|
@ -1477,8 +1477,8 @@ typedef enum tag_DIG_Connect_Definition
|
|||
#define DM_DIG_THRESH_HIGH 40
|
||||
#define DM_DIG_THRESH_LOW 35
|
||||
|
||||
#define DM_FALSEALARM_THRESH_LOW 400
|
||||
#define DM_FALSEALARM_THRESH_HIGH 1000
|
||||
#define DMfalseALARM_THRESH_LOW 400
|
||||
#define DMfalseALARM_THRESH_HIGH 1000
|
||||
|
||||
#define DM_DIG_MAX_NIC 0x4A
|
||||
#define DM_DIG_MIN_NIC 0x1e //0x22//0x1c
|
||||
|
|
|
@ -631,7 +631,7 @@ odm_FastAntTrainingCallback(
|
|||
|
||||
#if (DM_ODM_SUPPORT_TYPE == ODM_CE)
|
||||
struct adapter *padapter = pDM_Odm->Adapter;
|
||||
if(padapter->net_closed == _TRUE)
|
||||
if(padapter->net_closed == true)
|
||||
return;
|
||||
//if(*pDM_Odm->pbNet_closed == TRUE)
|
||||
// return;
|
||||
|
@ -768,7 +768,7 @@ void odm_FastAntTrainingCallback(void *FunctionContext)
|
|||
{
|
||||
PDM_ODM_T pDM_Odm= (PDM_ODM_T)FunctionContext;
|
||||
struct adapter *padapter = pDM_Odm->Adapter;
|
||||
if(padapter->net_closed == _TRUE)
|
||||
if(padapter->net_closed == true)
|
||||
return;
|
||||
odm_FastAntTraining(pDM_Odm);
|
||||
}
|
||||
|
|
|
@ -140,8 +140,8 @@ typedef enum _RT_SPINLOCK_TYPE{
|
|||
|
||||
#define DEV_BUS_TYPE RT_PCI_INTERFACE
|
||||
|
||||
#define _TRUE 1
|
||||
#define _FALSE 0
|
||||
#define true 1
|
||||
#define false 0
|
||||
|
||||
#elif (DM_ODM_SUPPORT_TYPE == ODM_ADSL)
|
||||
|
||||
|
@ -167,8 +167,8 @@ typedef enum _RT_SPINLOCK_TYPE{
|
|||
|
||||
#define DEV_BUS_TYPE RT_PCI_INTERFACE
|
||||
|
||||
#define _TRUE 1
|
||||
#define _FALSE 0
|
||||
#define true 1
|
||||
#define false 0
|
||||
|
||||
#elif (DM_ODM_SUPPORT_TYPE == ODM_CE)
|
||||
#include <basic_types.h>
|
||||
|
@ -212,8 +212,8 @@ typedef enum _RT_SPINLOCK_TYPE{
|
|||
|
||||
|
||||
|
||||
#define TRUE _TRUE
|
||||
#define FALSE _FALSE
|
||||
#define TRUE true
|
||||
#define FALSE false
|
||||
|
||||
|
||||
#define SET_TX_DESC_ANTSEL_A_88E(__pTxDesc, __Value) SET_BITS_TO_LE_4BYTE(__pTxDesc+8, 24, 1, __Value)
|
||||
|
|
|
@ -41,7 +41,7 @@
|
|||
|
||||
static u8 _is_fw_read_cmd_down(struct adapter* padapter, u8 msgbox_num)
|
||||
{
|
||||
u8 read_down = _FALSE;
|
||||
u8 read_down = false;
|
||||
int retry_cnts = 100;
|
||||
|
||||
u8 valid;
|
||||
|
@ -51,7 +51,7 @@ static u8 _is_fw_read_cmd_down(struct adapter* padapter, u8 msgbox_num)
|
|||
do{
|
||||
valid = rtw_read8(padapter,REG_HMETFR) & BIT(msgbox_num);
|
||||
if(0 == valid ){
|
||||
read_down = _TRUE;
|
||||
read_down = true;
|
||||
}
|
||||
#ifdef CONFIG_WOWLAN
|
||||
rtw_msleep_os(2);
|
||||
|
@ -75,7 +75,7 @@ static u8 _is_fw_read_cmd_down(struct adapter* padapter, u8 msgbox_num)
|
|||
******************************************/
|
||||
static s32 FillH2CCmd_88E(struct adapter *padapter, u8 ElementID, u32 CmdLen, u8 *pCmdBuffer)
|
||||
{
|
||||
u8 bcmd_down = _FALSE;
|
||||
u8 bcmd_down = false;
|
||||
s32 retry_cnts = 100;
|
||||
u8 h2c_box_num;
|
||||
u32 msgbox_addr;
|
||||
|
@ -91,7 +91,7 @@ _func_enter_;
|
|||
padapter = GET_PRIMARY_ADAPTER(padapter);
|
||||
pHalData = GET_HAL_DATA(padapter);
|
||||
|
||||
if(padapter->bFWReady == _FALSE)
|
||||
if(padapter->bFWReady == false)
|
||||
{
|
||||
DBG_8192C("FillH2CCmd_88E(): return H2C cmd because fw is not ready\n");
|
||||
return ret;
|
||||
|
@ -105,7 +105,7 @@ _func_enter_;
|
|||
if (CmdLen > RTL88E_MAX_CMD_LEN) {
|
||||
goto exit;
|
||||
}
|
||||
if (padapter->bSurpriseRemoved == _TRUE)
|
||||
if (padapter->bSurpriseRemoved == true)
|
||||
goto exit;
|
||||
|
||||
//pay attention to if race condition happened in H2C cmd setting.
|
||||
|
@ -150,7 +150,7 @@ _func_enter_;
|
|||
rtw_write32(padapter,msgbox_addr, h2c_cmd);
|
||||
#endif
|
||||
|
||||
bcmd_down = _TRUE;
|
||||
bcmd_down = true;
|
||||
|
||||
// DBG_8192C("MSG_BOX:%d,CmdLen(%d), reg:0x%x =>h2c_cmd:0x%x, reg:0x%x =>h2c_cmd_ex:0x%x ..\n"
|
||||
// ,pHalData->LastHMEBoxNum ,CmdLen,msgbox_addr,h2c_cmd,msgbox_ex_addr,h2c_cmd_ex);
|
||||
|
@ -196,7 +196,7 @@ u8 rtl8192c_set_FwSelectSuspend_cmd(struct adapter *padapter ,u8 bfwpoll, u16 pe
|
|||
struct H2C_SS_RFOFF_PARAM param;
|
||||
DBG_8192C("==>%s bfwpoll(%x)\n",__FUNCTION__,bfwpoll);
|
||||
param.gpio_period = period;//Polling GPIO_11 period time
|
||||
param.ROFOn = (_TRUE == bfwpoll)?1:0;
|
||||
param.ROFOn = (true == bfwpoll)?1:0;
|
||||
FillH2CCmd_88E(padapter, SELECTIVE_SUSPEND_ROF_CMD, sizeof(param), (u8*)(¶m));
|
||||
return res;
|
||||
}
|
||||
|
@ -208,7 +208,7 @@ u8 rtl8188e_set_rssi_cmd(struct adapter*padapter, u8 *param)
|
|||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(padapter);
|
||||
_func_enter_;
|
||||
|
||||
if(pHalData->fw_ractrl == _TRUE){
|
||||
if(pHalData->fw_ractrl == true){
|
||||
}else{
|
||||
DBG_8192C("==>%s fw dont support RA \n",__FUNCTION__);
|
||||
res=_FAIL;
|
||||
|
@ -225,7 +225,7 @@ u8 rtl8188e_set_raid_cmd(struct adapter*padapter, u32 mask)
|
|||
u8 res=_SUCCESS;
|
||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(padapter);
|
||||
_func_enter_;
|
||||
if(pHalData->fw_ractrl == _TRUE){
|
||||
if(pHalData->fw_ractrl == true){
|
||||
_rtw_memset(buf, 0, 3);
|
||||
mask = cpu_to_le32( mask );
|
||||
_rtw_memcpy(buf, &mask, 3);
|
||||
|
@ -251,7 +251,7 @@ void rtl8188e_Add_RateATid(struct adapter *pAdapter, u32 bitmap, u8 arg, u8 rssi
|
|||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(pAdapter);
|
||||
//struct dm_priv *pdmpriv = &pHalData->dmpriv;
|
||||
|
||||
u8 macid, init_rate, raid, shortGIrate=_FALSE;
|
||||
u8 macid, init_rate, raid, shortGIrate=false;
|
||||
|
||||
macid = arg&0x1f;
|
||||
|
||||
|
@ -268,9 +268,9 @@ void rtl8188e_Add_RateATid(struct adapter *pAdapter, u32 bitmap, u8 arg, u8 rssi
|
|||
|
||||
init_rate = get_highest_rate_idx(bitmap&0x0fffffff)&0x3f;
|
||||
|
||||
shortGIrate = (arg&BIT(5)) ? _TRUE:_FALSE;
|
||||
shortGIrate = (arg&BIT(5)) ? true:false;
|
||||
|
||||
if (shortGIrate==_TRUE)
|
||||
if (shortGIrate==true)
|
||||
init_rate |= BIT(6);
|
||||
|
||||
|
||||
|
@ -569,7 +569,7 @@ void ConstructNullFunctionData(
|
|||
|
||||
SetSeqNum(pwlanhdr, 0);
|
||||
|
||||
if (bQoS == _TRUE) {
|
||||
if (bQoS == true) {
|
||||
struct rtw_ieee80211_hdr_3addr_qos *pwlanqoshdr;
|
||||
|
||||
SetFrameSubType(pframe, WIFI_QOS_DATA_NULL);
|
||||
|
@ -760,7 +760,7 @@ static void ConstructARPResponse(
|
|||
|
||||
psta = rtw_get_stainfo(&padapter->stapriv, get_my_bssid(&(pmlmeinfo->network)));
|
||||
if (psta != NULL) {
|
||||
if(_rtw_memcmp(&psta->dot11tkiptxmickey.skey[0],null_key, 16)==_TRUE){
|
||||
if(_rtw_memcmp(&psta->dot11tkiptxmickey.skey[0],null_key, 16)==true){
|
||||
DBG_871X("%s(): STA dot11tkiptxmickey==0\n",__FUNCTION__);
|
||||
}
|
||||
//start to calculate the mic code
|
||||
|
@ -895,7 +895,7 @@ static void SetFwRsvdPagePkt(struct adapter *padapter, BOOLEAN bDLFinished)
|
|||
//3 (2) ps-poll *1 page
|
||||
RsvdPageLoc.LocPsPoll = PageNum;
|
||||
ConstructPSPoll(padapter, &ReservedPagePacket[BufIndex], &PSPollLength);
|
||||
rtl8188e_fill_fake_txdesc(padapter, &ReservedPagePacket[BufIndex-TxDescLen], PSPollLength, _TRUE, _FALSE);
|
||||
rtl8188e_fill_fake_txdesc(padapter, &ReservedPagePacket[BufIndex-TxDescLen], PSPollLength, true, false);
|
||||
|
||||
PageNeed = (u8)PageNum_128(TxDescLen + PSPollLength);
|
||||
PageNum += PageNeed;
|
||||
|
@ -909,8 +909,8 @@ static void SetFwRsvdPagePkt(struct adapter *padapter, BOOLEAN bDLFinished)
|
|||
&ReservedPagePacket[BufIndex],
|
||||
&NullDataLength,
|
||||
get_my_bssid(&pmlmeinfo->network),
|
||||
_FALSE, 0, 0, _FALSE);
|
||||
rtl8188e_fill_fake_txdesc(padapter, &ReservedPagePacket[BufIndex-TxDescLen], NullDataLength, _FALSE, _FALSE);
|
||||
false, 0, 0, false);
|
||||
rtl8188e_fill_fake_txdesc(padapter, &ReservedPagePacket[BufIndex-TxDescLen], NullDataLength, false, false);
|
||||
|
||||
PageNeed = (u8)PageNum_128(TxDescLen + NullDataLength);
|
||||
PageNum += PageNeed;
|
||||
|
@ -924,8 +924,8 @@ static void SetFwRsvdPagePkt(struct adapter *padapter, BOOLEAN bDLFinished)
|
|||
&ReservedPagePacket[BufIndex],
|
||||
&QosNullLength,
|
||||
get_my_bssid(&pmlmeinfo->network),
|
||||
_TRUE, 0, 0, _FALSE);
|
||||
rtl8188e_fill_fake_txdesc(padapter, &ReservedPagePacket[BufIndex-TxDescLen], QosNullLength, _FALSE, _FALSE);
|
||||
true, 0, 0, false);
|
||||
rtl8188e_fill_fake_txdesc(padapter, &ReservedPagePacket[BufIndex-TxDescLen], QosNullLength, false, false);
|
||||
|
||||
PageNeed = (u8)PageNum_128(TxDescLen + QosNullLength);
|
||||
PageNum += PageNeed;
|
||||
|
@ -942,7 +942,7 @@ static void SetFwRsvdPagePkt(struct adapter *padapter, BOOLEAN bDLFinished)
|
|||
&ARPLegnth,
|
||||
currentip
|
||||
);
|
||||
rtl8188e_fill_fake_txdesc(padapter, &ReservedPagePacket[BufIndex-TxDescLen], ARPLegnth, _FALSE, _FALSE);
|
||||
rtl8188e_fill_fake_txdesc(padapter, &ReservedPagePacket[BufIndex-TxDescLen], ARPLegnth, false, false);
|
||||
|
||||
switch (psecuritypriv->dot11PrivacyAlgrthm)
|
||||
{
|
||||
|
@ -1013,8 +1013,8 @@ void rtl8188e_set_FwJoinBssReport_cmd(struct adapter *padapter, u8 mstatus)
|
|||
struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
|
||||
struct sta_info *psta = NULL;
|
||||
#endif
|
||||
BOOLEAN bSendBeacon=_FALSE;
|
||||
BOOLEAN bcn_valid = _FALSE;
|
||||
BOOLEAN bSendBeacon=false;
|
||||
BOOLEAN bcn_valid = false;
|
||||
u8 DLBcnCount=0;
|
||||
u32 poll = 0;
|
||||
|
||||
|
@ -1048,7 +1048,7 @@ _func_enter_;
|
|||
if(pHalData->RegFwHwTxQCtrl&BIT6)
|
||||
{
|
||||
DBG_871X("HalDownloadRSVDPage(): There is an Adapter is sending beacon.\n");
|
||||
bSendBeacon = _TRUE;
|
||||
bSendBeacon = true;
|
||||
}
|
||||
|
||||
// Set FWHW_TXQ_CTRL 0x422[6]=0 to tell Hw the packet is not a real beacon frame.
|
||||
|
@ -1062,7 +1062,7 @@ _func_enter_;
|
|||
do
|
||||
{
|
||||
// download rsvd page.
|
||||
SetFwRsvdPagePkt(padapter, _FALSE);
|
||||
SetFwRsvdPagePkt(padapter, false);
|
||||
DLBcnCount++;
|
||||
do
|
||||
{
|
||||
|
@ -1099,7 +1099,7 @@ _func_enter_;
|
|||
poll = 0;
|
||||
do
|
||||
{
|
||||
SetFwRsvdPagePkt(padapter, _TRUE);
|
||||
SetFwRsvdPagePkt(padapter, true);
|
||||
DLBcnCount++;
|
||||
|
||||
do
|
||||
|
@ -1310,7 +1310,7 @@ int reset_tsf(struct adapter *Adapter, u8 reset_port )
|
|||
reset_cnt_after = rtw_read8(Adapter, reg_reset_tsf_cnt);
|
||||
}
|
||||
|
||||
return(loop_cnt >= 10) ? _FAIL : _TRUE;
|
||||
return(loop_cnt >= 10) ? _FAIL : true;
|
||||
}
|
||||
|
||||
|
||||
|
@ -1386,19 +1386,19 @@ _func_enter_;
|
|||
if(enable){
|
||||
|
||||
pwowlan_parm.mode |=FW_WOWLAN_FUN_EN;
|
||||
pwrpriv->wowlan_magic =_TRUE;
|
||||
pwrpriv->wowlan_magic =true;
|
||||
if (psecpriv->dot11PrivacyAlgrthm == _WEP40_ || psecpriv->dot11PrivacyAlgrthm == _WEP104_)
|
||||
pwrpriv->wowlan_unicast =_TRUE;
|
||||
pwrpriv->wowlan_unicast =true;
|
||||
|
||||
if(pwrpriv->wowlan_pattern ==_TRUE){
|
||||
if(pwrpriv->wowlan_pattern ==true){
|
||||
pwowlan_parm.mode |= FW_WOWLAN_PATTERN_MATCH;
|
||||
DBG_871X_LEVEL(_drv_info_, "%s 2.pwowlan_parm.mode=0x%x \n",__FUNCTION__,pwowlan_parm.mode );
|
||||
}
|
||||
if(pwrpriv->wowlan_magic ==_TRUE){
|
||||
if(pwrpriv->wowlan_magic ==true){
|
||||
pwowlan_parm.mode |=FW_WOWLAN_MAGIC_PKT;
|
||||
DBG_871X_LEVEL(_drv_info_, "%s 3.pwowlan_parm.mode=0x%x \n",__FUNCTION__,pwowlan_parm.mode );
|
||||
}
|
||||
if(pwrpriv->wowlan_unicast ==_TRUE){
|
||||
if(pwrpriv->wowlan_unicast ==true){
|
||||
pwowlan_parm.mode |=FW_WOWLAN_UNICAST;
|
||||
DBG_871X_LEVEL(_drv_info_, "%s 4.pwowlan_parm.mode=0x%x \n",__FUNCTION__,pwowlan_parm.mode );
|
||||
}
|
||||
|
@ -1455,7 +1455,7 @@ _func_enter_;
|
|||
|
||||
res = FillH2CCmd_88E(padapter, H2C_COM_REMOTE_WAKE_CTRL, 3, (u8 *)&pwowlan_parm);
|
||||
} else {
|
||||
pwrpriv->wowlan_magic =_FALSE;
|
||||
pwrpriv->wowlan_magic =false;
|
||||
#ifdef CONFIG_GPIO_WAKEUP
|
||||
rtl8188es_set_output_gpio(padapter, gpio_wake_pin, !gpio_high_active);
|
||||
#endif //CONFIG_GPIO_WAKEUP
|
||||
|
|
|
@ -58,7 +58,7 @@ dm_CheckStatistics(
|
|||
static void dm_CheckPbcGPIO(struct adapter *padapter)
|
||||
{
|
||||
u8 tmp1byte;
|
||||
u8 bPbcPressed = _FALSE;
|
||||
u8 bPbcPressed = false;
|
||||
|
||||
if(!padapter->registrypriv.hw_wps_pbc)
|
||||
return;
|
||||
|
@ -81,9 +81,9 @@ static void dm_CheckPbcGPIO(struct adapter *padapter)
|
|||
|
||||
if (tmp1byte&HAL_8188E_HW_GPIO_WPS_BIT)
|
||||
{
|
||||
bPbcPressed = _TRUE;
|
||||
bPbcPressed = true;
|
||||
}
|
||||
if( _TRUE == bPbcPressed)
|
||||
if( true == bPbcPressed)
|
||||
{
|
||||
// Here we only set bPbcPressed to true
|
||||
// After trigger PBC, the variable will be set to false
|
||||
|
@ -310,9 +310,9 @@ rtl8188e_HalDmWatchDog(
|
|||
IN struct adapter *Adapter
|
||||
)
|
||||
{
|
||||
BOOLEAN bFwCurrentInPSMode = _FALSE;
|
||||
BOOLEAN bFwPSAwake = _TRUE;
|
||||
u8 hw_init_completed = _FALSE;
|
||||
BOOLEAN bFwCurrentInPSMode = false;
|
||||
BOOLEAN bFwPSAwake = true;
|
||||
u8 hw_init_completed = false;
|
||||
PHAL_DATA_TYPE pHalData = GET_HAL_DATA(Adapter);
|
||||
struct dm_priv *pdmpriv = &pHalData->dmpriv;
|
||||
PDM_ODM_T pDM_Odm = &(pHalData->odmpriv);
|
||||
|
@ -324,7 +324,7 @@ rtl8188e_HalDmWatchDog(
|
|||
|
||||
hw_init_completed = Adapter->hw_init_completed;
|
||||
|
||||
if (hw_init_completed == _FALSE)
|
||||
if (hw_init_completed == false)
|
||||
goto skip_dm;
|
||||
|
||||
#ifdef CONFIG_LPS
|
||||
|
@ -336,10 +336,10 @@ rtl8188e_HalDmWatchDog(
|
|||
// Fw is under p2p powersaving mode, driver should stop dynamic mechanism.
|
||||
// modifed by thomas. 2011.06.11.
|
||||
if(Adapter->wdinfo.p2p_ps_mode)
|
||||
bFwPSAwake = _FALSE;
|
||||
bFwPSAwake = false;
|
||||
#endif //CONFIG_P2P_PS
|
||||
|
||||
if( (hw_init_completed == _TRUE)
|
||||
if( (hw_init_completed == true)
|
||||
&& ((!bFwCurrentInPSMode) && bFwPSAwake))
|
||||
{
|
||||
//
|
||||
|
@ -350,30 +350,30 @@ rtl8188e_HalDmWatchDog(
|
|||
|
||||
|
||||
//ODM
|
||||
if (hw_init_completed == _TRUE)
|
||||
if (hw_init_completed == true)
|
||||
{
|
||||
u8 bLinked=_FALSE;
|
||||
u8 bsta_state = _FALSE;
|
||||
u8 bLinked=false;
|
||||
u8 bsta_state = false;
|
||||
|
||||
#ifdef CONFIG_DISABLE_ODM
|
||||
pHalData->odmpriv.SupportAbility = 0;
|
||||
#endif
|
||||
|
||||
if(rtw_linked_check(Adapter))
|
||||
bLinked = _TRUE;
|
||||
bLinked = true;
|
||||
|
||||
#ifdef CONFIG_CONCURRENT_MODE
|
||||
if(pbuddy_adapter && rtw_linked_check(pbuddy_adapter))
|
||||
bLinked = _TRUE;
|
||||
bLinked = true;
|
||||
#endif //CONFIG_CONCURRENT_MODE
|
||||
ODM_CmnInfoUpdate(&pHalData->odmpriv ,ODM_CMNINFO_LINK, bLinked);
|
||||
|
||||
|
||||
if (check_fwstate(&Adapter->mlmepriv, WIFI_STATION_STATE))
|
||||
bsta_state = _TRUE;
|
||||
bsta_state = true;
|
||||
#ifdef CONFIG_CONCURRENT_MODE
|
||||
if(pbuddy_adapter && check_fwstate(&pbuddy_adapter->mlmepriv, WIFI_STATION_STATE))
|
||||
bsta_state = _TRUE;
|
||||
bsta_state = true;
|
||||
#endif //CONFIG_CONCURRENT_MODE
|
||||
ODM_CmnInfoUpdate(&pHalData->odmpriv ,ODM_CMNINFO_STATION_STATE, bsta_state);
|
||||
|
||||
|
@ -451,12 +451,12 @@ u8 AntDivBeforeLink8188E(struct adapter *Adapter )
|
|||
if(pHalData->AntDivCfg==0)
|
||||
{
|
||||
//DBG_8192C("odm_AntDivBeforeLink8192C(): No AntDiv Mechanism.\n");
|
||||
return _FALSE;
|
||||
return false;
|
||||
}
|
||||
|
||||
if(check_fwstate(pmlmepriv, _FW_LINKED) == _TRUE)
|
||||
if(check_fwstate(pmlmepriv, _FW_LINKED) == true)
|
||||
{
|
||||
return _FALSE;
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
|
@ -466,14 +466,14 @@ u8 AntDivBeforeLink8188E(struct adapter *Adapter )
|
|||
pDM_SWAT_Table->CurAntenna = (pDM_SWAT_Table->CurAntenna==Antenna_A)?Antenna_B:Antenna_A;
|
||||
|
||||
//PHY_SetBBReg(Adapter, rFPGA0_XA_RFInterfaceOE, 0x300, pDM_SWAT_Table->CurAntenna);
|
||||
rtw_antenna_select_cmd(Adapter, pDM_SWAT_Table->CurAntenna, _FALSE);
|
||||
rtw_antenna_select_cmd(Adapter, pDM_SWAT_Table->CurAntenna, false);
|
||||
//DBG_8192C("%s change antenna to ANT_( %s ).....\n",__FUNCTION__, (pDM_SWAT_Table->CurAntenna==Antenna_A)?"A":"B");
|
||||
return _TRUE;
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
pDM_SWAT_Table->SWAS_NoLink_State = 0;
|
||||
return _FALSE;
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -41,9 +41,9 @@ static void iol_mode_enable(struct adapter *padapter, u8 enable)
|
|||
//DBG_871X("%s reg_0xf0:0x%02x, write 0x%02x\n", __FUNCTION__, reg_0xf0, reg_0xf0|SW_OFFLOAD_EN);
|
||||
rtw_write8(padapter, REG_SYS_CFG, reg_0xf0|SW_OFFLOAD_EN);
|
||||
|
||||
if(padapter->bFWReady == _FALSE)
|
||||
if(padapter->bFWReady == false)
|
||||
{
|
||||
printk("bFWReady == _FALSE call reset 8051...\n");
|
||||
printk("bFWReady == false call reset 8051...\n");
|
||||
_8051Reset88E(padapter);
|
||||
}
|
||||
|
||||
|
@ -723,7 +723,7 @@ void _MCUIO_Reset88E(struct adapter *padapter,u8 bReset)
|
|||
{
|
||||
u8 u1bTmp;
|
||||
|
||||
if(bReset==_TRUE){
|
||||
if(bReset==true){
|
||||
// Reset MCU IO Wrapper- sugggest by SD1-Gimmy
|
||||
u1bTmp = rtw_read8(padapter, REG_RSV_CTRL+1);
|
||||
rtw_write8(padapter,REG_RSV_CTRL+1, (u1bTmp&(~BIT3)));
|
||||
|
@ -738,10 +738,10 @@ void _8051Reset88E(struct adapter *padapter)
|
|||
{
|
||||
u8 u1bTmp;
|
||||
|
||||
_MCUIO_Reset88E(padapter,_TRUE);
|
||||
_MCUIO_Reset88E(padapter,true);
|
||||
u1bTmp = rtw_read8(padapter, REG_SYS_FUNC_EN+1);
|
||||
rtw_write8(padapter, REG_SYS_FUNC_EN+1, u1bTmp&(~BIT2));
|
||||
_MCUIO_Reset88E(padapter,_FALSE);
|
||||
_MCUIO_Reset88E(padapter,false);
|
||||
rtw_write8(padapter, REG_SYS_FUNC_EN+1, u1bTmp|(BIT2));
|
||||
|
||||
DBG_871X("=====> _8051Reset88E(): 8051 reset success .\n");
|
||||
|
@ -845,7 +845,7 @@ s32 rtl8188e_FirmwareDownload(struct adapter *padapter)
|
|||
// RT_TRACE(_module_hal_init_c_, _drv_err_, ("rtl8723a_FirmwareDownload: %s\n", pFwImageFileName));
|
||||
|
||||
#ifdef CONFIG_FILE_FWIMG
|
||||
if(rtw_is_file_readable(rtw_fw_file_path) == _TRUE)
|
||||
if(rtw_is_file_readable(rtw_fw_file_path) == true)
|
||||
{
|
||||
DBG_871X("%s accquire FW from file:%s\n", __FUNCTION__, rtw_fw_file_path);
|
||||
pFirmware->eFWSource = FW_SOURCE_IMG_FILE;
|
||||
|
@ -920,7 +920,7 @@ s32 rtl8188e_FirmwareDownload(struct adapter *padapter)
|
|||
_8051Reset88E(padapter);
|
||||
}
|
||||
|
||||
_FWDownloadEnable(padapter, _TRUE);
|
||||
_FWDownloadEnable(padapter, true);
|
||||
fwdl_start_time = rtw_get_current_time();
|
||||
while(1) {
|
||||
//reset the FWDL chksum
|
||||
|
@ -933,7 +933,7 @@ s32 rtl8188e_FirmwareDownload(struct adapter *padapter)
|
|||
)
|
||||
break;
|
||||
}
|
||||
_FWDownloadEnable(padapter, _FALSE);
|
||||
_FWDownloadEnable(padapter, false);
|
||||
|
||||
DBG_871X("%s writeFW_retry:%u, time after fwdl_start_time:%ums\n", __FUNCTION__
|
||||
, writeFW_retry
|
||||
|
@ -977,7 +977,7 @@ void rtl8188e_InitializeFirmwareVars(struct adapter *padapter)
|
|||
struct pwrctrl_priv *pwrpriv = adapter_to_pwrctl(padapter);
|
||||
|
||||
// Init Fw LPS related.
|
||||
pwrpriv->bFwCurrentInPSMode = _FALSE;
|
||||
pwrpriv->bFwCurrentInPSMode = false;
|
||||
// Init H2C counter. by tynli. 2009.12.09.
|
||||
pHalData->LastHMEBoxNum = 0;
|
||||
}
|
||||
|
@ -1000,7 +1000,7 @@ SetFwRelatedForWoWLAN8188ES(
|
|||
{
|
||||
int status=_FAIL;
|
||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(padapter);
|
||||
u8 bRecover = _FALSE;
|
||||
u8 bRecover = false;
|
||||
//
|
||||
// 1. Before WoWLAN we need to re-download WoWLAN Fw.
|
||||
//
|
||||
|
@ -1022,7 +1022,7 @@ void rtl8188e_InitializeFirmwareVars(struct adapter *padapter)
|
|||
PHAL_DATA_TYPE pHalData = GET_HAL_DATA(padapter);
|
||||
|
||||
// Init Fw LPS related.
|
||||
adapter_to_pwrctl(padapter)->bFwCurrentInPSMode = _FALSE;
|
||||
adapter_to_pwrctl(padapter)->bFwCurrentInPSMode = false;
|
||||
|
||||
// Init H2C counter. by tynli. 2009.12.09.
|
||||
pHalData->LastHMEBoxNum = 0;
|
||||
|
@ -1084,7 +1084,7 @@ hal_EfusePowerSwitch_RTL8188E(
|
|||
u8 tempval;
|
||||
u16 tmpV16;
|
||||
|
||||
if (PwrState == _TRUE)
|
||||
if (PwrState == true)
|
||||
{
|
||||
rtw_write8(pAdapter, REG_EFUSE_ACCESS, EFUSE_ACCESS_ON);
|
||||
|
||||
|
@ -1108,7 +1108,7 @@ hal_EfusePowerSwitch_RTL8188E(
|
|||
rtw_write16(pAdapter,REG_SYS_CLKR,tmpV16);
|
||||
}
|
||||
|
||||
if(bWrite == _TRUE)
|
||||
if(bWrite == true)
|
||||
{
|
||||
// Enable LDO 2.5V before read/write action
|
||||
tempval = rtw_read8(pAdapter, EFUSE_TEST+3);
|
||||
|
@ -1121,7 +1121,7 @@ hal_EfusePowerSwitch_RTL8188E(
|
|||
{
|
||||
rtw_write8(pAdapter, REG_EFUSE_ACCESS, EFUSE_ACCESS_OFF);
|
||||
|
||||
if(bWrite == _TRUE){
|
||||
if(bWrite == true){
|
||||
// Disable LDO 2.5V after read/write action
|
||||
tempval = rtw_read8(pAdapter, EFUSE_TEST+3);
|
||||
rtw_write8(pAdapter, EFUSE_TEST+3, (tempval & 0x7F));
|
||||
|
@ -1149,7 +1149,7 @@ static bool efuse_read_phymap(
|
|||
u8 *pos = pbuf;
|
||||
u16 limit = *size;
|
||||
u16 addr = 0;
|
||||
bool reach_end = _FALSE;
|
||||
bool reach_end = false;
|
||||
|
||||
//
|
||||
// Refresh efuse init map as all 0xFF.
|
||||
|
@ -1162,7 +1162,7 @@ static bool efuse_read_phymap(
|
|||
//
|
||||
while(addr < limit)
|
||||
{
|
||||
ReadEFuseByte(Adapter, addr, pos, _FALSE);
|
||||
ReadEFuseByte(Adapter, addr, pos, false);
|
||||
if(*pos != 0xFF)
|
||||
{
|
||||
pos++;
|
||||
|
@ -1170,7 +1170,7 @@ static bool efuse_read_phymap(
|
|||
}
|
||||
else
|
||||
{
|
||||
reach_end = _TRUE;
|
||||
reach_end = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -1383,14 +1383,14 @@ Hal_EfuseSwitchToBank(
|
|||
IN BOOLEAN bPseudoTest
|
||||
)
|
||||
{
|
||||
BOOLEAN bRet = _FALSE;
|
||||
BOOLEAN bRet = false;
|
||||
u32 value32=0;
|
||||
|
||||
//RTPRINT(FEEPROM, EFUSE_PG, ("Efuse switch bank to %d\n", bank));
|
||||
if(bPseudoTest)
|
||||
{
|
||||
fakeEfuseBank = bank;
|
||||
bRet = _TRUE;
|
||||
bRet = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -1398,7 +1398,7 @@ Hal_EfuseSwitchToBank(
|
|||
INCLUDE_MULTI_FUNC_BT(pAdapter))
|
||||
{
|
||||
value32 = rtw_read32(pAdapter, EFUSE_TEST);
|
||||
bRet = _TRUE;
|
||||
bRet = true;
|
||||
switch(bank)
|
||||
{
|
||||
case 0:
|
||||
|
@ -1415,13 +1415,13 @@ Hal_EfuseSwitchToBank(
|
|||
break;
|
||||
default:
|
||||
value32 = (value32 & ~EFUSE_SEL_MASK) | EFUSE_SEL(EFUSE_WIFI_SEL_0);
|
||||
bRet = _FALSE;
|
||||
bRet = false;
|
||||
break;
|
||||
}
|
||||
rtw_write32(pAdapter, EFUSE_TEST, value32);
|
||||
}
|
||||
else
|
||||
bRet = _TRUE;
|
||||
bRet = true;
|
||||
}
|
||||
return bRet;
|
||||
}
|
||||
|
@ -1468,7 +1468,7 @@ ReadEFuseByIC(
|
|||
exit:
|
||||
|
||||
#ifdef DBG_IOL_READ_EFUSE_MAP
|
||||
if(_rtw_memcmp(logical_map, Adapter->eeprompriv.efuse_eeprom_data, 0x130) == _FALSE)
|
||||
if(_rtw_memcmp(logical_map, Adapter->eeprompriv.efuse_eeprom_data, 0x130) == false)
|
||||
{
|
||||
int i;
|
||||
DBG_871X("%s compare first 0x130 byte fail\n", __FUNCTION__);
|
||||
|
@ -1784,7 +1784,7 @@ static u16
|
|||
hal_EfuseGetCurrentSize_8188e(IN struct adapter *pAdapter,
|
||||
IN BOOLEAN bPseudoTest)
|
||||
{
|
||||
int bContinual = _TRUE;
|
||||
int bContinual = true;
|
||||
|
||||
u16 efuse_addr = 0;
|
||||
u8 hoffset=0,hworden=0;
|
||||
|
@ -1833,7 +1833,7 @@ hal_EfuseGetCurrentSize_8188e(IN struct adapter *pAdapter,
|
|||
}
|
||||
else
|
||||
{
|
||||
bContinual = _FALSE ;
|
||||
bContinual = false ;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1894,8 +1894,8 @@ hal_EfusePgPacketRead_8188e(
|
|||
{
|
||||
u8 ReadState = PG_STATE_HEADER;
|
||||
|
||||
int bContinual = _TRUE;
|
||||
int bDataEmpty = _TRUE ;
|
||||
int bContinual = true;
|
||||
int bDataEmpty = true ;
|
||||
|
||||
u8 efuse_data,word_cnts = 0;
|
||||
u16 efuse_addr = 0;
|
||||
|
@ -1908,9 +1908,9 @@ hal_EfusePgPacketRead_8188e(
|
|||
EFUSE_GetEfuseDefinition(pAdapter, EFUSE_WIFI, TYPE_EFUSE_MAX_SECTION, (void *)&max_section, bPseudoTest);
|
||||
|
||||
if(data==NULL)
|
||||
return _FALSE;
|
||||
return false;
|
||||
if(offset>max_section)
|
||||
return _FALSE;
|
||||
return false;
|
||||
|
||||
_rtw_memset((void *)data, 0xff, sizeof(u8)*PGPKT_DATA_SIZE);
|
||||
_rtw_memset((void *)tmpdata, 0xff, sizeof(u8)*PGPKT_DATA_SIZE);
|
||||
|
@ -1951,7 +1951,7 @@ hal_EfusePgPacketRead_8188e(
|
|||
hworden = efuse_data & 0x0F;
|
||||
}
|
||||
word_cnts = Efuse_CalculateWordCnts(hworden);
|
||||
bDataEmpty = _TRUE ;
|
||||
bDataEmpty = true ;
|
||||
|
||||
if(hoffset==offset)
|
||||
{
|
||||
|
@ -1962,11 +1962,11 @@ hal_EfusePgPacketRead_8188e(
|
|||
tmpdata[tmpidx] = efuse_data;
|
||||
if(efuse_data!=0xff)
|
||||
{
|
||||
bDataEmpty = _FALSE;
|
||||
bDataEmpty = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
if(bDataEmpty==_FALSE){
|
||||
if(bDataEmpty==false){
|
||||
ReadState = PG_STATE_DATA;
|
||||
}else{//read next header
|
||||
efuse_addr = efuse_addr + (word_cnts*2)+1;
|
||||
|
@ -1980,7 +1980,7 @@ hal_EfusePgPacketRead_8188e(
|
|||
|
||||
}
|
||||
else{
|
||||
bContinual = _FALSE ;
|
||||
bContinual = false ;
|
||||
}
|
||||
}
|
||||
//------- Data section Read -------------
|
||||
|
@ -1995,9 +1995,9 @@ hal_EfusePgPacketRead_8188e(
|
|||
|
||||
if( (data[0]==0xff) &&(data[1]==0xff) && (data[2]==0xff) && (data[3]==0xff) &&
|
||||
(data[4]==0xff) &&(data[5]==0xff) && (data[6]==0xff) && (data[7]==0xff))
|
||||
return _FALSE;
|
||||
return false;
|
||||
else
|
||||
return _TRUE;
|
||||
return true;
|
||||
|
||||
}
|
||||
|
||||
|
@ -2072,7 +2072,7 @@ hal_EfuseFixHeaderProcess(
|
|||
PgWriteSuccess = Efuse_PgPacketWrite(pAdapter, pFixPkt->offset, badworden, originaldata, bPseudoTest);
|
||||
|
||||
if(!PgWriteSuccess)
|
||||
return _FALSE;
|
||||
return false;
|
||||
else
|
||||
efuse_addr = Efuse_GetCurrentSize(pAdapter, efuseType, bPseudoTest);
|
||||
}
|
||||
|
@ -2086,7 +2086,7 @@ hal_EfuseFixHeaderProcess(
|
|||
efuse_addr = efuse_addr + (pFixPkt->word_cnts*2) +1;
|
||||
}
|
||||
*pAddr = efuse_addr;
|
||||
return _TRUE;
|
||||
return true;
|
||||
}
|
||||
|
||||
static BOOLEAN
|
||||
|
@ -2097,7 +2097,7 @@ hal_EfusePgPacketWrite2ByteHeader(
|
|||
IN PPGPKT_STRUCT pTargetPkt,
|
||||
IN BOOLEAN bPseudoTest)
|
||||
{
|
||||
BOOLEAN bRet=_FALSE, bContinual=_TRUE;
|
||||
BOOLEAN bRet=false, bContinual=true;
|
||||
u16 efuse_addr=*pAddr, efuse_max_available_len=0;
|
||||
u8 pg_header=0, tmp_header=0, pg_header_temp=0;
|
||||
u8 repeatcnt=0;
|
||||
|
@ -2117,7 +2117,7 @@ hal_EfusePgPacketWrite2ByteHeader(
|
|||
if(repeatcnt++ > EFUSE_REPEAT_THRESHOLD_)
|
||||
{
|
||||
//RTPRINT(FEEPROM, EFUSE_PG, ("Repeat over limit for pg_header!!\n"));
|
||||
return _FALSE;
|
||||
return false;
|
||||
}
|
||||
|
||||
efuse_OneByteWrite(pAdapter, efuse_addr, pg_header, bPseudoTest);
|
||||
|
@ -2139,7 +2139,7 @@ hal_EfusePgPacketWrite2ByteHeader(
|
|||
if(repeatcnt++ > EFUSE_REPEAT_THRESHOLD_)
|
||||
{
|
||||
//RTPRINT(FEEPROM, EFUSE_PG, ("Repeat over limit for ext_header!!\n"));
|
||||
return _FALSE;
|
||||
return false;
|
||||
}
|
||||
|
||||
efuse_OneByteWrite(pAdapter, efuse_addr, pg_header, bPseudoTest);
|
||||
|
@ -2151,7 +2151,7 @@ hal_EfusePgPacketWrite2ByteHeader(
|
|||
if(repeatcnt++ > EFUSE_REPEAT_THRESHOLD_)
|
||||
{
|
||||
//RTPRINT(FEEPROM, EFUSE_PG, ("Repeat over limit for word_en!!\n"));
|
||||
return _FALSE;
|
||||
return false;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -2167,11 +2167,11 @@ hal_EfusePgPacketWrite2ByteHeader(
|
|||
fixPkt.word_en = tmp_header & 0x0F;
|
||||
fixPkt.word_cnts = Efuse_CalculateWordCnts(fixPkt.word_en);
|
||||
if(!hal_EfuseFixHeaderProcess(pAdapter, efuseType, &fixPkt, &efuse_addr, bPseudoTest))
|
||||
return _FALSE;
|
||||
return false;
|
||||
}
|
||||
else
|
||||
{
|
||||
bRet = _TRUE;
|
||||
bRet = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -2194,7 +2194,7 @@ hal_EfusePgPacketWrite1ByteHeader(
|
|||
IN PPGPKT_STRUCT pTargetPkt,
|
||||
IN BOOLEAN bPseudoTest)
|
||||
{
|
||||
BOOLEAN bRet=_FALSE;
|
||||
BOOLEAN bRet=false;
|
||||
u8 pg_header=0, tmp_header=0;
|
||||
u16 efuse_addr=*pAddr;
|
||||
u8 repeatcnt=0;
|
||||
|
@ -2209,7 +2209,7 @@ hal_EfusePgPacketWrite1ByteHeader(
|
|||
{
|
||||
if(repeatcnt++ > EFUSE_REPEAT_THRESHOLD_)
|
||||
{
|
||||
return _FALSE;
|
||||
return false;
|
||||
}
|
||||
efuse_OneByteWrite(pAdapter,efuse_addr, pg_header, bPseudoTest);
|
||||
efuse_OneByteRead(pAdapter,efuse_addr, &tmp_header, bPseudoTest);
|
||||
|
@ -2217,7 +2217,7 @@ hal_EfusePgPacketWrite1ByteHeader(
|
|||
|
||||
if(pg_header == tmp_header)
|
||||
{
|
||||
bRet = _TRUE;
|
||||
bRet = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -2227,7 +2227,7 @@ hal_EfusePgPacketWrite1ByteHeader(
|
|||
fixPkt.word_en = tmp_header & 0x0F;
|
||||
fixPkt.word_cnts = Efuse_CalculateWordCnts(fixPkt.word_en);
|
||||
if(!hal_EfuseFixHeaderProcess(pAdapter, efuseType, &fixPkt, &efuse_addr, bPseudoTest))
|
||||
return _FALSE;
|
||||
return false;
|
||||
}
|
||||
|
||||
*pAddr = efuse_addr;
|
||||
|
@ -2242,7 +2242,7 @@ hal_EfusePgPacketWriteData(
|
|||
IN PPGPKT_STRUCT pTargetPkt,
|
||||
IN BOOLEAN bPseudoTest)
|
||||
{
|
||||
BOOLEAN bRet=_FALSE;
|
||||
BOOLEAN bRet=false;
|
||||
u16 efuse_addr=*pAddr;
|
||||
u8 badworden=0;
|
||||
u32 PgWriteSuccess=0;
|
||||
|
@ -2253,7 +2253,7 @@ hal_EfusePgPacketWriteData(
|
|||
{
|
||||
// write ok
|
||||
//RTPRINT(FEEPROM, EFUSE_PG, ("hal_EfusePgPacketWriteData ok!!\n"));
|
||||
return _TRUE;
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -2263,9 +2263,9 @@ hal_EfusePgPacketWriteData(
|
|||
PgWriteSuccess = Efuse_PgPacketWrite(pAdapter, pTargetPkt->offset, badworden, pTargetPkt->data, bPseudoTest);
|
||||
|
||||
if(!PgWriteSuccess)
|
||||
return _FALSE;
|
||||
return false;
|
||||
else
|
||||
return _TRUE;
|
||||
return true;
|
||||
}
|
||||
|
||||
return bRet;
|
||||
|
@ -2279,7 +2279,7 @@ hal_EfusePgPacketWriteHeader(
|
|||
IN PPGPKT_STRUCT pTargetPkt,
|
||||
IN BOOLEAN bPseudoTest)
|
||||
{
|
||||
BOOLEAN bRet=_FALSE;
|
||||
BOOLEAN bRet=false;
|
||||
|
||||
if(pTargetPkt->offset >= EFUSE_MAX_SECTION_BASE)
|
||||
{
|
||||
|
@ -2328,9 +2328,9 @@ wordEnMatched(
|
|||
*pWden = match_word_en;
|
||||
|
||||
if(match_word_en != 0xf)
|
||||
return _TRUE;
|
||||
return true;
|
||||
else
|
||||
return _FALSE;
|
||||
return false;
|
||||
}
|
||||
|
||||
static BOOLEAN
|
||||
|
@ -2341,13 +2341,13 @@ hal_EfuseCheckIfDatafollowed(
|
|||
IN BOOLEAN bPseudoTest
|
||||
)
|
||||
{
|
||||
BOOLEAN bRet=_FALSE;
|
||||
BOOLEAN bRet=false;
|
||||
u8 i, efuse_data;
|
||||
|
||||
for(i=0; i<(word_cnts*2) ; i++)
|
||||
{
|
||||
if(efuse_OneByteRead(pAdapter, (startAddr+i) ,&efuse_data, bPseudoTest)&&(efuse_data != 0xFF))
|
||||
bRet = _TRUE;
|
||||
bRet = true;
|
||||
}
|
||||
|
||||
return bRet;
|
||||
|
@ -2362,7 +2362,7 @@ hal_EfusePartialWriteCheck(
|
|||
IN BOOLEAN bPseudoTest
|
||||
)
|
||||
{
|
||||
BOOLEAN bRet=_FALSE;
|
||||
BOOLEAN bRet=false;
|
||||
u8 i, efuse_data=0, cur_header=0;
|
||||
u8 new_wden=0, matched_wden=0, badworden=0;
|
||||
u16 startAddr=0, efuse_max_available_len=0, efuse_max=0;
|
||||
|
@ -2400,7 +2400,7 @@ hal_EfusePartialWriteCheck(
|
|||
{
|
||||
if(startAddr >= efuse_max_available_len)
|
||||
{
|
||||
bRet = _FALSE;
|
||||
bRet = false;
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -2414,7 +2414,7 @@ hal_EfusePartialWriteCheck(
|
|||
if(ALL_WORDS_DISABLED(efuse_data))
|
||||
{
|
||||
//RTPRINT(FEEPROM, EFUSE_PG, ("Error condition, all words disabled"));
|
||||
bRet = _FALSE;
|
||||
bRet = false;
|
||||
break;
|
||||
}
|
||||
else
|
||||
|
@ -2449,7 +2449,7 @@ hal_EfusePartialWriteCheck(
|
|||
|
||||
if(!PgWriteSuccess)
|
||||
{
|
||||
bRet = _FALSE; // write fail, return
|
||||
bRet = false; // write fail, return
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -2471,7 +2471,7 @@ hal_EfusePartialWriteCheck(
|
|||
// not used header, 0xff
|
||||
*pAddr = startAddr;
|
||||
//RTPRINT(FEEPROM, EFUSE_PG, ("Started from unused header offset=%d\n", startAddr));
|
||||
bRet = _TRUE;
|
||||
bRet = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -2488,7 +2488,7 @@ hal_EfusePgCheckAvailableAddr(
|
|||
u16 efuse_max_available_len=0;
|
||||
|
||||
//Change to check TYPE_EFUSE_MAP_LEN ,beacuse 8188E raw 256,logic map over 256.
|
||||
EFUSE_GetEfuseDefinition(pAdapter, EFUSE_WIFI, TYPE_EFUSE_MAP_LEN, (void *)&efuse_max_available_len, _FALSE);
|
||||
EFUSE_GetEfuseDefinition(pAdapter, EFUSE_WIFI, TYPE_EFUSE_MAP_LEN, (void *)&efuse_max_available_len, false);
|
||||
|
||||
//EFUSE_GetEfuseDefinition(pAdapter, efuseType, TYPE_AVAILABLE_EFUSE_BYTES_TOTAL, (void *)&efuse_max_available_len, bPseudoTest);
|
||||
//RTPRINT(FEEPROM, EFUSE_PG, ("efuse_max_available_len = %d\n", efuse_max_available_len));
|
||||
|
@ -2496,9 +2496,9 @@ hal_EfusePgCheckAvailableAddr(
|
|||
if(Efuse_GetCurrentSize(pAdapter, efuseType, bPseudoTest) >= efuse_max_available_len)
|
||||
{
|
||||
//RTPRINT(FEEPROM, EFUSE_PG, ("hal_EfusePgCheckAvailableAddr error!!\n"));
|
||||
return _FALSE;
|
||||
return false;
|
||||
}
|
||||
return _TRUE;
|
||||
return true;
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -2533,20 +2533,20 @@ hal_EfusePgPacketWrite_BT(
|
|||
u8 efuseType=EFUSE_BT;
|
||||
|
||||
if(!hal_EfusePgCheckAvailableAddr(pAdapter, efuseType, bPseudoTest))
|
||||
return _FALSE;
|
||||
return false;
|
||||
|
||||
hal_EfuseConstructPGPkt(offset, word_en, pData, &targetPkt);
|
||||
|
||||
if(!hal_EfusePartialWriteCheck(pAdapter, efuseType, &startAddr, &targetPkt, bPseudoTest))
|
||||
return _FALSE;
|
||||
return false;
|
||||
|
||||
if(!hal_EfusePgPacketWriteHeader(pAdapter, efuseType, &startAddr, &targetPkt, bPseudoTest))
|
||||
return _FALSE;
|
||||
return false;
|
||||
|
||||
if(!hal_EfusePgPacketWriteData(pAdapter, efuseType, &startAddr, &targetPkt, bPseudoTest))
|
||||
return _FALSE;
|
||||
return false;
|
||||
|
||||
return _TRUE;
|
||||
return true;
|
||||
}
|
||||
|
||||
static BOOLEAN
|
||||
|
@ -2563,20 +2563,20 @@ hal_EfusePgPacketWrite_8188e(
|
|||
u8 efuseType=EFUSE_WIFI;
|
||||
|
||||
if(!hal_EfusePgCheckAvailableAddr(pAdapter, efuseType, bPseudoTest))
|
||||
return _FALSE;
|
||||
return false;
|
||||
|
||||
hal_EfuseConstructPGPkt(offset, word_en, pData, &targetPkt);
|
||||
|
||||
if(!hal_EfusePartialWriteCheck(pAdapter, efuseType, &startAddr, &targetPkt, bPseudoTest))
|
||||
return _FALSE;
|
||||
return false;
|
||||
|
||||
if(!hal_EfusePgPacketWriteHeader(pAdapter, efuseType, &startAddr, &targetPkt, bPseudoTest))
|
||||
return _FALSE;
|
||||
return false;
|
||||
|
||||
if(!hal_EfusePgPacketWriteData(pAdapter, efuseType, &startAddr, &targetPkt, bPseudoTest))
|
||||
return _FALSE;
|
||||
return false;
|
||||
|
||||
return _TRUE;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
|
@ -2962,7 +2962,7 @@ Hal_InitPGData88E(struct adapter *padapter)
|
|||
u32 i;
|
||||
u16 value16;
|
||||
|
||||
if(_FALSE == pEEPROM->bautoload_fail_flag)
|
||||
if(false == pEEPROM->bautoload_fail_flag)
|
||||
{ // autoload OK.
|
||||
if (is_boot_from_eeprom(padapter))
|
||||
{
|
||||
|
@ -2976,16 +2976,16 @@ Hal_InitPGData88E(struct adapter *padapter)
|
|||
else
|
||||
{
|
||||
// Read EFUSE real map to shadow.
|
||||
EFUSE_ShadowMapUpdate(padapter, EFUSE_WIFI, _FALSE);
|
||||
EFUSE_ShadowMapUpdate(padapter, EFUSE_WIFI, false);
|
||||
}
|
||||
}
|
||||
else
|
||||
{//autoload fail
|
||||
RT_TRACE(_module_hci_hal_init_c_, _drv_notice_, ("AutoLoad Fail reported from CR9346!!\n"));
|
||||
// pHalData->AutoloadFailFlag = _TRUE;
|
||||
// pHalData->AutoloadFailFlag = true;
|
||||
//update to default value 0xFF
|
||||
if (!is_boot_from_eeprom(padapter))
|
||||
EFUSE_ShadowMapUpdate(padapter, EFUSE_WIFI, _FALSE);
|
||||
EFUSE_ShadowMapUpdate(padapter, EFUSE_WIFI, false);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -3005,11 +3005,11 @@ Hal_EfuseParseIDCode88E(
|
|||
if (EEPROMId != RTL_EEPROM_ID)
|
||||
{
|
||||
DBG_8192C("EEPROM ID(%#x) is invalid!!\n", EEPROMId);
|
||||
pEEPROM->bautoload_fail_flag = _TRUE;
|
||||
pEEPROM->bautoload_fail_flag = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
pEEPROM->bautoload_fail_flag = _FALSE;
|
||||
pEEPROM->bautoload_fail_flag = false;
|
||||
}
|
||||
|
||||
DBG_871X("EEPROM ID=0x%04x\n", EEPROMId);
|
||||
|
@ -3208,11 +3208,11 @@ Hal_GetChnlGroup88E(
|
|||
OUT u8* pGroup
|
||||
)
|
||||
{
|
||||
u8 bIn24G=_TRUE;
|
||||
u8 bIn24G=true;
|
||||
|
||||
if(chnl<=14)
|
||||
{
|
||||
bIn24G=_TRUE;
|
||||
bIn24G=true;
|
||||
|
||||
if (chnl < 3) // Chanel 1-2
|
||||
*pGroup = 0;
|
||||
|
@ -3233,7 +3233,7 @@ Hal_GetChnlGroup88E(
|
|||
}
|
||||
else
|
||||
{
|
||||
bIn24G=_FALSE;
|
||||
bIn24G=false;
|
||||
|
||||
if (chnl <=40)
|
||||
*pGroup = 0;
|
||||
|
@ -3282,15 +3282,15 @@ void Hal_ReadPowerSavingMode88E(
|
|||
u8 tmpvalue;
|
||||
|
||||
if(AutoLoadFail){
|
||||
pwrctl->bHWPowerdown = _FALSE;
|
||||
pwrctl->bSupportRemoteWakeup = _FALSE;
|
||||
pwrctl->bHWPowerdown = false;
|
||||
pwrctl->bSupportRemoteWakeup = false;
|
||||
}
|
||||
else {
|
||||
|
||||
//hw power down mode selection , 0:rf-off / 1:power down
|
||||
|
||||
if(padapter->registrypriv.hwpdn_mode==2)
|
||||
pwrctl->bHWPowerdown = (hwinfo[EEPROM_RF_FEATURE_OPTION_88E] & BIT4)?_TRUE:_FALSE;
|
||||
pwrctl->bHWPowerdown = (hwinfo[EEPROM_RF_FEATURE_OPTION_88E] & BIT4)?true:false;
|
||||
else
|
||||
pwrctl->bHWPowerdown = padapter->registrypriv.hwpdn_mode;
|
||||
|
||||
|
@ -3298,7 +3298,7 @@ void Hal_ReadPowerSavingMode88E(
|
|||
|
||||
// decide hw if support remote wakeup function
|
||||
// if hw supported, 8051 (SIE) will generate WeakUP signal( D+/D- toggle) when autoresume
|
||||
pwrctl->bSupportRemoteWakeup = (hwinfo[EEPROM_USB_OPTIONAL_FUNCTION0] & BIT1)?_TRUE :_FALSE;
|
||||
pwrctl->bSupportRemoteWakeup = (hwinfo[EEPROM_USB_OPTIONAL_FUNCTION0] & BIT1)?true :false;
|
||||
|
||||
DBG_8192C("%s...bHWPwrPindetect(%x)-bHWPowerdown(%x) ,bSupportRemoteWakeup(%x)\n",__FUNCTION__,
|
||||
pwrctl->bHWPwrPindetect, pwrctl->bHWPowerdown, pwrctl->bSupportRemoteWakeup);
|
||||
|
@ -3560,7 +3560,7 @@ Hal_ReadThermalMeter_88E(
|
|||
|
||||
if(pHalData->EEPROMThermalMeter == 0xff || AutoloadFail)
|
||||
{
|
||||
pHalData->bAPKThermalMeterIgnore = _TRUE;
|
||||
pHalData->bAPKThermalMeterIgnore = true;
|
||||
pHalData->EEPROMThermalMeter = EEPROM_Default_ThermalMeter_88E;
|
||||
}
|
||||
|
||||
|
@ -3588,11 +3588,11 @@ BOOLEAN HalDetectPwrDownMode88E(struct adapter *Adapter)
|
|||
// 2010/08/25 MH INF priority > PDN Efuse value.
|
||||
if(tmpvalue & BIT(4) && pwrctrlpriv->reg_pdnmode)
|
||||
{
|
||||
pHalData->pwrdown = _TRUE;
|
||||
pHalData->pwrdown = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
pHalData->pwrdown = _FALSE;
|
||||
pHalData->pwrdown = false;
|
||||
}
|
||||
|
||||
DBG_8192C("HalDetectPwrDownMode(): PDN=%d\n", pHalData->pwrdown);
|
||||
|
@ -3603,7 +3603,7 @@ BOOLEAN HalDetectPwrDownMode88E(struct adapter *Adapter)
|
|||
#ifdef CONFIG_WOWLAN
|
||||
void Hal_DetectWoWMode(struct adapter *pAdapter)
|
||||
{
|
||||
adapter_to_pwrctl(pAdapter)->bSupportRemoteWakeup = _TRUE;
|
||||
adapter_to_pwrctl(pAdapter)->bSupportRemoteWakeup = true;
|
||||
DBG_871X("%s\n", __func__);
|
||||
}
|
||||
#endif
|
||||
|
@ -3619,7 +3619,7 @@ void Hal_ReadRFGainOffset(
|
|||
//
|
||||
// BB_RF Gain Offset from EEPROM
|
||||
//
|
||||
//res = rtw_efuse_access(Adapter, _FALSE, 0, EFUSE_MAX_SIZE, buff);
|
||||
//res = rtw_efuse_access(Adapter, false, 0, EFUSE_MAX_SIZE, buff);
|
||||
if(!AutoloadFail ){
|
||||
Adapter->eeprompriv.EEPROMRFGainOffset = PROMContent[EEPROM_RF_GAIN_OFFSET_88E];
|
||||
Adapter->eeprompriv.EEPROMRFGainVal=EFUSE_Read1Byte(Adapter, EEPROM_RF_GAIN_VAL_88E);
|
||||
|
|
|
@ -89,7 +89,7 @@ sic_IsSICReady(
|
|||
IN struct adapter *Adapter
|
||||
)
|
||||
{
|
||||
BOOLEAN bRet=_FALSE;
|
||||
BOOLEAN bRet=false;
|
||||
u32 retryCnt=0;
|
||||
u8 sic_cmd=0xff;
|
||||
|
||||
|
@ -98,11 +98,11 @@ sic_IsSICReady(
|
|||
if(retryCnt++ >= SIC_MAX_POLL_CNT)
|
||||
{
|
||||
//RTPRINT(FPHY, (PHY_SICR|PHY_SICW), ("[SIC], sic_IsSICReady() return FALSE\n"));
|
||||
return _FALSE;
|
||||
return false;
|
||||
}
|
||||
|
||||
//if(RT_SDIO_CANNOT_IO(Adapter))
|
||||
// return _FALSE;
|
||||
// return false;
|
||||
|
||||
sic_cmd = rtw_read8(Adapter, SIC_CMD_REG);
|
||||
//sic_cmd = PlatformEFIORead1Byte(Adapter, SIC_CMD_REG);
|
||||
|
@ -111,7 +111,7 @@ sic_IsSICReady(
|
|||
#endif
|
||||
//RTPRINT(FPHY, (PHY_SICR|PHY_SICW), ("[SIC], sic_IsSICReady(), readback 0x%x=0x%x\n", SIC_CMD_REG, sic_cmd));
|
||||
if(sic_cmd == SIC_CMD_READY)
|
||||
return _TRUE;
|
||||
return true;
|
||||
else
|
||||
{
|
||||
rtw_msleep_os(1);
|
||||
|
@ -253,7 +253,7 @@ SIC_SetBBReg(
|
|||
|
||||
//RTPRINT(FPHY, PHY_SICW, ("[SIC], SIC_SetBBReg() start\n"));
|
||||
/*
|
||||
while(PlatformAtomicExchange(&pHalData->bChangeBBInProgress, _TRUE) == _TRUE)
|
||||
while(PlatformAtomicExchange(&pHalData->bChangeBBInProgress, true) == true)
|
||||
{
|
||||
BBWaitCounter ++;
|
||||
delay_ms(10); // 1 ms
|
||||
|
@ -280,7 +280,7 @@ SIC_SetBBReg(
|
|||
|
||||
sic_Write4Byte(Adapter, RegAddr, Data);
|
||||
|
||||
//PlatformAtomicExchange(&pHalData->bChangeBBInProgress, _FALSE);
|
||||
//PlatformAtomicExchange(&pHalData->bChangeBBInProgress, false);
|
||||
//RTPRINT(FPHY, PHY_SICW, ("[SIC], SIC_SetBBReg() end\n"));
|
||||
}
|
||||
|
||||
|
@ -298,7 +298,7 @@ SIC_QueryBBReg(
|
|||
//RTPRINT(FPHY, PHY_SICR, ("[SIC], SIC_QueryBBReg() start\n"));
|
||||
|
||||
/*
|
||||
while(PlatformAtomicExchange(&pHalData->bChangeBBInProgress, _TRUE) == _TRUE)
|
||||
while(PlatformAtomicExchange(&pHalData->bChangeBBInProgress, true) == true)
|
||||
{
|
||||
BBWaitCounter ++;
|
||||
delay_ms(10); // 10 ms
|
||||
|
@ -318,7 +318,7 @@ SIC_QueryBBReg(
|
|||
//RTPRINT(FPHY, PHY_SICR, ("[SIC], SIC_QueryBBReg(), 0x%x=0x%x\n", RegAddr, OriginalValue));
|
||||
//RTPRINT(FPHY, PHY_SICR, ("[SIC], SIC_QueryBBReg() end\n"));
|
||||
|
||||
//PlatformAtomicExchange(&pHalData->bChangeBBInProgress, _FALSE);
|
||||
//PlatformAtomicExchange(&pHalData->bChangeBBInProgress, false);
|
||||
return (ReturnValue);
|
||||
}
|
||||
|
||||
|
@ -355,7 +355,7 @@ SIC_LedOff(
|
|||
{
|
||||
// When SIC is enabled, led pin will be used as debug pin,
|
||||
// so don't execute led function when SIC is enabled.
|
||||
return _TRUE;
|
||||
return true;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
@ -1453,7 +1453,7 @@ phy_BB8188E_Config_ParaFile(
|
|||
//
|
||||
// 2. If EEPROM or EFUSE autoload OK, We must config by PHY_REG_PG.txt
|
||||
//
|
||||
if (pEEPROM->bautoload_fail_flag == _FALSE)
|
||||
if (pEEPROM->bautoload_fail_flag == false)
|
||||
{
|
||||
pHalData->pwrGroupCnt = 0;
|
||||
|
||||
|
@ -2279,7 +2279,7 @@ PHY_UpdateTxPowerDbm8188E(
|
|||
|
||||
//Adapter->HalFunc.SetTxPowerLevelHandler(Adapter, pHalData->CurrentChannel);//gtest:todo
|
||||
|
||||
return _TRUE;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
|
@ -2346,7 +2346,7 @@ _PHY_SetBWMode92C(
|
|||
|
||||
if(pHalData->rf_chip == RF_PSEUDO_11N)
|
||||
{
|
||||
//pHalData->SetBWModeInProgress= _FALSE;
|
||||
//pHalData->SetBWModeInProgress= false;
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -2588,10 +2588,10 @@ PHY_SwChnl8188E( // Call after initialization
|
|||
IN u8 channel
|
||||
)
|
||||
{
|
||||
//struct adapter *Adapter = ADJUST_TO_ADAPTIVE_ADAPTER(pAdapter, _TRUE);
|
||||
//struct adapter *Adapter = ADJUST_TO_ADAPTIVE_ADAPTER(pAdapter, true);
|
||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
||||
u8 tmpchannel = pHalData->CurrentChannel;
|
||||
BOOLEAN bResult = _TRUE;
|
||||
BOOLEAN bResult = true;
|
||||
|
||||
if(pHalData->rf_chip == RF_PSEUDO_11N)
|
||||
{
|
||||
|
@ -2678,7 +2678,7 @@ phy_SwChnlStepByStep(
|
|||
OUT u32 *delay
|
||||
)
|
||||
{
|
||||
return _TRUE;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
|
@ -2698,14 +2698,14 @@ phy_SetSwChnlCmdArray(
|
|||
if(CmdTable == NULL)
|
||||
{
|
||||
//RT_ASSERT(FALSE, ("phy_SetSwChnlCmdArray(): CmdTable cannot be NULL.\n"));
|
||||
return _FALSE;
|
||||
return false;
|
||||
}
|
||||
if(CmdTableIdx >= CmdTableSz)
|
||||
{
|
||||
//RT_ASSERT(FALSE,
|
||||
// ("phy_SetSwChnlCmdArray(): Access invalid index, please check size of the table, CmdTableIdx:%ld, CmdTableSz:%ld\n",
|
||||
// CmdTableIdx, CmdTableSz));
|
||||
return _FALSE;
|
||||
return false;
|
||||
}
|
||||
|
||||
pCmd = CmdTable + CmdTableIdx;
|
||||
|
@ -2714,7 +2714,7 @@ phy_SetSwChnlCmdArray(
|
|||
pCmd->Para2 = Para2;
|
||||
pCmd->msDelay = msDelay;
|
||||
|
||||
return _TRUE;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
|
@ -2812,7 +2812,7 @@ PHY_CheckIsLegalRfPath8192C(
|
|||
IN struct adapter *pAdapter,
|
||||
IN u32 eRFPath)
|
||||
{
|
||||
BOOLEAN rtValue = _TRUE;
|
||||
BOOLEAN rtValue = true;
|
||||
|
||||
// NOt check RF Path now.!
|
||||
return rtValue;
|
||||
|
@ -2861,7 +2861,7 @@ static BOOLEAN _PHY_QueryRFPathSwitch(
|
|||
)
|
||||
{
|
||||
// if(is2T)
|
||||
// return _TRUE;
|
||||
// return true;
|
||||
|
||||
if(!pAdapter->hw_init_completed)
|
||||
{
|
||||
|
@ -2872,16 +2872,16 @@ static BOOLEAN _PHY_QueryRFPathSwitch(
|
|||
if(is2T)
|
||||
{
|
||||
if(PHY_QueryBBReg(pAdapter, rFPGA0_XB_RFInterfaceOE, BIT5|BIT6) == 0x01)
|
||||
return _TRUE;
|
||||
return true;
|
||||
else
|
||||
return _FALSE;
|
||||
return false;
|
||||
}
|
||||
else
|
||||
{
|
||||
if(PHY_QueryBBReg(pAdapter, rFPGA0_XA_RFInterfaceOE, 0x300) == 0x02)
|
||||
return _TRUE;
|
||||
return true;
|
||||
else
|
||||
return _FALSE;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -169,12 +169,12 @@ rtl8188e_PHY_RF6052SetCckTxPower(
|
|||
struct mlme_ext_priv *pmlmeext = &Adapter->mlmeextpriv;
|
||||
//PMGNT_INFO pMgntInfo=&Adapter->MgntInfo;
|
||||
u32 TxAGC[2]={0, 0}, tmpval=0,pwrtrac_value;
|
||||
BOOLEAN TurboScanOff = _FALSE;
|
||||
BOOLEAN TurboScanOff = false;
|
||||
u8 idx1, idx2;
|
||||
u8* ptr;
|
||||
u8 direction;
|
||||
//FOR CE ,must disable turbo scan
|
||||
TurboScanOff = _TRUE;
|
||||
TurboScanOff = true;
|
||||
|
||||
|
||||
if(pmlmeext->sitesurvey_res.state == SCAN_PROCESS)
|
||||
|
@ -182,7 +182,7 @@ rtl8188e_PHY_RF6052SetCckTxPower(
|
|||
TxAGC[RF_PATH_A] = 0x3f3f3f3f;
|
||||
TxAGC[RF_PATH_B] = 0x3f3f3f3f;
|
||||
|
||||
TurboScanOff = _TRUE;//disable turbo scan
|
||||
TurboScanOff = true;//disable turbo scan
|
||||
|
||||
if(TurboScanOff)
|
||||
{
|
||||
|
@ -834,7 +834,7 @@ PHY_RFShadowWrite(
|
|||
IN u32 Data)
|
||||
{
|
||||
RF_Shadow[eRFPath][Offset].Value = (Data & bRFRegOffsetMask);
|
||||
RF_Shadow[eRFPath][Offset].Driver_Write = _TRUE;
|
||||
RF_Shadow[eRFPath][Offset].Driver_Write = true;
|
||||
|
||||
} /* PHY_RFShadowWrite */
|
||||
|
||||
|
@ -847,21 +847,21 @@ PHY_RFShadowCompare(
|
|||
{
|
||||
u32 reg;
|
||||
// Check if we need to check the register
|
||||
if (RF_Shadow[eRFPath][Offset].Compare == _TRUE)
|
||||
if (RF_Shadow[eRFPath][Offset].Compare == true)
|
||||
{
|
||||
reg = PHY_QueryRFReg(Adapter, eRFPath, Offset, bRFRegOffsetMask);
|
||||
// Compare shadow and real rf register for 20bits!!
|
||||
if (RF_Shadow[eRFPath][Offset].Value != reg)
|
||||
{
|
||||
// Locate error position.
|
||||
RF_Shadow[eRFPath][Offset].ErrorOrNot = _TRUE;
|
||||
RF_Shadow[eRFPath][Offset].ErrorOrNot = true;
|
||||
//RT_TRACE(COMP_INIT, DBG_LOUD,
|
||||
//("PHY_RFShadowCompare RF-%d Addr%02lx Err = %05lx\n",
|
||||
//eRFPath, Offset, reg));
|
||||
}
|
||||
return RF_Shadow[eRFPath][Offset].ErrorOrNot ;
|
||||
}
|
||||
return _FALSE;
|
||||
return false;
|
||||
} /* PHY_RFShadowCompare */
|
||||
|
||||
|
||||
|
@ -872,10 +872,10 @@ PHY_RFShadowRecorver(
|
|||
IN u32 Offset)
|
||||
{
|
||||
// Check if the address is error
|
||||
if (RF_Shadow[eRFPath][Offset].ErrorOrNot == _TRUE)
|
||||
if (RF_Shadow[eRFPath][Offset].ErrorOrNot == true)
|
||||
{
|
||||
// Check if we need to recorver the register.
|
||||
if (RF_Shadow[eRFPath][Offset].Recorver == _TRUE)
|
||||
if (RF_Shadow[eRFPath][Offset].Recorver == true)
|
||||
{
|
||||
PHY_SetRFReg(Adapter, eRFPath, Offset, bRFRegOffsetMask,
|
||||
RF_Shadow[eRFPath][Offset].Value);
|
||||
|
@ -963,9 +963,9 @@ PHY_RFShadowCompareFlagSetAll(
|
|||
{
|
||||
// 2008/11/20 MH For S3S4 test, we only check reg 26/27 now!!!!
|
||||
if (Offset != 0x26 && Offset != 0x27)
|
||||
PHY_RFShadowCompareFlagSet(Adapter, (RF_RADIO_PATH_E)eRFPath, Offset, _FALSE);
|
||||
PHY_RFShadowCompareFlagSet(Adapter, (RF_RADIO_PATH_E)eRFPath, Offset, false);
|
||||
else
|
||||
PHY_RFShadowCompareFlagSet(Adapter, (RF_RADIO_PATH_E)eRFPath, Offset, _TRUE);
|
||||
PHY_RFShadowCompareFlagSet(Adapter, (RF_RADIO_PATH_E)eRFPath, Offset, true);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -985,9 +985,9 @@ PHY_RFShadowRecorverFlagSetAll(
|
|||
{
|
||||
// 2008/11/20 MH For S3S4 test, we only check reg 26/27 now!!!!
|
||||
if (Offset != 0x26 && Offset != 0x27)
|
||||
PHY_RFShadowRecorverFlagSet(Adapter, (RF_RADIO_PATH_E)eRFPath, Offset, _FALSE);
|
||||
PHY_RFShadowRecorverFlagSet(Adapter, (RF_RADIO_PATH_E)eRFPath, Offset, false);
|
||||
else
|
||||
PHY_RFShadowRecorverFlagSet(Adapter, (RF_RADIO_PATH_E)eRFPath, Offset, _TRUE);
|
||||
PHY_RFShadowRecorverFlagSet(Adapter, (RF_RADIO_PATH_E)eRFPath, Offset, true);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1005,10 +1005,10 @@ PHY_RFShadowRefresh(
|
|||
for (Offset = 0; Offset <= RF6052_MAX_REG; Offset++)
|
||||
{
|
||||
RF_Shadow[eRFPath][Offset].Value = 0;
|
||||
RF_Shadow[eRFPath][Offset].Compare = _FALSE;
|
||||
RF_Shadow[eRFPath][Offset].Recorver = _FALSE;
|
||||
RF_Shadow[eRFPath][Offset].ErrorOrNot = _FALSE;
|
||||
RF_Shadow[eRFPath][Offset].Driver_Write = _FALSE;
|
||||
RF_Shadow[eRFPath][Offset].Compare = false;
|
||||
RF_Shadow[eRFPath][Offset].Recorver = false;
|
||||
RF_Shadow[eRFPath][Offset].ErrorOrNot = false;
|
||||
RF_Shadow[eRFPath][Offset].Driver_Write = false;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -278,9 +278,9 @@ void update_recvframe_phyinfo_88e(
|
|||
struct sta_info *psta;
|
||||
//_irqL irqL;
|
||||
|
||||
pkt_info.bPacketMatchBSSID =_FALSE;
|
||||
pkt_info.bPacketToSelf = _FALSE;
|
||||
pkt_info.bPacketBeacon = _FALSE;
|
||||
pkt_info.bPacketMatchBSSID =false;
|
||||
pkt_info.bPacketToSelf = false;
|
||||
pkt_info.bPacketBeacon = false;
|
||||
|
||||
wlanhdr = get_recvframe_data(precvframe);
|
||||
|
||||
|
@ -293,7 +293,7 @@ void update_recvframe_phyinfo_88e(
|
|||
pkt_info.bPacketBeacon = pkt_info.bPacketMatchBSSID && (GetFrameSubType(wlanhdr) == WIFI_BEACON);
|
||||
|
||||
if(pkt_info.bPacketBeacon){
|
||||
if(check_fwstate(&padapter->mlmepriv, WIFI_STATION_STATE) == _TRUE){
|
||||
if(check_fwstate(&padapter->mlmepriv, WIFI_STATION_STATE) == true){
|
||||
sa = padapter->mlmepriv.cur_network.network.MacAddress;
|
||||
}
|
||||
else
|
||||
|
@ -319,7 +319,7 @@ void update_recvframe_phyinfo_88e(
|
|||
|
||||
precvframe->u.hdr.psta = NULL;
|
||||
if (pkt_info.bPacketMatchBSSID &&
|
||||
(check_fwstate(&padapter->mlmepriv, WIFI_AP_STATE) == _TRUE))
|
||||
(check_fwstate(&padapter->mlmepriv, WIFI_AP_STATE) == true))
|
||||
{
|
||||
if (psta)
|
||||
{
|
||||
|
@ -330,7 +330,7 @@ void update_recvframe_phyinfo_88e(
|
|||
}
|
||||
else if (pkt_info.bPacketToSelf || pkt_info.bPacketBeacon)
|
||||
{
|
||||
if (check_fwstate(&padapter->mlmepriv, WIFI_ADHOC_STATE|WIFI_ADHOC_MASTER_STATE) == _TRUE)
|
||||
if (check_fwstate(&padapter->mlmepriv, WIFI_ADHOC_STATE|WIFI_ADHOC_MASTER_STATE) == true)
|
||||
{
|
||||
if (psta)
|
||||
{
|
||||
|
|
|
@ -66,19 +66,19 @@ void handle_txrpt_ccx_88e(struct adapter *adapter, u8 *buf)
|
|||
void _dbg_dump_tx_info(struct adapter *padapter,int frame_tag,struct tx_desc *ptxdesc)
|
||||
{
|
||||
u8 bDumpTxPkt;
|
||||
u8 bDumpTxDesc = _FALSE;
|
||||
u8 bDumpTxDesc = false;
|
||||
rtw_hal_get_def_var(padapter, HAL_DEF_DBG_DUMP_TXPKT, &(bDumpTxPkt));
|
||||
|
||||
if(bDumpTxPkt ==1){//dump txdesc for data frame
|
||||
DBG_871X("dump tx_desc for data frame\n");
|
||||
if((frame_tag&0x0f) == DATA_FRAMETAG){
|
||||
bDumpTxDesc = _TRUE;
|
||||
bDumpTxDesc = true;
|
||||
}
|
||||
}
|
||||
else if(bDumpTxPkt ==2){//dump txdesc for mgnt frame
|
||||
DBG_871X("dump tx_desc for mgnt frame\n");
|
||||
if((frame_tag&0x0f) == MGNT_FRAMETAG){
|
||||
bDumpTxDesc = _TRUE;
|
||||
bDumpTxDesc = true;
|
||||
}
|
||||
}
|
||||
else if(bDumpTxPkt ==3){//dump early info
|
||||
|
|
|
@ -50,7 +50,7 @@ SwLedOn(
|
|||
u8 LedCfg;
|
||||
//HAL_DATA_TYPE *pHalData = GET_HAL_DATA(padapter);
|
||||
|
||||
if( (padapter->bSurpriseRemoved == _TRUE) || ( padapter->bDriverStopped == _TRUE))
|
||||
if( (padapter->bSurpriseRemoved == true) || ( padapter->bDriverStopped == true))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
@ -70,7 +70,7 @@ SwLedOn(
|
|||
break;
|
||||
}
|
||||
|
||||
pLed->bLedOn = _TRUE;
|
||||
pLed->bLedOn = true;
|
||||
}
|
||||
|
||||
|
||||
|
@ -87,7 +87,7 @@ SwLedOff(
|
|||
u8 LedCfg;
|
||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(padapter);
|
||||
|
||||
if((padapter->bSurpriseRemoved == _TRUE) || ( padapter->bDriverStopped == _TRUE))
|
||||
if((padapter->bSurpriseRemoved == true) || ( padapter->bDriverStopped == true))
|
||||
{
|
||||
goto exit;
|
||||
}
|
||||
|
@ -98,7 +98,7 @@ SwLedOff(
|
|||
switch(pLed->LedPin)
|
||||
{
|
||||
case LED_PIN_LED0:
|
||||
if(pHalData->bLedOpenDrain == _TRUE) // Open-drain arrangement for controlling the LED)
|
||||
if(pHalData->bLedOpenDrain == true) // Open-drain arrangement for controlling the LED)
|
||||
{
|
||||
LedCfg &= 0x90; // Set to software control.
|
||||
rtw_write8(padapter, REG_LEDCFG2, (LedCfg|BIT3));
|
||||
|
@ -121,7 +121,7 @@ SwLedOff(
|
|||
break;
|
||||
}
|
||||
exit:
|
||||
pLed->bLedOn = _FALSE;
|
||||
pLed->bLedOn = false;
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -113,7 +113,7 @@ void rtl8188e_fill_fake_txdesc(
|
|||
ptxdesc->txdw3 |= cpu_to_le32((8 <<28)); //set bit3 to 1. Suugested by TimChen. 2009.12.29.
|
||||
}
|
||||
|
||||
if (_TRUE == IsBTQosNull)
|
||||
if (true == IsBTQosNull)
|
||||
{
|
||||
ptxdesc->txdw2 |= cpu_to_le32(BIT(23)); // BT NULL
|
||||
}
|
||||
|
@ -243,7 +243,7 @@ static s32 update_txdesc(struct xmit_frame *pxmitframe, u8 *pmem, s32 sz ,u8 bag
|
|||
if (padapter->registrypriv.mp_mode == 0)
|
||||
{
|
||||
if((!bagg_pkt) &&(urb_zero_packet_chk(padapter, sz)==0))//(sz %512) != 0
|
||||
//if((!bagg_pkt) &&(rtw_usb_bulk_size_boundary(padapter,TXDESC_SIZE+sz)==_FALSE))
|
||||
//if((!bagg_pkt) &&(rtw_usb_bulk_size_boundary(padapter,TXDESC_SIZE+sz)==false))
|
||||
{
|
||||
ptxdesc = (struct tx_desc *)(pmem+PACKET_OFFSET_SZ);
|
||||
//DBG_8192C("==> non-agg-pkt,shift pointer...\n");
|
||||
|
@ -305,7 +305,7 @@ if (padapter->registrypriv.mp_mode == 0)
|
|||
|
||||
fill_txdesc_sectype(pattrib, ptxdesc);
|
||||
|
||||
if(pattrib->ampdu_en==_TRUE){
|
||||
if(pattrib->ampdu_en==true){
|
||||
ptxdesc->txdw2 |= cpu_to_le32(AGG_EN);//AGG EN
|
||||
|
||||
//SET_TX_DESC_MAX_AGG_NUM_88E(pDesc, 0x1F);
|
||||
|
@ -446,13 +446,13 @@ if (padapter->registrypriv.mp_mode == 0)
|
|||
|
||||
//offset 20
|
||||
ptxdesc->txdw5 |= cpu_to_le32(RTY_LMT_EN);//retry limit enable
|
||||
if(pattrib->retry_ctrl == _TRUE)
|
||||
if(pattrib->retry_ctrl == true)
|
||||
ptxdesc->txdw5 |= cpu_to_le32(0x00180000);//retry limit = 6
|
||||
else
|
||||
ptxdesc->txdw5 |= cpu_to_le32(0x00300000);//retry limit = 12
|
||||
|
||||
#ifdef CONFIG_INTEL_PROXIM
|
||||
if((padapter->proximity.proxim_on==_TRUE)&&(pattrib->intel_proxim==_TRUE)){
|
||||
if((padapter->proximity.proxim_on==true)&&(pattrib->intel_proxim==true)){
|
||||
DBG_871X("\n %s pattrib->rate=%d\n",__FUNCTION__,pattrib->rate);
|
||||
ptxdesc->txdw5 |= cpu_to_le32( pattrib->rate);
|
||||
}
|
||||
|
@ -540,7 +540,7 @@ s32 rtl8188eu_xmit_buf_handler(struct adapter *padapter)
|
|||
return _FAIL;
|
||||
}
|
||||
|
||||
ret = (padapter->bDriverStopped == _TRUE) || (padapter->bSurpriseRemoved == _TRUE);
|
||||
ret = (padapter->bDriverStopped == true) || (padapter->bSurpriseRemoved == true);
|
||||
if (ret) {
|
||||
RT_TRACE(_module_hal_xmit_c_, _drv_notice_,
|
||||
("%s: bDriverStopped(%d) bSurpriseRemoved(%d)!\n",
|
||||
|
@ -548,7 +548,7 @@ s32 rtl8188eu_xmit_buf_handler(struct adapter *padapter)
|
|||
return _FAIL;
|
||||
}
|
||||
|
||||
if(check_pending_xmitbuf(pxmitpriv) == _FALSE)
|
||||
if(check_pending_xmitbuf(pxmitpriv) == false)
|
||||
return _SUCCESS;
|
||||
|
||||
#ifdef CONFIG_LPS_LCLK
|
||||
|
@ -622,7 +622,7 @@ static s32 rtw_dump_xframe(struct adapter *padapter, struct xmit_frame *pxmitfra
|
|||
sz = pattrib->last_txcmdsz;
|
||||
}
|
||||
|
||||
pull = update_txdesc(pxmitframe, mem_addr, sz, _FALSE);
|
||||
pull = update_txdesc(pxmitframe, mem_addr, sz, false);
|
||||
|
||||
if(pull)
|
||||
{
|
||||
|
@ -726,7 +726,7 @@ s32 rtl8188eu_xmitframe_complete(struct adapter *padapter, struct xmit_priv *pxm
|
|||
pxmitbuf = rtw_alloc_xmitbuf(pxmitpriv);
|
||||
if (pxmitbuf == NULL){
|
||||
//DBG_871X("%s #1, connot alloc xmitbuf!!!! \n",__FUNCTION__);
|
||||
return _FALSE;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -740,7 +740,7 @@ s32 rtl8188eu_xmitframe_complete(struct adapter *padapter, struct xmit_priv *pxm
|
|||
// no more xmit frame, release xmit buffer
|
||||
//DBG_8192C("no more xmit frame ,return\n");
|
||||
rtw_free_xmitbuf(pxmitpriv, pxmitbuf);
|
||||
return _FALSE;
|
||||
return false;
|
||||
}
|
||||
|
||||
#ifndef IDEA_CONDITION
|
||||
|
@ -774,7 +774,7 @@ s32 rtl8188eu_xmitframe_complete(struct adapter *padapter, struct xmit_priv *pxm
|
|||
pxmitframe->pkt_offset = 1; // first frame of aggregation, reserve offset
|
||||
#endif
|
||||
|
||||
if (rtw_xmitframe_coalesce(padapter, pxmitframe->pkt, pxmitframe) == _FALSE) {
|
||||
if (rtw_xmitframe_coalesce(padapter, pxmitframe->pkt, pxmitframe) == false) {
|
||||
DBG_871X("%s coalesce 1st xmitframe failed \n",__FUNCTION__);
|
||||
continue;
|
||||
}
|
||||
|
@ -848,7 +848,7 @@ s32 rtl8188eu_xmitframe_complete(struct adapter *padapter, struct xmit_priv *pxm
|
|||
xmitframe_phead = get_list_head(&ptxservq->sta_pending);
|
||||
xmitframe_plist = get_next(xmitframe_phead);
|
||||
|
||||
while (rtw_end_of_queue_search(xmitframe_phead, xmitframe_plist) == _FALSE)
|
||||
while (rtw_end_of_queue_search(xmitframe_phead, xmitframe_plist) == false)
|
||||
{
|
||||
pxmitframe = LIST_CONTAINOR(xmitframe_plist, struct xmit_frame, list);
|
||||
xmitframe_plist = get_next(xmitframe_plist);
|
||||
|
@ -898,7 +898,7 @@ s32 rtl8188eu_xmitframe_complete(struct adapter *padapter, struct xmit_priv *pxm
|
|||
// pxmitframe->pxmitbuf = pxmitbuf;
|
||||
pxmitframe->buf_addr = pxmitbuf->pbuf + pbuf;
|
||||
|
||||
if (rtw_xmitframe_coalesce(padapter, pxmitframe->pkt, pxmitframe) == _FALSE) {
|
||||
if (rtw_xmitframe_coalesce(padapter, pxmitframe->pkt, pxmitframe) == false) {
|
||||
DBG_871X("%s coalesce failed \n",__FUNCTION__);
|
||||
rtw_free_xmitframe(pxmitpriv, pxmitframe);
|
||||
continue;
|
||||
|
@ -909,7 +909,7 @@ s32 rtl8188eu_xmitframe_complete(struct adapter *padapter, struct xmit_priv *pxm
|
|||
rtw_os_xmit_complete(padapter, pxmitframe);
|
||||
|
||||
// (len - TXDESC_SIZE) == pxmitframe->attrib.last_txcmdsz
|
||||
update_txdesc(pxmitframe, pxmitframe->buf_addr, pxmitframe->attrib.last_txcmdsz,_TRUE);
|
||||
update_txdesc(pxmitframe, pxmitframe->buf_addr, pxmitframe->attrib.last_txcmdsz,true);
|
||||
|
||||
// don't need xmitframe any more
|
||||
rtw_free_xmitframe(pxmitpriv, pxmitframe);
|
||||
|
@ -938,7 +938,7 @@ s32 rtl8188eu_xmitframe_complete(struct adapter *padapter, struct xmit_priv *pxm
|
|||
}//end while( aggregate same priority and same DA(AP or STA) frames)
|
||||
|
||||
|
||||
if (_rtw_queue_empty(&ptxservq->sta_pending) == _TRUE)
|
||||
if (_rtw_queue_empty(&ptxservq->sta_pending) == true)
|
||||
rtw_list_delete(&ptxservq->tx_pending);
|
||||
|
||||
_exit_critical_bh(&pxmitpriv->lock, &irqL);
|
||||
|
@ -962,7 +962,7 @@ s32 rtl8188eu_xmitframe_complete(struct adapter *padapter, struct xmit_priv *pxm
|
|||
}
|
||||
#endif // CONFIG_USE_USB_BUFFER_ALLOC_TX
|
||||
|
||||
update_txdesc(pfirstframe, pfirstframe->buf_addr, pfirstframe->attrib.last_txcmdsz,_TRUE);
|
||||
update_txdesc(pfirstframe, pfirstframe->buf_addr, pfirstframe->attrib.last_txcmdsz,true);
|
||||
|
||||
#ifdef CONFIG_TX_EARLY_MODE
|
||||
//prepare EM info for first frame, agg_num value start from 1
|
||||
|
@ -988,7 +988,7 @@ s32 rtl8188eu_xmitframe_complete(struct adapter *padapter, struct xmit_priv *pxm
|
|||
|
||||
rtw_free_xmitframe(pxmitpriv, pfirstframe);
|
||||
|
||||
return _TRUE;
|
||||
return true;
|
||||
}
|
||||
|
||||
#else
|
||||
|
@ -1011,7 +1011,7 @@ s32 rtl8188eu_xmitframe_complete(struct adapter *padapter, struct xmit_priv *pxm
|
|||
pxmitbuf = rtw_alloc_xmitbuf(pxmitpriv);
|
||||
if(!pxmitbuf)
|
||||
{
|
||||
return _FALSE;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1058,14 +1058,14 @@ s32 rtl8188eu_xmitframe_complete(struct adapter *padapter, struct xmit_priv *pxm
|
|||
else
|
||||
{
|
||||
rtw_free_xmitbuf(pxmitpriv, pxmitbuf);
|
||||
return _FALSE;
|
||||
return false;
|
||||
}
|
||||
|
||||
break;
|
||||
|
||||
}while(0/*xcnt < (NR_XMITFRAME >> 3)*/);
|
||||
|
||||
return _TRUE;
|
||||
return true;
|
||||
|
||||
}
|
||||
#endif
|
||||
|
@ -1090,8 +1090,8 @@ static s32 xmitframe_direct(struct adapter *padapter, struct xmit_frame *pxmitfr
|
|||
|
||||
/*
|
||||
* Return
|
||||
* _TRUE dump packet directly
|
||||
* _FALSE enqueue packet
|
||||
* true dump packet directly
|
||||
* false enqueue packet
|
||||
*/
|
||||
static s32 pre_xmitframe(struct adapter *padapter, struct xmit_frame *pxmitframe)
|
||||
{
|
||||
|
@ -1117,11 +1117,11 @@ static s32 pre_xmitframe(struct adapter *padapter, struct xmit_frame *pxmitframe
|
|||
}
|
||||
|
||||
|
||||
if (check_fwstate(pmlmepriv, _FW_UNDER_SURVEY|_FW_UNDER_LINKING) == _TRUE)
|
||||
if (check_fwstate(pmlmepriv, _FW_UNDER_SURVEY|_FW_UNDER_LINKING) == true)
|
||||
goto enqueue;
|
||||
|
||||
#ifdef CONFIG_CONCURRENT_MODE
|
||||
if (check_fwstate(pbuddy_mlmepriv, _FW_UNDER_SURVEY|_FW_UNDER_LINKING) == _TRUE)
|
||||
if (check_fwstate(pbuddy_mlmepriv, _FW_UNDER_SURVEY|_FW_UNDER_LINKING) == true)
|
||||
goto enqueue;
|
||||
#endif
|
||||
|
||||
|
@ -1140,7 +1140,7 @@ static s32 pre_xmitframe(struct adapter *padapter, struct xmit_frame *pxmitframe
|
|||
rtw_free_xmitframe(pxmitpriv, pxmitframe);
|
||||
}
|
||||
|
||||
return _TRUE;
|
||||
return true;
|
||||
|
||||
enqueue:
|
||||
res = rtw_xmitframe_enqueue(padapter, pxmitframe);
|
||||
|
@ -1153,10 +1153,10 @@ enqueue:
|
|||
// Trick, make the statistics correct
|
||||
pxmitpriv->tx_pkts--;
|
||||
pxmitpriv->tx_drop++;
|
||||
return _TRUE;
|
||||
return true;
|
||||
}
|
||||
|
||||
return _FALSE;
|
||||
return false;
|
||||
}
|
||||
|
||||
s32 rtl8188eu_mgnt_xmit(struct adapter *padapter, struct xmit_frame *pmgntframe)
|
||||
|
@ -1166,8 +1166,8 @@ s32 rtl8188eu_mgnt_xmit(struct adapter *padapter, struct xmit_frame *pmgntframe)
|
|||
|
||||
/*
|
||||
* Return
|
||||
* _TRUE dump packet directly ok
|
||||
* _FALSE temporary can't transmit packets to hardware
|
||||
* true dump packet directly ok
|
||||
* false temporary can't transmit packets to hardware
|
||||
*/
|
||||
s32 rtl8188eu_hal_xmit(struct adapter *padapter, struct xmit_frame *pxmitframe)
|
||||
{
|
||||
|
|
|
@ -87,7 +87,7 @@ static BOOLEAN HalUsbSetQueuePipeMapping8188EUsb(
|
|||
)
|
||||
{
|
||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(pAdapter);
|
||||
BOOLEAN result = _FALSE;
|
||||
BOOLEAN result = false;
|
||||
|
||||
_ConfigNormalChipOutEP_8188E(pAdapter, NumOutPipe);
|
||||
|
||||
|
@ -114,7 +114,7 @@ void rtl8188eu_interface_configure(struct adapter *padapter)
|
|||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(padapter);
|
||||
struct dvobj_priv *pdvobjpriv = adapter_to_dvobj(padapter);
|
||||
|
||||
if (pdvobjpriv->ishighspeed == _TRUE)
|
||||
if (pdvobjpriv->ishighspeed == true)
|
||||
{
|
||||
pHalData->UsbBulkOutSize = USB_HIGH_SPEED_BULK_SIZE;//512 bytes
|
||||
}
|
||||
|
@ -146,11 +146,11 @@ void rtl8188eu_interface_configure(struct adapter *padapter)
|
|||
static u32 InitPowerOn_rtl8188eu(struct adapter *padapter)
|
||||
{
|
||||
u16 value16;
|
||||
u8 bMacPwrCtrlOn=_FALSE;
|
||||
u8 bMacPwrCtrlOn=false;
|
||||
// HW Power on sequence
|
||||
|
||||
rtw_hal_get_hwreg(padapter, HW_VAR_APFM_ON_MAC, &bMacPwrCtrlOn);
|
||||
if(bMacPwrCtrlOn == _TRUE)
|
||||
if(bMacPwrCtrlOn == true)
|
||||
return _SUCCESS;
|
||||
|
||||
if(!HalPwrSeqCmdParsing(padapter, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, PWR_INTF_USB_MSK, Rtl8188E_NIC_PWR_ON_FLOW))
|
||||
|
@ -172,7 +172,7 @@ static u32 InitPowerOn_rtl8188eu(struct adapter *padapter)
|
|||
|
||||
rtw_write16(padapter, REG_CR, value16);
|
||||
|
||||
bMacPwrCtrlOn = _TRUE;
|
||||
bMacPwrCtrlOn = true;
|
||||
rtw_hal_set_hwreg(padapter, HW_VAR_APFM_ON_MAC, &bMacPwrCtrlOn);
|
||||
|
||||
return _SUCCESS;
|
||||
|
@ -854,7 +854,7 @@ usb_AggSettingTxUpdate(
|
|||
u32 value32;
|
||||
|
||||
if(Adapter->registrypriv.wifi_spec)
|
||||
pHalData->UsbTxAggMode = _FALSE;
|
||||
pHalData->UsbTxAggMode = false;
|
||||
|
||||
if(pHalData->UsbTxAggMode){
|
||||
value32 = rtw_read32(Adapter, REG_TDECTRL);
|
||||
|
@ -983,7 +983,7 @@ InitUsbAggregationSetting(
|
|||
usb_AggSettingRxUpdate(Adapter);
|
||||
|
||||
// 201/12/10 MH Add for USB agg mode dynamic switch.
|
||||
pHalData->UsbRxHighSpeedMode = _FALSE;
|
||||
pHalData->UsbRxHighSpeedMode = false;
|
||||
}
|
||||
void
|
||||
HalRxAggr8188EUsb(
|
||||
|
@ -1068,7 +1068,7 @@ _InitRFType(
|
|||
|
||||
pHalData->rf_chip = RF_6052;
|
||||
|
||||
if(_FALSE == is92CU){
|
||||
if(false == is92CU){
|
||||
pHalData->rf_type = RF_1T1R;
|
||||
DBG_8192C("Set RF Chip ID to RF_6052 and RF type to 1T1R.\n");
|
||||
return;
|
||||
|
@ -1193,7 +1193,7 @@ HwSuspendModeEnable_88eu(
|
|||
// to disable HW suspend mode for IPS/radio_off.
|
||||
//
|
||||
//RT_TRACE(COMP_RF, DBG_LOUD, ("HwSuspendModeEnable92Cu = %d\n", Type));
|
||||
if (Type == _FALSE)
|
||||
if (Type == false)
|
||||
{
|
||||
reg |= BIT14;
|
||||
//RT_TRACE(COMP_RF, DBG_LOUD, ("REG_GPIO_MUXCFG = %x\n", reg));
|
||||
|
@ -1367,14 +1367,14 @@ HAL_INIT_PROFILE_TAG(HAL_INIT_STAGES_BEGIN);
|
|||
_ps_open_RF(Adapter);
|
||||
|
||||
if(pHalData->odmpriv.RFCalibrateInfo.bIQKInitialized){
|
||||
// PHY_IQCalibrate(padapter, _TRUE);
|
||||
PHY_IQCalibrate_8188E(Adapter,_TRUE);
|
||||
// PHY_IQCalibrate(padapter, true);
|
||||
PHY_IQCalibrate_8188E(Adapter,true);
|
||||
}
|
||||
else
|
||||
{
|
||||
// PHY_IQCalibrate(padapter, _FALSE);
|
||||
PHY_IQCalibrate_8188E(Adapter,_FALSE);
|
||||
pHalData->odmpriv.RFCalibrateInfo.bIQKInitialized = _TRUE;
|
||||
// PHY_IQCalibrate(padapter, false);
|
||||
PHY_IQCalibrate_8188E(Adapter,false);
|
||||
pHalData->odmpriv.RFCalibrateInfo.bIQKInitialized = true;
|
||||
}
|
||||
|
||||
// dm_CheckTXPowerTracking(padapter);
|
||||
|
@ -1397,7 +1397,7 @@ HAL_INIT_PROFILE_TAG(HAL_INIT_STAGES_INIT_PW_ON);
|
|||
pHalData->CurrentChannel = 6;//default set to 6
|
||||
|
||||
|
||||
if(pwrctrlpriv->reg_rfoff == _TRUE){
|
||||
if(pwrctrlpriv->reg_rfoff == true){
|
||||
pwrctrlpriv->rf_pwrstate = rf_off;
|
||||
}
|
||||
|
||||
|
@ -1436,20 +1436,20 @@ HAL_INIT_PROFILE_TAG(HAL_INIT_STAGES_DOWNLOAD_FW);
|
|||
{
|
||||
|
||||
#ifdef CONFIG_WOWLAN
|
||||
status = rtl8188e_FirmwareDownload(Adapter, _FALSE);
|
||||
status = rtl8188e_FirmwareDownload(Adapter, false);
|
||||
#else
|
||||
status = rtl8188e_FirmwareDownload(Adapter);
|
||||
#endif //CONFIG_WOWLAN
|
||||
|
||||
if (status != _SUCCESS) {
|
||||
DBG_871X("%s: Download Firmware failed!!\n", __FUNCTION__);
|
||||
Adapter->bFWReady = _FALSE;
|
||||
pHalData->fw_ractrl = _FALSE;
|
||||
Adapter->bFWReady = false;
|
||||
pHalData->fw_ractrl = false;
|
||||
return status;
|
||||
} else {
|
||||
RT_TRACE(_module_hci_hal_init_c_, _drv_info_, ("Initializepadapter8192CSdio(): Download Firmware Success!!\n"));
|
||||
Adapter->bFWReady = _TRUE;
|
||||
pHalData->fw_ractrl = _FALSE;
|
||||
Adapter->bFWReady = true;
|
||||
pHalData->fw_ractrl = false;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1524,7 +1524,7 @@ HAL_INIT_PROFILE_TAG(HAL_INIT_STAGES_MISC02);
|
|||
InitUsbAggregationSetting(Adapter);
|
||||
_InitOperationMode(Adapter);//todo
|
||||
_InitBeaconParameters(Adapter);
|
||||
_InitBeaconMaxError(Adapter, _TRUE);
|
||||
_InitBeaconMaxError(Adapter, true);
|
||||
|
||||
//
|
||||
// Init CR MACTXEN, MACRXEN after setting RxFF boundary REG_TRXFF_BNDY to patch
|
||||
|
@ -1684,12 +1684,12 @@ HAL_INIT_PROFILE_TAG(HAL_INIT_STAGES_IQK);
|
|||
if(pwrctrlpriv->rf_pwrstate == rf_on)
|
||||
{
|
||||
if(pHalData->odmpriv.RFCalibrateInfo.bIQKInitialized){
|
||||
PHY_IQCalibrate_8188E(Adapter,_TRUE);
|
||||
PHY_IQCalibrate_8188E(Adapter,true);
|
||||
}
|
||||
else
|
||||
{
|
||||
PHY_IQCalibrate_8188E(Adapter,_FALSE);
|
||||
pHalData->odmpriv.RFCalibrateInfo.bIQKInitialized = _TRUE;
|
||||
PHY_IQCalibrate_8188E(Adapter,false);
|
||||
pHalData->odmpriv.RFCalibrateInfo.bIQKInitialized = true;
|
||||
}
|
||||
|
||||
HAL_INIT_PROFILE_TAG(HAL_INIT_STAGES_PW_TRACK);
|
||||
|
@ -1754,10 +1754,10 @@ void hal_poweroff_rtl8188eu(
|
|||
u8 val8;
|
||||
u16 val16;
|
||||
u32 val32;
|
||||
u8 bMacPwrCtrlOn=_FALSE;
|
||||
u8 bMacPwrCtrlOn=false;
|
||||
|
||||
rtw_hal_get_hwreg(Adapter, HW_VAR_APFM_ON_MAC, &bMacPwrCtrlOn);
|
||||
if(bMacPwrCtrlOn == _FALSE)
|
||||
if(bMacPwrCtrlOn == false)
|
||||
return ;
|
||||
|
||||
RT_TRACE(COMP_INIT, DBG_LOUD, ("%s\n",__FUNCTION__));
|
||||
|
@ -1821,9 +1821,9 @@ void hal_poweroff_rtl8188eu(
|
|||
val8 = rtw_read8(Adapter, REG_GPIO_IO_SEL+1);
|
||||
rtw_write8(Adapter, REG_GPIO_IO_SEL+1, val8|0x0F);//Reg0x43
|
||||
rtw_write32(Adapter, REG_BB_PAD_CTRL, 0x00080808);//set LNA ,TRSW,EX_PA Pin to output mode
|
||||
bMacPwrCtrlOn = _FALSE;
|
||||
bMacPwrCtrlOn = false;
|
||||
rtw_hal_set_hwreg(Adapter, HW_VAR_APFM_ON_MAC, &bMacPwrCtrlOn);
|
||||
Adapter->bFWReady = _FALSE;
|
||||
Adapter->bFWReady = false;
|
||||
}
|
||||
|
||||
static void rtl8188eu_hw_power_down(struct adapter *padapter)
|
||||
|
@ -1858,7 +1858,7 @@ u32 rtl8188eu_hal_deinit(struct adapter *Adapter)
|
|||
else
|
||||
#endif
|
||||
{
|
||||
if(Adapter->hw_init_completed == _TRUE){
|
||||
if(Adapter->hw_init_completed == true){
|
||||
hal_poweroff_rtl8188eu(Adapter);
|
||||
|
||||
if((pwrctl->bHWPwrPindetect ) && (pwrctl->bHWPowerdown))
|
||||
|
@ -1898,7 +1898,7 @@ _func_enter_;
|
|||
precvbuf = (struct recv_buf *)precvpriv->precv_buf;
|
||||
for(i=0; i<NR_RECVBUFF; i++)
|
||||
{
|
||||
if(_read_port(pintfhdl, precvpriv->ff_hwaddr, 0, (unsigned char *)precvbuf) == _FALSE )
|
||||
if(_read_port(pintfhdl, precvpriv->ff_hwaddr, 0, (unsigned char *)precvbuf) == false )
|
||||
{
|
||||
RT_TRACE(_module_hci_hal_init_c_,_drv_err_,("usb_rx_init: usb_read_port error \n"));
|
||||
status = _FAIL;
|
||||
|
@ -1917,7 +1917,7 @@ _func_enter_;
|
|||
goto exit;
|
||||
}
|
||||
_read_interrupt = pintfhdl->io_ops._read_interrupt;
|
||||
if(_read_interrupt(pintfhdl, RECV_INT_IN_ADDR) == _FALSE )
|
||||
if(_read_interrupt(pintfhdl, RECV_INT_IN_ADDR) == false )
|
||||
{
|
||||
RT_TRACE(_module_hci_hal_init_c_,_drv_err_,("usb_rx_init: usb_read_interrupt error \n"));
|
||||
status = _FAIL;
|
||||
|
@ -1990,7 +1990,7 @@ _ReadLEDSetting(
|
|||
struct led_priv *pledpriv = &(Adapter->ledpriv);
|
||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
||||
#ifdef CONFIG_SW_LED
|
||||
pledpriv->bRegUseLed = _TRUE;
|
||||
pledpriv->bRegUseLed = true;
|
||||
|
||||
switch(pHalData->CustomerID)
|
||||
{
|
||||
|
@ -1998,7 +1998,7 @@ _ReadLEDSetting(
|
|||
pledpriv->LedStrategy = SW_LED_MODE1;
|
||||
break;
|
||||
}
|
||||
pHalData->bLedOpenDrain = _TRUE;// Support Open-drain arrangement for controlling the LED. Added by Roger, 2009.10.16.
|
||||
pHalData->bLedOpenDrain = true;// Support Open-drain arrangement for controlling the LED. Added by Roger, 2009.10.16.
|
||||
#else // HW LED
|
||||
pledpriv->LedStrategy = HW_LED;
|
||||
#endif //CONFIG_SW_LED
|
||||
|
@ -2149,7 +2149,7 @@ static u32 Hal_readPGDataFromConfigFile(
|
|||
|
||||
fp = filp_open("/system/etc/wifi/wifi_efuse.map", O_RDWR, 0644);
|
||||
if (IS_ERR(fp)) {
|
||||
pEEPROM->bloadfile_fail_flag = _TRUE;
|
||||
pEEPROM->bloadfile_fail_flag = true;
|
||||
DBG_871X("Error, Efuse configure file doesn't exist.\n");
|
||||
return _FAIL;
|
||||
}
|
||||
|
@ -2169,7 +2169,7 @@ static u32 Hal_readPGDataFromConfigFile(
|
|||
|
||||
filp_close(fp, NULL);
|
||||
|
||||
pEEPROM->bloadfile_fail_flag = _FALSE;
|
||||
pEEPROM->bloadfile_fail_flag = false;
|
||||
|
||||
return _SUCCESS;
|
||||
}
|
||||
|
@ -2196,7 +2196,7 @@ Hal_ReadMACAddrFromFile_8188EU(
|
|||
|
||||
fp = filp_open("/data/wifimac.txt", O_RDWR, 0644);
|
||||
if (IS_ERR(fp)) {
|
||||
pEEPROM->bloadmac_fail_flag = _TRUE;
|
||||
pEEPROM->bloadmac_fail_flag = true;
|
||||
DBG_871X("Error, wifi mac address file doesn't exist.\n");
|
||||
} else {
|
||||
fs = get_fs();
|
||||
|
@ -2224,7 +2224,7 @@ Hal_ReadMACAddrFromFile_8188EU(
|
|||
}
|
||||
DBG_871X("\n");
|
||||
set_fs(fs);
|
||||
pEEPROM->bloadmac_fail_flag = _FALSE;
|
||||
pEEPROM->bloadmac_fail_flag = false;
|
||||
filp_close(fp, NULL);
|
||||
}
|
||||
|
||||
|
@ -2289,8 +2289,8 @@ static void _ReadPROMContent(
|
|||
|
||||
/* check system boot selection */
|
||||
eeValue = rtw_read8(Adapter, REG_9346CR);
|
||||
pEEPROM->EepromOrEfuse = (eeValue & BOOT_FROM_EEPROM) ? _TRUE : _FALSE;
|
||||
pEEPROM->bautoload_fail_flag = (eeValue & EEPROM_EN) ? _FALSE : _TRUE;
|
||||
pEEPROM->EepromOrEfuse = (eeValue & BOOT_FROM_EEPROM) ? true : false;
|
||||
pEEPROM->bautoload_fail_flag = (eeValue & EEPROM_EN) ? false : true;
|
||||
|
||||
|
||||
DBG_8192C("Boot from %s, Autoload %s !\n", (pEEPROM->EepromOrEfuse ? "EEPROM" : "EFUSE"),
|
||||
|
@ -2452,11 +2452,11 @@ static void hw_var_set_opmode(struct adapter *Adapter, u8 variable, u8* val)
|
|||
|
||||
#ifdef CONFIG_INTERRUPT_BASED_TXBCN_EARLY_INT
|
||||
rtw_write8(Adapter, REG_DRVERLYINT, 0x05);//restore early int time to 5ms
|
||||
UpdateInterruptMask8188EU(Adapter,_TRUE, 0, IMR_BCNDMAINT0_88E);
|
||||
UpdateInterruptMask8188EU(Adapter,true, 0, IMR_BCNDMAINT0_88E);
|
||||
#endif // CONFIG_INTERRUPT_BASED_TXBCN_EARLY_INT
|
||||
|
||||
#ifdef CONFIG_INTERRUPT_BASED_TXBCN_BCN_OK_ERR
|
||||
UpdateInterruptMask8188EU(Adapter,_TRUE ,0, (IMR_TBDER_88E|IMR_TBDOK_88E));
|
||||
UpdateInterruptMask8188EU(Adapter,true ,0, (IMR_TBDER_88E|IMR_TBDOK_88E));
|
||||
#endif// CONFIG_INTERRUPT_BASED_TXBCN_BCN_OK_ERR
|
||||
|
||||
#endif //CONFIG_INTERRUPT_BASED_TXBCN
|
||||
|
@ -2479,11 +2479,11 @@ static void hw_var_set_opmode(struct adapter *Adapter, u8 variable, u8* val)
|
|||
{
|
||||
#ifdef CONFIG_INTERRUPT_BASED_TXBCN
|
||||
#ifdef CONFIG_INTERRUPT_BASED_TXBCN_EARLY_INT
|
||||
UpdateInterruptMask8188EU(Adapter,_TRUE ,IMR_BCNDMAINT0_88E, 0);
|
||||
UpdateInterruptMask8188EU(Adapter,true ,IMR_BCNDMAINT0_88E, 0);
|
||||
#endif//CONFIG_INTERRUPT_BASED_TXBCN_EARLY_INT
|
||||
|
||||
#ifdef CONFIG_INTERRUPT_BASED_TXBCN_BCN_OK_ERR
|
||||
UpdateInterruptMask8188EU(Adapter,_TRUE ,(IMR_TBDER_88E|IMR_TBDOK_88E), 0);
|
||||
UpdateInterruptMask8188EU(Adapter,true ,(IMR_TBDER_88E|IMR_TBDOK_88E), 0);
|
||||
#endif//CONFIG_INTERRUPT_BASED_TXBCN_BCN_OK_ERR
|
||||
|
||||
#endif //CONFIG_INTERRUPT_BASED_TXBCN
|
||||
|
@ -2535,7 +2535,7 @@ static void hw_var_set_opmode(struct adapter *Adapter, u8 variable, u8* val)
|
|||
#ifdef CONFIG_TSF_RESET_OFFLOAD
|
||||
// Reset TSF for STA+AP concurrent mode
|
||||
if ( check_buddy_fwstate(Adapter, (WIFI_STATION_STATE|WIFI_ASOC_STATE)) ) {
|
||||
if (reset_tsf(Adapter, IFACE_PORT1) == _FALSE)
|
||||
if (reset_tsf(Adapter, IFACE_PORT1) == false)
|
||||
DBG_871X("ERROR! %s()-%d: Reset port1 TSF fail\n",
|
||||
__FUNCTION__, __LINE__);
|
||||
}
|
||||
|
@ -2564,11 +2564,11 @@ static void hw_var_set_opmode(struct adapter *Adapter, u8 variable, u8* val)
|
|||
#ifdef CONFIG_INTERRUPT_BASED_TXBCN
|
||||
#ifdef CONFIG_INTERRUPT_BASED_TXBCN_EARLY_INT
|
||||
rtw_write8(Adapter, REG_DRVERLYINT, 0x05);//restore early int time to 5ms
|
||||
UpdateInterruptMask8188EU(Adapter,_TRUE, 0, IMR_BCNDMAINT0_88E);
|
||||
UpdateInterruptMask8188EU(Adapter,true, 0, IMR_BCNDMAINT0_88E);
|
||||
#endif//CONFIG_INTERRUPT_BASED_TXBCN_EARLY_INT
|
||||
|
||||
#ifdef CONFIG_INTERRUPT_BASED_TXBCN_BCN_OK_ERR
|
||||
UpdateInterruptMask8188EU(Adapter,_TRUE ,0, (IMR_TBDER_88E|IMR_TBDOK_88E));
|
||||
UpdateInterruptMask8188EU(Adapter,true ,0, (IMR_TBDER_88E|IMR_TBDOK_88E));
|
||||
#endif //CONFIG_INTERRUPT_BASED_TXBCN_BCN_OK_ERR
|
||||
|
||||
#endif //CONFIG_INTERRUPT_BASED_TXBCN
|
||||
|
@ -2590,11 +2590,11 @@ static void hw_var_set_opmode(struct adapter *Adapter, u8 variable, u8* val)
|
|||
|
||||
#ifdef CONFIG_INTERRUPT_BASED_TXBCN
|
||||
#ifdef CONFIG_INTERRUPT_BASED_TXBCN_EARLY_INT
|
||||
UpdateInterruptMask8188EU(Adapter,_TRUE ,IMR_BCNDMAINT0_88E, 0);
|
||||
UpdateInterruptMask8188EU(Adapter,true ,IMR_BCNDMAINT0_88E, 0);
|
||||
#endif//CONFIG_INTERRUPT_BASED_TXBCN_EARLY_INT
|
||||
|
||||
#ifdef CONFIG_INTERRUPT_BASED_TXBCN_BCN_OK_ERR
|
||||
UpdateInterruptMask8188EU(Adapter,_TRUE ,(IMR_TBDER_88E|IMR_TBDOK_88E), 0);
|
||||
UpdateInterruptMask8188EU(Adapter,true ,(IMR_TBDER_88E|IMR_TBDOK_88E), 0);
|
||||
#endif//CONFIG_INTERRUPT_BASED_TXBCN_BCN_OK_ERR
|
||||
|
||||
#endif //CONFIG_INTERRUPT_BASED_TXBCN
|
||||
|
@ -2647,7 +2647,7 @@ static void hw_var_set_opmode(struct adapter *Adapter, u8 variable, u8* val)
|
|||
#ifdef CONFIG_TSF_RESET_OFFLOAD
|
||||
// Reset TSF for STA+AP concurrent mode
|
||||
if ( check_buddy_fwstate(Adapter, (WIFI_STATION_STATE|WIFI_ASOC_STATE)) ) {
|
||||
if (reset_tsf(Adapter, IFACE_PORT0) == _FALSE)
|
||||
if (reset_tsf(Adapter, IFACE_PORT0) == false)
|
||||
DBG_871X("ERROR! %s()-%d: Reset port0 TSF fail\n",
|
||||
__FUNCTION__, __LINE__);
|
||||
}
|
||||
|
@ -2774,7 +2774,7 @@ static void hw_var_set_correct_tsf(struct adapter *Adapter, u8 variable, u8* val
|
|||
rtw_write8(Adapter, REG_BCN_CTRL, rtw_read8(Adapter, REG_BCN_CTRL)|BIT(3));
|
||||
#ifdef CONFIG_TSF_RESET_OFFLOAD
|
||||
// Update buddy port's TSF(TBTT) if it is SoftAP for beacon TX issue!
|
||||
if (reset_tsf(Adapter, IFACE_PORT0) == _FALSE)
|
||||
if (reset_tsf(Adapter, IFACE_PORT0) == false)
|
||||
DBG_871X("ERROR! %s()-%d: Reset port0 TSF fail\n",
|
||||
__FUNCTION__, __LINE__);
|
||||
|
||||
|
@ -2808,7 +2808,7 @@ static void hw_var_set_correct_tsf(struct adapter *Adapter, u8 variable, u8* val
|
|||
rtw_write8(Adapter, REG_BCN_CTRL_1, rtw_read8(Adapter, REG_BCN_CTRL_1)|BIT(3));
|
||||
#ifdef CONFIG_TSF_RESET_OFFLOAD
|
||||
// Update buddy port's TSF if it is SoftAP for beacon TX issue!
|
||||
if (reset_tsf(Adapter, IFACE_PORT1) == _FALSE)
|
||||
if (reset_tsf(Adapter, IFACE_PORT1) == false)
|
||||
DBG_871X("ERROR! %s()-%d: Reset port1 TSF fail\n",
|
||||
__FUNCTION__, __LINE__);
|
||||
#endif // CONFIG_TSF_RESET_OFFLOAD
|
||||
|
@ -2941,7 +2941,7 @@ static void hw_var_set_mlme_join(struct adapter *Adapter, u8 variable, u8* val)
|
|||
else
|
||||
rtw_write32(Adapter, REG_RCR, rtw_read32(Adapter, REG_RCR)|RCR_CBSSID_DATA|RCR_CBSSID_BCN);
|
||||
|
||||
if(check_fwstate(pmlmepriv, WIFI_STATION_STATE) == _TRUE)
|
||||
if(check_fwstate(pmlmepriv, WIFI_STATION_STATE) == true)
|
||||
{
|
||||
RetryLimit = (pHalData->CustomerID == RT_CID_CCX) ? 7 : 48;
|
||||
}
|
||||
|
@ -3169,7 +3169,7 @@ _func_enter_;
|
|||
struct mlme_ext_priv *pmlmeext = &Adapter->mlmeextpriv;
|
||||
struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
|
||||
|
||||
if ((is_client_associated_to_ap(Adapter) == _TRUE) ||
|
||||
if ((is_client_associated_to_ap(Adapter) == true) ||
|
||||
((pmlmeinfo->state&0x03) == WIFI_FW_ADHOC_STATE) )
|
||||
{
|
||||
//enable to rx data frame
|
||||
|
@ -3232,7 +3232,7 @@ _func_enter_;
|
|||
rtw_write32(Adapter, REG_RCR, rtw_read32(Adapter, REG_RCR)|RCR_CBSSID_DATA|RCR_CBSSID_BCN);
|
||||
}
|
||||
|
||||
if(check_fwstate(pmlmepriv, WIFI_STATION_STATE) == _TRUE)
|
||||
if(check_fwstate(pmlmepriv, WIFI_STATION_STATE) == true)
|
||||
{
|
||||
RetryLimit = (pHalData->CustomerID == RT_CID_CCX) ? 7 : 48;
|
||||
}
|
||||
|
@ -3561,7 +3561,7 @@ _func_enter_;
|
|||
// saving sequence. 2010.06.07. Added by tynli. Suggested by SD3 yschang.
|
||||
if( (psmode != PS_MODE_ACTIVE) && (!IS_92C_SERIAL(pHalData->VersionID)))
|
||||
{
|
||||
ODM_RF_Saving(podmpriv, _TRUE);
|
||||
ODM_RF_Saving(podmpriv, true);
|
||||
}
|
||||
rtl8188e_set_FwPwrMode_cmd(Adapter, psmode);
|
||||
}
|
||||
|
@ -3682,7 +3682,7 @@ _func_enter_;
|
|||
//keep sn
|
||||
Adapter->xmitpriv.nqos_ssn = rtw_read16(Adapter,REG_NQOS_SEQ);
|
||||
|
||||
if(pwrpriv->bkeepfwalive != _TRUE)
|
||||
if(pwrpriv->bkeepfwalive != true)
|
||||
{
|
||||
//RX DMA stop
|
||||
rtw_write32(Adapter,REG_RXPKT_NUM,(rtw_read32(Adapter,REG_RXPKT_NUM)|RW_RELEASE_EN));
|
||||
|
@ -3739,10 +3739,10 @@ _func_enter_;
|
|||
case WOWLAN_ENABLE:
|
||||
DBG_871X_LEVEL(_drv_always_, "WOWLAN_ENABLE\n");
|
||||
|
||||
SetFwRelatedForWoWLAN8188ES(Adapter, _TRUE);
|
||||
SetFwRelatedForWoWLAN8188ES(Adapter, true);
|
||||
|
||||
//Set Pattern
|
||||
//if(adapter_to_pwrctl(Adapter)->wowlan_pattern==_TRUE)
|
||||
//if(adapter_to_pwrctl(Adapter)->wowlan_pattern==true)
|
||||
// rtw_wowlan_reload_pattern(Adapter);
|
||||
|
||||
//RX DMA stop
|
||||
|
@ -3801,7 +3801,7 @@ _func_enter_;
|
|||
if (mstatus & BIT1)
|
||||
printk("System did not release RX_DMA\n");
|
||||
else
|
||||
SetFwRelatedForWoWLAN8188ES(Adapter, _FALSE);
|
||||
SetFwRelatedForWoWLAN8188ES(Adapter, false);
|
||||
|
||||
rtw_msleep_os(2);
|
||||
if(!(adapter_to_pwrctl(Adapter)->wowlan_wake_reason & FWDecisionDisconnect))
|
||||
|
@ -3857,7 +3857,7 @@ _func_enter_;
|
|||
break;
|
||||
case HW_VAR_BCN_VALID:
|
||||
//BCN_VALID, BIT16 of REG_TDECTRL = BIT0 of REG_TDECTRL+2
|
||||
val[0] = (BIT0 & rtw_read8(Adapter, REG_TDECTRL+2))?_TRUE:_FALSE;
|
||||
val[0] = (BIT0 & rtw_read8(Adapter, REG_TDECTRL+2))?true:false;
|
||||
break;
|
||||
case HW_VAR_DM_FLAG:
|
||||
val[0] = podmpriv->SupportAbility;
|
||||
|
@ -3872,7 +3872,7 @@ _func_enter_;
|
|||
{
|
||||
// If it is in HW/SW Radio OFF or IPS state, we do not check Fw LPS Leave,
|
||||
// because Fw is unload.
|
||||
val[0] = _TRUE;
|
||||
val[0] = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -3880,9 +3880,9 @@ _func_enter_;
|
|||
valRCR = rtw_read32(Adapter, REG_RCR);
|
||||
valRCR &= 0x00070000;
|
||||
if(valRCR)
|
||||
val[0] = _FALSE;
|
||||
val[0] = false;
|
||||
else
|
||||
val[0] = _TRUE;
|
||||
val[0] = true;
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
@ -3898,7 +3898,7 @@ _func_enter_;
|
|||
*val = pHalData->bMacPwrCtrlOn;
|
||||
break;
|
||||
case HW_VAR_CHK_HI_QUEUE_EMPTY:
|
||||
*val = ((rtw_read32(Adapter, REG_HGQ_INFORMATION)&0x0000ff00)==0) ? _TRUE:_FALSE;
|
||||
*val = ((rtw_read32(Adapter, REG_HGQ_INFORMATION)&0x0000ff00)==0) ? true:false;
|
||||
break;
|
||||
|
||||
case HW_VAR_READ_LLT_TAB:
|
||||
|
@ -3958,7 +3958,7 @@ GetHalDefVar8188EUsb(
|
|||
}
|
||||
}
|
||||
#else //V4 branch
|
||||
if(check_fwstate(&Adapter->mlmepriv, WIFI_STATION_STATE) == _TRUE){
|
||||
if(check_fwstate(&Adapter->mlmepriv, WIFI_STATION_STATE) == true){
|
||||
*((int *)pValue) = pHalData->dmpriv.UndecoratedSmoothedPWDB;
|
||||
}
|
||||
else{
|
||||
|
@ -3968,7 +3968,7 @@ GetHalDefVar8188EUsb(
|
|||
break;
|
||||
case HAL_DEF_IS_SUPPORT_ANT_DIV:
|
||||
#ifdef CONFIG_ANTENNA_DIVERSITY
|
||||
*((u8 *)pValue) = (pHalData->AntDivCfg==0)?_FALSE:_TRUE;
|
||||
*((u8 *)pValue) = (pHalData->AntDivCfg==0)?false:true;
|
||||
#endif
|
||||
break;
|
||||
case HAL_DEF_CURRENT_ANTENNA:
|
||||
|
@ -4020,19 +4020,19 @@ GetHalDefVar8188EUsb(
|
|||
{
|
||||
u8 entry_id = *((u8*)pValue);
|
||||
u8 i;
|
||||
u8 bLinked = _FALSE;
|
||||
u8 bLinked = false;
|
||||
#ifdef CONFIG_CONCURRENT_MODE
|
||||
struct adapter *pbuddy_adapter = Adapter->pbuddy_adapter;
|
||||
#endif //CONFIG_CONCURRENT_MODE
|
||||
|
||||
//if(check_fwstate(&Adapter->mlmepriv, _FW_LINKED)== _TRUE)
|
||||
//if(check_fwstate(&Adapter->mlmepriv, _FW_LINKED)== true)
|
||||
|
||||
if(rtw_linked_check(Adapter))
|
||||
bLinked = _TRUE;
|
||||
bLinked = true;
|
||||
|
||||
#ifdef CONFIG_CONCURRENT_MODE
|
||||
if(pbuddy_adapter && rtw_linked_check(pbuddy_adapter))
|
||||
bLinked = _TRUE;
|
||||
bLinked = true;
|
||||
#endif
|
||||
|
||||
if(bLinked){
|
||||
|
@ -4193,7 +4193,7 @@ void UpdateHalRAMask8188EUsb(struct adapter *padapter, u32 mac_id, u8 rssi_level
|
|||
u8 init_rate=0;
|
||||
u8 networkType, raid;
|
||||
u32 mask,rate_bitmap;
|
||||
u8 shortGIrate = _FALSE;
|
||||
u8 shortGIrate = false;
|
||||
int supportRateNum = 0;
|
||||
struct sta_info *psta;
|
||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(padapter);
|
||||
|
@ -4230,7 +4230,7 @@ void UpdateHalRAMask8188EUsb(struct adapter *padapter, u32 mac_id, u8 rssi_level
|
|||
|
||||
if (support_short_GI(padapter, &(pmlmeinfo->HT_caps)))
|
||||
{
|
||||
shortGIrate = _TRUE;
|
||||
shortGIrate = true;
|
||||
}
|
||||
|
||||
break;
|
||||
|
@ -4273,7 +4273,7 @@ void UpdateHalRAMask8188EUsb(struct adapter *padapter, u32 mac_id, u8 rssi_level
|
|||
|
||||
init_rate = get_highest_rate_idx(mask)&0x3f;
|
||||
|
||||
if(pHalData->fw_ractrl == _TRUE)
|
||||
if(pHalData->fw_ractrl == true)
|
||||
{
|
||||
u8 arg = 0;
|
||||
|
||||
|
@ -4282,13 +4282,13 @@ void UpdateHalRAMask8188EUsb(struct adapter *padapter, u32 mac_id, u8 rssi_level
|
|||
|
||||
arg |= BIT(7);
|
||||
|
||||
if (shortGIrate==_TRUE)
|
||||
if (shortGIrate==true)
|
||||
arg |= BIT(5);
|
||||
mask |= ((raid<<28)&0xf0000000);
|
||||
DBG_871X("update raid entry, mask=0x%x, arg=0x%x\n", mask, arg);
|
||||
psta->ra_mask=mask;
|
||||
#ifdef CONFIG_INTEL_PROXIM
|
||||
if(padapter->proximity.proxim_on ==_TRUE){
|
||||
if(padapter->proximity.proxim_on ==true){
|
||||
arg &= ~BIT(6);
|
||||
}
|
||||
else {
|
||||
|
@ -4373,7 +4373,7 @@ void SetBeaconRelatedRegisters8188EUsb(struct adapter *padapter)
|
|||
rtw_write8(padapter, REG_RXTSF_OFFSET_CCK, 0x50);
|
||||
rtw_write8(padapter, REG_RXTSF_OFFSET_OFDM, 0x50);
|
||||
|
||||
_BeaconFunctionEnable(padapter, _TRUE, _TRUE);
|
||||
_BeaconFunctionEnable(padapter, true, true);
|
||||
|
||||
ResumeTxBeacon(padapter);
|
||||
|
||||
|
@ -4400,14 +4400,14 @@ static void rtl8188eu_init_default_value(struct adapter * padapter)
|
|||
|
||||
|
||||
//init default value
|
||||
pHalData->fw_ractrl = _FALSE;
|
||||
pHalData->fw_ractrl = false;
|
||||
if(!pwrctrlpriv->bkeepfwalive)
|
||||
pHalData->LastHMEBoxNum = 0;
|
||||
|
||||
//init dm default value
|
||||
pHalData->odmpriv.RFCalibrateInfo.bIQKInitialized = _FALSE;
|
||||
pHalData->odmpriv.RFCalibrateInfo.bIQKInitialized = false;
|
||||
pHalData->odmpriv.RFCalibrateInfo.TM_Trigger = 0;//for IQK
|
||||
//pdmpriv->binitialized = _FALSE;
|
||||
//pdmpriv->binitialized = false;
|
||||
// pdmpriv->prv_traffic_idx = 3;
|
||||
// pdmpriv->initialize = 0;
|
||||
pHalData->pwrGroupCnt = 0;
|
||||
|
@ -4419,7 +4419,7 @@ static void rtl8188eu_init_default_value(struct adapter * padapter)
|
|||
|
||||
static u8 rtl8188eu_ps_func(struct adapter *Adapter,HAL_INTF_PS_FUNC efunc_id, u8 *val)
|
||||
{
|
||||
u8 bResult = _TRUE;
|
||||
u8 bResult = true;
|
||||
switch(efunc_id){
|
||||
|
||||
#if defined(CONFIG_AUTOSUSPEND) && defined(SUPPORT_HW_RFOFF_DETECTED)
|
||||
|
|
|
@ -131,7 +131,7 @@ static int usbctrl_vendorreq(struct intf_hdl *pintfhdl, u8 request, u16 value, u
|
|||
if (status < 0) {
|
||||
if(status == (-ESHUTDOWN) || status == -ENODEV )
|
||||
{
|
||||
padapter->bSurpriseRemoved = _TRUE;
|
||||
padapter->bSurpriseRemoved = true;
|
||||
} else {
|
||||
#ifdef DBG_CONFIG_ERROR_DETECT
|
||||
{
|
||||
|
@ -151,8 +151,8 @@ static int usbctrl_vendorreq(struct intf_hdl *pintfhdl, u8 request, u16 value, u
|
|||
}
|
||||
}
|
||||
|
||||
if(rtw_inc_and_chk_continual_io_error(pdvobjpriv) == _TRUE ){
|
||||
padapter->bSurpriseRemoved = _TRUE;
|
||||
if(rtw_inc_and_chk_continual_io_error(pdvobjpriv) == true ){
|
||||
padapter->bSurpriseRemoved = true;
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -412,7 +412,7 @@ void interrupt_handler_8188eu(struct adapter *padapter,u16 pkt_len,u8 *pbuf)
|
|||
if(check_fwstate(pmlmepriv, WIFI_AP_STATE))
|
||||
{
|
||||
//send_beacon(padapter);
|
||||
if(pmlmepriv->update_bcn == _TRUE)
|
||||
if(pmlmepriv->update_bcn == true)
|
||||
{
|
||||
//tx_beacon_hdl(padapter, NULL);
|
||||
set_tx_beacon_cmd(padapter);
|
||||
|
@ -422,7 +422,7 @@ void interrupt_handler_8188eu(struct adapter *padapter,u16 pkt_len,u8 *pbuf)
|
|||
if(check_buddy_fwstate(padapter, WIFI_AP_STATE))
|
||||
{
|
||||
//send_beacon(padapter);
|
||||
if(padapter->pbuddy_adapter->mlmepriv.update_bcn == _TRUE)
|
||||
if(padapter->pbuddy_adapter->mlmepriv.update_bcn == true)
|
||||
{
|
||||
//tx_beacon_hdl(padapter, NULL);
|
||||
set_tx_beacon_cmd(padapter->pbuddy_adapter);
|
||||
|
@ -495,10 +495,10 @@ static void usb_read_interrupt_complete(struct urb *purb, struct pt_regs *regs)
|
|||
case -EPIPE:
|
||||
case -ENODEV:
|
||||
case -ESHUTDOWN:
|
||||
//padapter->bSurpriseRemoved=_TRUE;
|
||||
//padapter->bSurpriseRemoved=true;
|
||||
RT_TRACE(_module_hci_ops_os_c_,_drv_err_,("usb_read_port_complete:bSurpriseRemoved=TRUE\n"));
|
||||
case -ENOENT:
|
||||
padapter->bDriverStopped=_TRUE;
|
||||
padapter->bDriverStopped=true;
|
||||
RT_TRACE(_module_hci_ops_os_c_,_drv_err_,("usb_read_port_complete:bDriverStopped=TRUE\n"));
|
||||
break;
|
||||
case -EPROTO:
|
||||
|
@ -565,7 +565,7 @@ static s32 pre_recv_entry(union recv_frame *precvframe, struct recv_stat *prxsta
|
|||
|
||||
paddr1 = GetAddr1Ptr(precvframe->u.hdr.rx_data);
|
||||
|
||||
if(IS_MCAST(paddr1) == _FALSE)//unicast packets
|
||||
if(IS_MCAST(paddr1) == false)//unicast packets
|
||||
{
|
||||
//primary_myid = myid(&primary_padapter->eeprompriv);
|
||||
secondary_myid = myid(&secondary_padapter->eeprompriv);
|
||||
|
@ -581,9 +581,9 @@ static s32 pre_recv_entry(union recv_frame *precvframe, struct recv_stat *prxsta
|
|||
}
|
||||
else // Handle BC/MC Packets
|
||||
{
|
||||
u8 clone = _TRUE;
|
||||
u8 clone = true;
|
||||
|
||||
if(_TRUE == clone) {
|
||||
if(true == clone) {
|
||||
//clone/copy to if2
|
||||
u8 shift_sz = 0;
|
||||
u32 alloc_sz, skb_len;
|
||||
|
@ -897,7 +897,7 @@ void rtl8188eu_recv_tasklet(void *priv)
|
|||
|
||||
while (NULL != (precvbuf = rtw_dequeue_recvbuf(&precvpriv->recv_buf_pending_queue)))
|
||||
{
|
||||
if ((padapter->bDriverStopped == _TRUE)||(padapter->bSurpriseRemoved== _TRUE))
|
||||
if ((padapter->bDriverStopped == true)||(padapter->bSurpriseRemoved== true))
|
||||
{
|
||||
DBG_8192C("recv_tasklet => bDriverStopped or bSurpriseRemoved \n");
|
||||
|
||||
|
@ -956,8 +956,8 @@ static void usb_read_port_complete(struct urb *purb, struct pt_regs *regs)
|
|||
|
||||
DBG_8192C("###=> usb_read_port_complete => urb status(%d)\n", purb->status);
|
||||
|
||||
if(rtw_inc_and_chk_continual_io_error(adapter_to_dvobj(padapter)) == _TRUE ){
|
||||
padapter->bSurpriseRemoved = _TRUE;
|
||||
if(rtw_inc_and_chk_continual_io_error(adapter_to_dvobj(padapter)) == true ){
|
||||
padapter->bSurpriseRemoved = true;
|
||||
}
|
||||
|
||||
switch(purb->status) {
|
||||
|
@ -965,10 +965,10 @@ static void usb_read_port_complete(struct urb *purb, struct pt_regs *regs)
|
|||
case -EPIPE:
|
||||
case -ENODEV:
|
||||
case -ESHUTDOWN:
|
||||
//padapter->bSurpriseRemoved=_TRUE;
|
||||
//padapter->bSurpriseRemoved=true;
|
||||
RT_TRACE(_module_hci_ops_os_c_,_drv_err_,("usb_read_port_complete:bSurpriseRemoved=TRUE\n"));
|
||||
case -ENOENT:
|
||||
padapter->bDriverStopped=_TRUE;
|
||||
padapter->bDriverStopped=true;
|
||||
RT_TRACE(_module_hci_ops_os_c_,_drv_err_,("usb_read_port_complete:bDriverStopped=TRUE\n"));
|
||||
break;
|
||||
case -EPROTO:
|
||||
|
@ -1296,7 +1296,7 @@ void rtl8188eu_recv_tasklet(void *priv)
|
|||
|
||||
while (NULL != (pskb = skb_dequeue(&precvpriv->rx_skb_queue)))
|
||||
{
|
||||
if ((padapter->bDriverStopped == _TRUE)||(padapter->bSurpriseRemoved== _TRUE))
|
||||
if ((padapter->bDriverStopped == true)||(padapter->bSurpriseRemoved== true))
|
||||
{
|
||||
DBG_8192C("recv_tasklet => bDriverStopped or bSurpriseRemoved \n");
|
||||
rtw_skb_free(pskb);
|
||||
|
@ -1333,7 +1333,7 @@ static void usb_read_port_complete(struct urb *purb, struct pt_regs *regs)
|
|||
RT_TRACE(_module_hci_ops_os_c_,_drv_err_,("usb_read_port_complete!!!\n"));
|
||||
|
||||
//_enter_critical(&precvpriv->lock, &irqL);
|
||||
//precvbuf->irp_pending=_FALSE;
|
||||
//precvbuf->irp_pending=false;
|
||||
//precvpriv->rx_pending_cnt --;
|
||||
//_exit_critical(&precvpriv->lock, &irqL);
|
||||
|
||||
|
@ -1350,7 +1350,7 @@ static void usb_read_port_complete(struct urb *purb, struct pt_regs *regs)
|
|||
RT_TRACE(_module_hci_ops_os_c_,_drv_err_,("usb_read_port_complete:bDriverStopped(%d) OR bSurpriseRemoved(%d)\n", padapter->bDriverStopped, padapter->bSurpriseRemoved));
|
||||
|
||||
#ifdef CONFIG_PREALLOC_RECV_SKB
|
||||
precvbuf->reuse = _TRUE;
|
||||
precvbuf->reuse = true;
|
||||
#else
|
||||
if(precvbuf->pskb){
|
||||
DBG_8192C("==> free skb(%p)\n",precvbuf->pskb);
|
||||
|
@ -1367,7 +1367,7 @@ static void usb_read_port_complete(struct urb *purb, struct pt_regs *regs)
|
|||
if ((purb->actual_length > MAX_RECVBUF_SZ) || (purb->actual_length < RXDESC_SIZE))
|
||||
{
|
||||
RT_TRACE(_module_hci_ops_os_c_,_drv_err_,("usb_read_port_complete: (purb->actual_length > MAX_RECVBUF_SZ) || (purb->actual_length < RXDESC_SIZE)\n"));
|
||||
precvbuf->reuse = _TRUE;
|
||||
precvbuf->reuse = true;
|
||||
rtw_read_port(padapter, precvpriv->ff_hwaddr, 0, (unsigned char *)precvbuf);
|
||||
DBG_8192C("%s()-%d: RX Warning!\n", __FUNCTION__, __LINE__);
|
||||
}
|
||||
|
@ -1383,7 +1383,7 @@ static void usb_read_port_complete(struct urb *purb, struct pt_regs *regs)
|
|||
tasklet_schedule(&precvpriv->recv_tasklet);
|
||||
|
||||
precvbuf->pskb = NULL;
|
||||
precvbuf->reuse = _FALSE;
|
||||
precvbuf->reuse = false;
|
||||
rtw_read_port(padapter, precvpriv->ff_hwaddr, 0, (unsigned char *)precvbuf);
|
||||
}
|
||||
}
|
||||
|
@ -1393,8 +1393,8 @@ static void usb_read_port_complete(struct urb *purb, struct pt_regs *regs)
|
|||
|
||||
DBG_8192C("###=> usb_read_port_complete => urb status(%d)\n", purb->status);
|
||||
|
||||
if(rtw_inc_and_chk_continual_io_error(adapter_to_dvobj(padapter)) == _TRUE ){
|
||||
padapter->bSurpriseRemoved = _TRUE;
|
||||
if(rtw_inc_and_chk_continual_io_error(adapter_to_dvobj(padapter)) == true ){
|
||||
padapter->bSurpriseRemoved = true;
|
||||
}
|
||||
|
||||
switch(purb->status) {
|
||||
|
@ -1402,10 +1402,10 @@ static void usb_read_port_complete(struct urb *purb, struct pt_regs *regs)
|
|||
case -EPIPE:
|
||||
case -ENODEV:
|
||||
case -ESHUTDOWN:
|
||||
//padapter->bSurpriseRemoved=_TRUE;
|
||||
//padapter->bSurpriseRemoved=true;
|
||||
RT_TRACE(_module_hci_ops_os_c_,_drv_err_,("usb_read_port_complete:bSurpriseRemoved=TRUE\n"));
|
||||
case -ENOENT:
|
||||
padapter->bDriverStopped=_TRUE;
|
||||
padapter->bDriverStopped=true;
|
||||
RT_TRACE(_module_hci_ops_os_c_,_drv_err_,("usb_read_port_complete:bDriverStopped=TRUE\n"));
|
||||
break;
|
||||
case -EPROTO:
|
||||
|
@ -1419,7 +1419,7 @@ static void usb_read_port_complete(struct urb *purb, struct pt_regs *regs)
|
|||
pHalData->srestpriv.Wifi_Error_Status = USB_READ_PORT_FAIL;
|
||||
}
|
||||
#endif
|
||||
precvbuf->reuse = _TRUE;
|
||||
precvbuf->reuse = true;
|
||||
rtw_read_port(padapter, precvpriv->ff_hwaddr, 0, (unsigned char *)precvbuf);
|
||||
break;
|
||||
case -EINPROGRESS:
|
||||
|
@ -1462,11 +1462,11 @@ _func_enter_;
|
|||
}
|
||||
|
||||
#ifdef CONFIG_PREALLOC_RECV_SKB
|
||||
if((precvbuf->reuse == _FALSE) || (precvbuf->pskb == NULL))
|
||||
if((precvbuf->reuse == false) || (precvbuf->pskb == NULL))
|
||||
{
|
||||
if (NULL != (precvbuf->pskb = skb_dequeue(&precvpriv->free_recv_skb_queue)))
|
||||
{
|
||||
precvbuf->reuse = _TRUE;
|
||||
precvbuf->reuse = true;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
@ -1477,7 +1477,7 @@ _func_enter_;
|
|||
rtl8188eu_init_recvbuf(adapter, precvbuf);
|
||||
|
||||
//re-assign for linux based on skb
|
||||
if((precvbuf->reuse == _FALSE) || (precvbuf->pskb == NULL))
|
||||
if((precvbuf->reuse == false) || (precvbuf->pskb == NULL))
|
||||
{
|
||||
precvbuf->pskb = rtw_skb_alloc(MAX_RECVBUF_SZ + RECVBUFF_ALIGN_SZ);
|
||||
|
||||
|
@ -1506,12 +1506,12 @@ _func_enter_;
|
|||
precvbuf->pend = skb_end_pointer(precvbuf->pskb);
|
||||
precvbuf->pbuf = precvbuf->pskb->data;
|
||||
|
||||
precvbuf->reuse = _FALSE;
|
||||
precvbuf->reuse = false;
|
||||
}
|
||||
|
||||
//_enter_critical(&precvpriv->lock, &irqL);
|
||||
//precvpriv->rx_pending_cnt++;
|
||||
//precvbuf->irp_pending = _TRUE;
|
||||
//precvbuf->irp_pending = true;
|
||||
//_exit_critical(&precvpriv->lock, &irqL);
|
||||
|
||||
precvpriv->rx_pending_cnt++;
|
||||
|
@ -1549,16 +1549,16 @@ _func_exit_;
|
|||
|
||||
void rtl8188eu_xmit_tasklet(void *priv)
|
||||
{
|
||||
int ret = _FALSE;
|
||||
int ret = false;
|
||||
struct adapter *padapter = (struct adapter*)priv;
|
||||
struct xmit_priv *pxmitpriv = &padapter->xmitpriv;
|
||||
|
||||
if(check_fwstate(&padapter->mlmepriv, _FW_UNDER_SURVEY) == _TRUE)
|
||||
if(check_fwstate(&padapter->mlmepriv, _FW_UNDER_SURVEY) == true)
|
||||
return;
|
||||
|
||||
while(1)
|
||||
{
|
||||
if ((padapter->bDriverStopped == _TRUE)||(padapter->bSurpriseRemoved== _TRUE) || (padapter->bWritePortCancel == _TRUE))
|
||||
if ((padapter->bDriverStopped == true)||(padapter->bSurpriseRemoved== true) || (padapter->bWritePortCancel == true))
|
||||
{
|
||||
DBG_8192C("xmit_tasklet => bDriverStopped or bSurpriseRemoved or bWritePortCancel\n");
|
||||
break;
|
||||
|
@ -1566,7 +1566,7 @@ void rtl8188eu_xmit_tasklet(void *priv)
|
|||
|
||||
ret = rtl8188eu_xmitframe_complete(padapter, pxmitpriv, NULL);
|
||||
|
||||
if(ret==_FALSE)
|
||||
if(ret==false)
|
||||
break;
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue