rtl8188eu: Replace _FALSE and _TRUE

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
Larry Finger 2014-12-28 20:13:24 -06:00
parent 17d1637977
commit 06334102cd
68 changed files with 2553 additions and 2572 deletions

View file

@ -366,7 +366,7 @@ struct wifidirect_info{
struct tdls_ss_record{ //signal strength record
u8 macaddr[ETH_ALEN];
u8 RxPWDBAll;
u8 is_tdls_sta; // _TRUE: direct link sta, _FALSE: else
u8 is_tdls_sta; // true: direct link sta, false: else
};
struct tdls_info{
@ -653,9 +653,9 @@ __inline static u8 *get_bssid(struct mlme_priv *pmlmepriv)
__inline static sint check_fwstate(struct mlme_priv *pmlmepriv, sint state)
{
if (pmlmepriv->fw_state & state)
return _TRUE;
return true;
return _FALSE;
return false;
}
__inline static sint get_fwstate(struct mlme_priv *pmlmepriv)
@ -675,7 +675,7 @@ __inline static void set_fwstate(struct mlme_priv *pmlmepriv, sint state)
pmlmepriv->fw_state |= state;
//FOR HW integration
if(_FW_UNDER_SURVEY==state){
pmlmepriv->bScanInProcess = _TRUE;
pmlmepriv->bScanInProcess = true;
}
}
@ -684,7 +684,7 @@ __inline static void _clr_fwstate_(struct mlme_priv *pmlmepriv, sint state)
pmlmepriv->fw_state &= ~state;
//FOR HW integration
if(_FW_UNDER_SURVEY==state){
pmlmepriv->bScanInProcess = _FALSE;
pmlmepriv->bScanInProcess = false;
}
}
@ -697,7 +697,7 @@ __inline static void clr_fwstate(struct mlme_priv *pmlmepriv, sint state)
_irqL irqL;
_enter_critical_bh(&pmlmepriv->lock, &irqL);
if (check_fwstate(pmlmepriv, state) == _TRUE)
if (check_fwstate(pmlmepriv, state) == true)
pmlmepriv->fw_state ^= state;
_exit_critical_bh(&pmlmepriv->lock, &irqL);
}
@ -775,7 +775,7 @@ void rtw_clear_scan_deny(struct adapter *adapter);
void rtw_set_scan_deny_timer_hdl(struct adapter *adapter);
void rtw_set_scan_deny(struct adapter *adapter, u32 ms);
#else
#define rtw_is_scan_deny(adapter) _FALSE
#define rtw_is_scan_deny(adapter) false
#define rtw_clear_scan_deny(adapter) do {} while (0)
#define rtw_set_scan_deny_timer_hdl(adapter) do {} while (0)
#define rtw_set_scan_deny(adapter, ms) do {} while (0)