mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2025-06-23 16:44:20 +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
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue