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