mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2025-05-08 14:33:05 +00:00
rtl8188eu: Replace all the alternative forms for bool
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
21b9be0939
commit
57a2db9e23
49 changed files with 406 additions and 413 deletions
|
@ -82,7 +82,7 @@ EFUSE_GetMaskArray_MP_8188E_MUSB(
|
|||
for (i = 0; i < len; ++i)
|
||||
Array[i] = Array_MP_8188E_MUSB[i];
|
||||
}
|
||||
BOOLEAN
|
||||
bool
|
||||
EFUSE_IsAddressMasked_MP_8188E_MUSB(
|
||||
u2Byte Offset
|
||||
)
|
||||
|
|
|
@ -33,7 +33,7 @@ EFUSE_GetMaskArray_MP_8188E_MUSB(
|
|||
pu1Byte Array
|
||||
);
|
||||
|
||||
BOOLEAN
|
||||
bool
|
||||
EFUSE_IsAddressMasked_MP_8188E_MUSB(/* TC: Test Chip, MP: MP Chip */
|
||||
u2Byte Offset
|
||||
);
|
||||
|
|
|
@ -109,15 +109,15 @@ struct btc_board_info {
|
|||
u8 btdm_ant_num_by_ant_det; /* ant number for btdm after antenna detection */
|
||||
u8 btdm_ant_pos; /* Bryant Add to indicate Antenna Position for (pg_ant_num = 2) && (btdm_ant_num =1) (DPDT+1Ant case) */
|
||||
u8 single_ant_path; /* current used for 8723b only, 1=>s0, 0=>s1 */
|
||||
boolean tfbga_package; /* for Antenna detect threshold */
|
||||
boolean btdm_ant_det_finish;
|
||||
boolean btdm_ant_det_already_init_phydm;
|
||||
bool tfbga_package; /* for Antenna detect threshold */
|
||||
bool btdm_ant_det_finish;
|
||||
bool btdm_ant_det_already_init_phydm;
|
||||
u8 ant_type;
|
||||
u8 rfe_type;
|
||||
u8 ant_div_cfg;
|
||||
boolean btdm_ant_det_complete_fail;
|
||||
bool btdm_ant_det_complete_fail;
|
||||
u8 ant_det_result;
|
||||
boolean ant_det_result_five_complete;
|
||||
bool ant_det_result_five_complete;
|
||||
u32 antdetval;
|
||||
};
|
||||
|
||||
|
@ -232,7 +232,7 @@ typedef enum _BTC_VENDOR {
|
|||
|
||||
/* defined for BFP_BTC_GET */
|
||||
typedef enum _BTC_GET_TYPE {
|
||||
/* type BOOLEAN */
|
||||
/* type bool */
|
||||
BTC_GET_BL_HS_OPERATION,
|
||||
BTC_GET_BL_HS_CONNECTING,
|
||||
BTC_GET_BL_WIFI_FW_READY,
|
||||
|
@ -285,7 +285,7 @@ typedef enum _BTC_GET_TYPE {
|
|||
|
||||
/* defined for BFP_BTC_SET */
|
||||
typedef enum _BTC_SET_TYPE {
|
||||
/* type BOOLEAN */
|
||||
/* type bool */
|
||||
BTC_SET_BL_BT_DISABLE,
|
||||
BTC_SET_BL_BT_ENABLE_DISABLE_CHANGE,
|
||||
BTC_SET_BL_BT_TRAFFIC_BUSY,
|
||||
|
@ -306,7 +306,7 @@ typedef enum _BTC_SET_TYPE {
|
|||
BTC_SET_ACT_AGGREGATE_CTRL,
|
||||
BTC_SET_ACT_ANTPOSREGRISTRY_CTRL,
|
||||
/*===== for 1Ant ======*/
|
||||
/* type BOOLEAN */
|
||||
/* type bool */
|
||||
|
||||
/* type u1Byte */
|
||||
BTC_SET_U1_RSSI_ADJ_VAL_FOR_1ANT_COEX_TYPE,
|
||||
|
@ -586,14 +586,14 @@ typedef void
|
|||
pu1Byte pCmdBuffer
|
||||
);
|
||||
|
||||
typedef BOOLEAN
|
||||
typedef bool
|
||||
(*BFP_BTC_GET)(
|
||||
void * pBtCoexist,
|
||||
u1Byte getType,
|
||||
void * pOutBuf
|
||||
);
|
||||
|
||||
typedef BOOLEAN
|
||||
typedef bool
|
||||
(*BFP_BTC_SET)(
|
||||
void * pBtCoexist,
|
||||
u1Byte setType,
|
||||
|
@ -606,14 +606,14 @@ typedef u2Byte
|
|||
u4Byte offset,
|
||||
u4Byte value
|
||||
);
|
||||
typedef BOOLEAN
|
||||
typedef bool
|
||||
(*BFP_BTC_SET_BT_ANT_DETECTION)(
|
||||
void * pBtcContext,
|
||||
u1Byte txTime,
|
||||
u1Byte btChnl
|
||||
);
|
||||
|
||||
typedef BOOLEAN
|
||||
typedef bool
|
||||
(*BFP_BTC_SET_BT_TRX_MASK)(
|
||||
void * pBtcContext,
|
||||
u1Byte bt_trx_mask
|
||||
|
@ -685,7 +685,7 @@ typedef u4Byte
|
|||
u1Byte scanType
|
||||
);
|
||||
|
||||
typedef BOOLEAN
|
||||
typedef bool
|
||||
(*BFP_BTC_GET_BT_AFH_MAP_FROM_BT)(
|
||||
void * pBtcContext,
|
||||
u1Byte mapType,
|
||||
|
@ -693,65 +693,65 @@ typedef BOOLEAN
|
|||
);
|
||||
|
||||
struct btc_bt_info {
|
||||
boolean bt_disabled;
|
||||
boolean bt_enable_disable_change;
|
||||
bool bt_disabled;
|
||||
bool bt_enable_disable_change;
|
||||
u8 rssi_adjust_for_agc_table_on;
|
||||
u8 rssi_adjust_for_1ant_coex_type;
|
||||
boolean pre_bt_ctrl_agg_buf_size;
|
||||
boolean bt_ctrl_agg_buf_size;
|
||||
boolean pre_reject_agg_pkt;
|
||||
boolean reject_agg_pkt;
|
||||
boolean increase_scan_dev_num;
|
||||
boolean bt_tx_rx_mask;
|
||||
bool pre_bt_ctrl_agg_buf_size;
|
||||
bool bt_ctrl_agg_buf_size;
|
||||
bool pre_reject_agg_pkt;
|
||||
bool reject_agg_pkt;
|
||||
bool increase_scan_dev_num;
|
||||
bool bt_tx_rx_mask;
|
||||
u8 pre_agg_buf_size;
|
||||
u8 agg_buf_size;
|
||||
boolean bt_busy;
|
||||
boolean limited_dig;
|
||||
bool bt_busy;
|
||||
bool limited_dig;
|
||||
u16 bt_hci_ver;
|
||||
u16 bt_real_fw_ver;
|
||||
u8 bt_fw_ver;
|
||||
u32 get_bt_fw_ver_cnt;
|
||||
u32 bt_get_fw_ver;
|
||||
boolean miracast_plus_bt;
|
||||
bool miracast_plus_bt;
|
||||
|
||||
boolean bt_disable_low_pwr;
|
||||
bool bt_disable_low_pwr;
|
||||
|
||||
boolean bt_ctrl_lps;
|
||||
boolean bt_lps_on;
|
||||
boolean force_to_roam; /* for 1Ant solution */
|
||||
bool bt_ctrl_lps;
|
||||
bool bt_lps_on;
|
||||
bool force_to_roam; /* for 1Ant solution */
|
||||
u8 lps_val;
|
||||
u8 rpwm_val;
|
||||
u32 ra_mask;
|
||||
};
|
||||
|
||||
struct btc_stack_info {
|
||||
boolean profile_notified;
|
||||
bool profile_notified;
|
||||
u16 hci_version; /* stack hci version */
|
||||
u8 num_of_link;
|
||||
boolean bt_link_exist;
|
||||
boolean sco_exist;
|
||||
boolean acl_exist;
|
||||
boolean a2dp_exist;
|
||||
boolean hid_exist;
|
||||
bool bt_link_exist;
|
||||
bool sco_exist;
|
||||
bool acl_exist;
|
||||
bool a2dp_exist;
|
||||
bool hid_exist;
|
||||
u8 num_of_hid;
|
||||
boolean pan_exist;
|
||||
boolean unknown_acl_exist;
|
||||
bool pan_exist;
|
||||
bool unknown_acl_exist;
|
||||
s8 min_bt_rssi;
|
||||
};
|
||||
|
||||
struct btc_bt_link_info {
|
||||
boolean bt_link_exist;
|
||||
boolean bt_hi_pri_link_exist;
|
||||
boolean sco_exist;
|
||||
boolean sco_only;
|
||||
boolean a2dp_exist;
|
||||
boolean a2dp_only;
|
||||
boolean hid_exist;
|
||||
boolean hid_only;
|
||||
boolean pan_exist;
|
||||
boolean pan_only;
|
||||
boolean slave_role;
|
||||
boolean acl_busy;
|
||||
bool bt_link_exist;
|
||||
bool bt_hi_pri_link_exist;
|
||||
bool sco_exist;
|
||||
bool sco_only;
|
||||
bool a2dp_exist;
|
||||
bool a2dp_only;
|
||||
bool hid_exist;
|
||||
bool hid_only;
|
||||
bool pan_exist;
|
||||
bool pan_only;
|
||||
bool slave_role;
|
||||
bool acl_busy;
|
||||
};
|
||||
|
||||
struct btc_statistics {
|
||||
|
@ -775,7 +775,7 @@ struct btc_statistics {
|
|||
};
|
||||
|
||||
struct btc_coexist {
|
||||
BOOLEAN bBinded; /*make sure only one adapter can bind the data context*/
|
||||
bool bBinded; /*make sure only one adapter can bind the data context*/
|
||||
void * Adapter; /*default adapter*/
|
||||
struct btc_board_info board_info;
|
||||
struct btc_bt_info bt_info; /*some bt info referenced by non-bt module*/
|
||||
|
@ -784,10 +784,10 @@ struct btc_coexist {
|
|||
BTC_CHIP_INTERFACE chip_interface;
|
||||
void * odm_priv;
|
||||
|
||||
BOOLEAN initilized;
|
||||
BOOLEAN stop_coex_dm;
|
||||
BOOLEAN manual_control;
|
||||
BOOLEAN bdontenterLPS;
|
||||
bool initilized;
|
||||
bool stop_coex_dm;
|
||||
bool manual_control;
|
||||
bool bdontenterLPS;
|
||||
pu1Byte cli_buf;
|
||||
struct btc_statistics statistics;
|
||||
u1Byte pwrModeVal[10];
|
||||
|
@ -839,7 +839,7 @@ typedef struct btc_coexist *PBTC_COEXIST;
|
|||
|
||||
extern struct btc_coexist GLBtCoexist;
|
||||
|
||||
BOOLEAN
|
||||
bool
|
||||
EXhalbtcoutsrc_InitlizeVariables(
|
||||
void * Adapter
|
||||
);
|
||||
|
@ -854,7 +854,7 @@ EXhalbtcoutsrc_PreLoadFirmware(
|
|||
void
|
||||
EXhalbtcoutsrc_InitHwConfig(
|
||||
PBTC_COEXIST pBtCoexist,
|
||||
BOOLEAN bWifiOnly
|
||||
bool bWifiOnly
|
||||
);
|
||||
void
|
||||
EXhalbtcoutsrc_InitCoexDm(
|
||||
|
|
|
@ -410,7 +410,7 @@ void halbtcoutsrc_DisableLowPower(PBTC_COEXIST pBtCoexist, u8 bLowPwrDisable)
|
|||
void halbtcoutsrc_AggregationCheck(PBTC_COEXIST pBtCoexist)
|
||||
{
|
||||
PADAPTER padapter;
|
||||
BOOLEAN bNeedToAct = _FALSE;
|
||||
bool bNeedToAct = _FALSE;
|
||||
static u32 preTime = 0;
|
||||
u32 curTime = 0;
|
||||
|
||||
|
@ -1286,10 +1286,10 @@ void halbtcoutsrc_DisplayWifiStatus(PBTC_COEXIST pBtCoexist)
|
|||
struct pwrctrl_priv *pwrpriv = adapter_to_pwrctl(padapter);
|
||||
u8 *cliBuf = pBtCoexist->cli_buf;
|
||||
s32 wifiRssi = 0, btHsRssi = 0;
|
||||
BOOLEAN bScan = _FALSE, bLink = _FALSE, bRoam = _FALSE, bWifiBusy = _FALSE, bWifiUnderBMode = _FALSE;
|
||||
bool bScan = _FALSE, bLink = _FALSE, bRoam = _FALSE, bWifiBusy = _FALSE, bWifiUnderBMode = _FALSE;
|
||||
u32 wifiBw = BTC_WIFI_BW_HT20, wifiTrafficDir = BTC_WIFI_TRAFFIC_TX, wifiFreq = BTC_FREQ_2_4G;
|
||||
u32 wifiLinkStatus = 0x0;
|
||||
BOOLEAN bBtHsOn = _FALSE, bLowPower = _FALSE;
|
||||
bool bBtHsOn = _FALSE, bLowPower = _FALSE;
|
||||
u8 wifiChnl = 0, wifiP2PChnl = 0, nScanAPNum = 0, FwPSState;
|
||||
u32 iqk_cnt_total = 0, iqk_cnt_ok = 0, iqk_cnt_fail = 0;
|
||||
|
||||
|
@ -1582,7 +1582,7 @@ u8 halbtcoutsrc_SetBtAntDetection(void *pBtcContext, u8 txTime, u8 btChnl)
|
|||
return _FALSE;
|
||||
}
|
||||
|
||||
BOOLEAN
|
||||
bool
|
||||
halbtcoutsrc_SetBtTRXMASK(
|
||||
IN void * pBtcContext,
|
||||
IN u1Byte bt_trx_mask
|
||||
|
|
|
@ -244,7 +244,7 @@ u8 hal_com_config_channel_plan(
|
|||
char *sw_alpha2,
|
||||
u8 sw_chplan,
|
||||
u8 def_chplan,
|
||||
BOOLEAN AutoLoadFail
|
||||
bool AutoLoadFail
|
||||
)
|
||||
{
|
||||
PHAL_DATA_TYPE pHalData;
|
||||
|
@ -326,13 +326,13 @@ done:
|
|||
return chplan;
|
||||
}
|
||||
|
||||
BOOLEAN
|
||||
bool
|
||||
HAL_IsLegalChannel(
|
||||
PADAPTER Adapter,
|
||||
u32 Channel
|
||||
)
|
||||
{
|
||||
BOOLEAN bLegalChannel = _TRUE;
|
||||
bool bLegalChannel = _TRUE;
|
||||
|
||||
if (Channel > 14) {
|
||||
if (is_supported_5g(Adapter->registrypriv.wireless_mode) == _FALSE) {
|
||||
|
@ -960,7 +960,7 @@ _OneOutPipeMapping(
|
|||
static void
|
||||
_TwoOutPipeMapping(
|
||||
PADAPTER pAdapter,
|
||||
BOOLEAN bWIFICfg
|
||||
bool bWIFICfg
|
||||
)
|
||||
{
|
||||
struct dvobj_priv *pdvobjpriv = adapter_to_dvobj(pAdapter);
|
||||
|
@ -1004,7 +1004,7 @@ _TwoOutPipeMapping(
|
|||
|
||||
static void _ThreeOutPipeMapping(
|
||||
PADAPTER pAdapter,
|
||||
BOOLEAN bWIFICfg
|
||||
bool bWIFICfg
|
||||
)
|
||||
{
|
||||
struct dvobj_priv *pdvobjpriv = adapter_to_dvobj(pAdapter);
|
||||
|
@ -1046,7 +1046,7 @@ static void _ThreeOutPipeMapping(
|
|||
}
|
||||
static void _FourOutPipeMapping(
|
||||
PADAPTER pAdapter,
|
||||
BOOLEAN bWIFICfg
|
||||
bool bWIFICfg
|
||||
)
|
||||
{
|
||||
struct dvobj_priv *pdvobjpriv = adapter_to_dvobj(pAdapter);
|
||||
|
@ -1086,7 +1086,7 @@ static void _FourOutPipeMapping(
|
|||
}
|
||||
|
||||
}
|
||||
BOOLEAN
|
||||
bool
|
||||
Hal_MappingOutPipe(
|
||||
PADAPTER pAdapter,
|
||||
u8 NumOutPipe
|
||||
|
@ -1094,9 +1094,9 @@ Hal_MappingOutPipe(
|
|||
{
|
||||
struct registry_priv *pregistrypriv = &pAdapter->registrypriv;
|
||||
|
||||
BOOLEAN bWIFICfg = (pregistrypriv->wifi_spec) ? _TRUE : _FALSE;
|
||||
bool bWIFICfg = (pregistrypriv->wifi_spec) ? _TRUE : _FALSE;
|
||||
|
||||
BOOLEAN result = _TRUE;
|
||||
bool result = _TRUE;
|
||||
|
||||
switch (NumOutPipe) {
|
||||
case 2:
|
||||
|
@ -5634,7 +5634,7 @@ void rtw_hal_construct_NullFunctionData(
|
|||
}
|
||||
|
||||
static void rtw_hal_construct_ProbeRsp(_adapter *padapter, u8 *pframe, u32 *pLength,
|
||||
u8 *StaAddr, BOOLEAN bHideSSID)
|
||||
u8 *StaAddr, bool bHideSSID)
|
||||
{
|
||||
struct rtw_ieee80211_hdr *pwlanhdr;
|
||||
__le16 *fctrl;
|
||||
|
@ -8399,7 +8399,7 @@ void SetHalODMVar(
|
|||
PADAPTER Adapter,
|
||||
HAL_ODM_VARIABLE eVariable,
|
||||
void * pValue1,
|
||||
BOOLEAN bSet)
|
||||
bool bSet)
|
||||
{
|
||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
||||
struct PHY_DM_STRUCT *podmpriv = &pHalData->odmpriv;
|
||||
|
@ -8649,7 +8649,7 @@ u32 rtw_phydm_ability_ops(_adapter *adapter, HAL_PHYDM_OPS ops, u32 ability)
|
|||
}
|
||||
|
||||
|
||||
BOOLEAN
|
||||
bool
|
||||
eqNByte(
|
||||
u8 *str1,
|
||||
u8 *str2,
|
||||
|
@ -8691,7 +8691,7 @@ MapCharToHexDigit(
|
|||
* Description:
|
||||
* Parse hex number from the string pucStr.
|
||||
* */
|
||||
BOOLEAN
|
||||
bool
|
||||
GetHexValueFromString(
|
||||
char *szStr,
|
||||
u32 *pu4bVal,
|
||||
|
@ -8740,7 +8740,7 @@ GetHexValueFromString(
|
|||
return _TRUE;
|
||||
}
|
||||
|
||||
BOOLEAN
|
||||
bool
|
||||
GetFractionValueFromString(
|
||||
char *szStr,
|
||||
u8 *pInteger,
|
||||
|
@ -8791,7 +8791,7 @@ GetFractionValueFromString(
|
|||
* Description:
|
||||
* Return TRUE if szStr is comment out with leading " */ /* ".
|
||||
* */
|
||||
BOOLEAN
|
||||
bool
|
||||
IsCommentString(
|
||||
char *szStr
|
||||
)
|
||||
|
@ -8802,7 +8802,7 @@ IsCommentString(
|
|||
return _FALSE;
|
||||
}
|
||||
|
||||
BOOLEAN
|
||||
bool
|
||||
GetU1ByteIntegerFromStringInDecimal(
|
||||
char *Str,
|
||||
u8 *pInt
|
||||
|
@ -8826,7 +8826,7 @@ GetU1ByteIntegerFromStringInDecimal(
|
|||
/* <20121004, Kordan> For example,
|
||||
* ParseQualifiedString(inString, 0, outString, '[', ']') gets "Kordan" from a string "Hello [Kordan]".
|
||||
* If RightQualifier does not exist, it will hang on in the while loop */
|
||||
BOOLEAN
|
||||
bool
|
||||
ParseQualifiedString(
|
||||
char *In,
|
||||
u32 *Start,
|
||||
|
@ -8850,7 +8850,7 @@ ParseQualifiedString(
|
|||
return _TRUE;
|
||||
}
|
||||
|
||||
BOOLEAN
|
||||
bool
|
||||
isAllSpaceOrTab(
|
||||
u8 *data,
|
||||
u8 size
|
||||
|
|
|
@ -701,7 +701,7 @@ static void hal_load_pg_txpwr_info(
|
|||
TxPowerInfo24G *pwr_info_2g,
|
||||
TxPowerInfo5G *pwr_info_5g,
|
||||
u8 *pg_data,
|
||||
BOOLEAN AutoLoadFail
|
||||
bool AutoLoadFail
|
||||
)
|
||||
{
|
||||
struct hal_spec_t *hal_spec = GET_HAL_SPEC(adapter);
|
||||
|
@ -1204,7 +1204,7 @@ phy_SetTxPowerByRateBase(
|
|||
pHalData->TxPwrByRateBase5G[RfPath][TxNum][RateSection - 1] = Value;
|
||||
}
|
||||
|
||||
static inline BOOLEAN phy_is_txpwr_by_rate_undefined_of_band_path(_adapter *adapter, u8 band, u8 path)
|
||||
static inline bool phy_is_txpwr_by_rate_undefined_of_band_path(_adapter *adapter, u8 band, u8 path)
|
||||
{
|
||||
struct hal_spec_t *hal_spec = GET_HAL_SPEC(adapter);
|
||||
HAL_DATA_TYPE *hal_data = GET_HAL_DATA(adapter);
|
||||
|
@ -1949,10 +1949,10 @@ exit:
|
|||
return;
|
||||
}
|
||||
|
||||
static BOOLEAN phy_GetChnlIndex(u8 Channel, u8 *ChannelIdx)
|
||||
static bool phy_GetChnlIndex(u8 Channel, u8 *ChannelIdx)
|
||||
{
|
||||
u8 i = 0;
|
||||
BOOLEAN bIn24G = _TRUE;
|
||||
bool bIn24G = _TRUE;
|
||||
|
||||
if (Channel <= 14) {
|
||||
bIn24G = _TRUE;
|
||||
|
@ -1978,7 +1978,7 @@ PHY_GetTxPowerIndexBase(
|
|||
u8 Rate,
|
||||
CHANNEL_WIDTH BandWidth,
|
||||
u8 Channel,
|
||||
PBOOLEAN bIn24G
|
||||
bool * bIn24G
|
||||
)
|
||||
{
|
||||
PHAL_DATA_TYPE pHalData = GET_HAL_DATA(pAdapter);
|
||||
|
@ -2562,7 +2562,7 @@ phy_set_tx_power_level_by_path(
|
|||
)
|
||||
{
|
||||
PHAL_DATA_TYPE pHalData = GET_HAL_DATA(Adapter);
|
||||
BOOLEAN bIsIn24G = (pHalData->current_band_type == BAND_ON_2_4G);
|
||||
bool bIsIn24G = (pHalData->current_band_type == BAND_ON_2_4G);
|
||||
|
||||
/* if ( pMgntInfo->RegNByteAccess == 0 ) */
|
||||
{
|
||||
|
@ -2651,7 +2651,7 @@ static s8 _phy_get_txpwr_lmt(
|
|||
u8 RfPath,
|
||||
u8 DataRate,
|
||||
u8 Channel,
|
||||
BOOLEAN no_sc
|
||||
bool no_sc
|
||||
)
|
||||
{
|
||||
struct dvobj_priv *dvobj = adapter_to_dvobj(Adapter);
|
||||
|
@ -2816,7 +2816,7 @@ PHY_GetTxPowerLimit(
|
|||
u8 Channel
|
||||
)
|
||||
{
|
||||
BOOLEAN no_sc = _FALSE;
|
||||
bool no_sc = _FALSE;
|
||||
|
||||
/* MP mode channel don't use secondary channel */
|
||||
if (rtw_mi_mp_mode_check(Adapter) == _TRUE)
|
||||
|
@ -4157,7 +4157,7 @@ static int phy_ParseBBPgParaFile(PADAPTER Adapter, char *buffer)
|
|||
char *szLine, *ptmp;
|
||||
u32 u4bRegOffset, u4bRegMask, u4bRegValue;
|
||||
u32 u4bMove;
|
||||
BOOLEAN firstLine = _TRUE;
|
||||
bool firstLine = _TRUE;
|
||||
u8 tx_num = 0;
|
||||
u8 band = 0, rf_path = 0;
|
||||
|
||||
|
|
|
@ -277,7 +277,7 @@ u8 rtw_hal_get_def_var(_adapter *padapter, HAL_DEF_VARIABLE eVariable, void * pV
|
|||
return padapter->hal_func.get_hal_def_var_handler(padapter, eVariable, pValue);
|
||||
}
|
||||
|
||||
void rtw_hal_set_odm_var(_adapter *padapter, HAL_ODM_VARIABLE eVariable, void * pValue1, BOOLEAN bSet)
|
||||
void rtw_hal_set_odm_var(_adapter *padapter, HAL_ODM_VARIABLE eVariable, void * pValue1, bool bSet)
|
||||
{
|
||||
padapter->hal_func.SetHalODMVarHandler(padapter, eVariable, pValue1, bSet);
|
||||
}
|
||||
|
|
|
@ -95,7 +95,7 @@ void hal_mpt_GetPowerTracking(PADAPTER padapter, u8 *enable)
|
|||
}
|
||||
|
||||
|
||||
void hal_mpt_CCKTxPowerAdjust(PADAPTER Adapter, BOOLEAN bInCH14)
|
||||
void hal_mpt_CCKTxPowerAdjust(PADAPTER Adapter, bool bInCH14)
|
||||
{
|
||||
u32 TempVal = 0, TempVal2 = 0, TempVal3 = 0;
|
||||
u32 CurrCCKSwingVal = 0, CCKSwingIndex = 12;
|
||||
|
|
|
@ -106,7 +106,7 @@ PHY_RFShadowWrite(
|
|||
} /* PHY_RFShadowWrite */
|
||||
|
||||
|
||||
BOOLEAN
|
||||
bool
|
||||
PHY_RFShadowCompare(
|
||||
PADAPTER Adapter,
|
||||
u8 eRFPath,
|
||||
|
|
|
@ -808,7 +808,7 @@ SwLedBlink7(
|
|||
{
|
||||
PADAPTER Adapter = pLed->padapter;
|
||||
struct mlme_priv *pmlmepriv = &(Adapter->mlmepriv);
|
||||
BOOLEAN bStopBlinking = _FALSE;
|
||||
bool bStopBlinking = _FALSE;
|
||||
|
||||
/* Change LED according to BlinkingLedState specified. */
|
||||
if (pLed->BlinkingLedState == RTW_LED_ON) {
|
||||
|
@ -915,7 +915,7 @@ SwLedBlink9(
|
|||
{
|
||||
PADAPTER Adapter = pLed->padapter;
|
||||
struct mlme_priv *pmlmepriv = &(Adapter->mlmepriv);
|
||||
BOOLEAN bStopBlinking = _FALSE;
|
||||
bool bStopBlinking = _FALSE;
|
||||
|
||||
/* Change LED according to BlinkingLedState specified. */
|
||||
if (pLed->BlinkingLedState == RTW_LED_ON) {
|
||||
|
@ -1142,7 +1142,7 @@ SwLedBlink10(
|
|||
{
|
||||
PADAPTER Adapter = pLed->padapter;
|
||||
struct mlme_priv *pmlmepriv = &(Adapter->mlmepriv);
|
||||
BOOLEAN bStopBlinking = _FALSE;
|
||||
bool bStopBlinking = _FALSE;
|
||||
|
||||
/* Change LED according to BlinkingLedState specified. */
|
||||
if (pLed->BlinkingLedState == RTW_LED_ON) {
|
||||
|
@ -1331,7 +1331,7 @@ SwLedBlink11(
|
|||
{
|
||||
PADAPTER Adapter = pLed->padapter;
|
||||
struct mlme_priv *pmlmepriv = &(Adapter->mlmepriv);
|
||||
BOOLEAN bStopBlinking = _FALSE;
|
||||
bool bStopBlinking = _FALSE;
|
||||
|
||||
/* Change LED according to BlinkingLedState specified. */
|
||||
if (pLed->BlinkingLedState == RTW_LED_ON) {
|
||||
|
@ -1402,7 +1402,7 @@ SwLedBlink12(
|
|||
{
|
||||
PADAPTER Adapter = pLed->padapter;
|
||||
struct mlme_priv *pmlmepriv = &(Adapter->mlmepriv);
|
||||
BOOLEAN bStopBlinking = _FALSE;
|
||||
bool bStopBlinking = _FALSE;
|
||||
|
||||
/* Change LED according to BlinkingLedState specified. */
|
||||
if (pLed->BlinkingLedState == RTW_LED_ON) {
|
||||
|
@ -1470,7 +1470,7 @@ SwLedBlink13(
|
|||
{
|
||||
PADAPTER Adapter = pLed->padapter;
|
||||
struct mlme_priv *pmlmepriv = &(Adapter->mlmepriv);
|
||||
BOOLEAN bStopBlinking = _FALSE;
|
||||
bool bStopBlinking = _FALSE;
|
||||
static u8 LinkBlinkCnt = 0;
|
||||
|
||||
/* Change LED according to BlinkingLedState specified. */
|
||||
|
@ -1531,7 +1531,7 @@ SwLedBlink14(
|
|||
{
|
||||
PADAPTER Adapter = pLed->padapter;
|
||||
struct mlme_priv *pmlmepriv = &(Adapter->mlmepriv);
|
||||
BOOLEAN bStopBlinking = _FALSE;
|
||||
bool bStopBlinking = _FALSE;
|
||||
static u8 LinkBlinkCnt = 0;
|
||||
|
||||
/* Change LED according to BlinkingLedState specified. */
|
||||
|
@ -1582,7 +1582,7 @@ SwLedBlink15(
|
|||
{
|
||||
PADAPTER Adapter = pLed->padapter;
|
||||
struct mlme_priv *pmlmepriv = &(Adapter->mlmepriv);
|
||||
BOOLEAN bStopBlinking = _FALSE;
|
||||
bool bStopBlinking = _FALSE;
|
||||
static u8 LinkBlinkCnt = 0;
|
||||
/* Change LED according to BlinkingLedState specified. */
|
||||
|
||||
|
@ -1617,7 +1617,7 @@ SwLedBlink15(
|
|||
break;
|
||||
|
||||
case LED_BLINK_NO_LINK: {
|
||||
static BOOLEAN bLedOn = _TRUE;
|
||||
static bool bLedOn = _TRUE;
|
||||
if (bLedOn) {
|
||||
bLedOn = _FALSE;
|
||||
pLed->BlinkingLedState = RTW_LED_OFF;
|
||||
|
@ -1631,7 +1631,7 @@ SwLedBlink15(
|
|||
break;
|
||||
|
||||
case LED_BLINK_LINK_IDEL: {
|
||||
static BOOLEAN bLedOn = _TRUE;
|
||||
static bool bLedOn = _TRUE;
|
||||
if (bLedOn) {
|
||||
bLedOn = _FALSE;
|
||||
pLed->BlinkingLedState = RTW_LED_OFF;
|
||||
|
@ -3075,7 +3075,7 @@ SwLedControlMode9(
|
|||
PLED_USB pLed = &(ledpriv->SwLed0);
|
||||
PLED_USB pLed1 = &(ledpriv->SwLed1);
|
||||
PLED_USB pLed2 = &(ledpriv->SwLed2);
|
||||
BOOLEAN bWPSOverLap = _FALSE;
|
||||
bool bWPSOverLap = _FALSE;
|
||||
/* RTW_INFO("LedAction=%d\n", LedAction); */
|
||||
switch (LedAction) {
|
||||
case LED_CTL_START_TO_LINK:
|
||||
|
|
|
@ -399,8 +399,7 @@ enum phy_reg_pg_type {
|
|||
|
||||
/*2011/09/22 MH Copy from SD4 defined structure. We use to support PHY DM integration.*/
|
||||
|
||||
struct PHY_DM_STRUCT
|
||||
{
|
||||
struct PHY_DM_STRUCT {
|
||||
/*Add for different team use temporarily*/
|
||||
struct _ADAPTER *adapter; /*For CE/NIC team*/
|
||||
struct rtl8192cd_priv *priv; /*For AP/ADSL team*/
|
||||
|
|
|
@ -1646,7 +1646,7 @@ void odm_fast_ant_training_callback(struct timer_list *t)
|
|||
#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 15, 0)
|
||||
struct PHY_DM_STRUCT *p_dm_odm = (struct PHY_DM_STRUCT *)p_dm_void;
|
||||
#else
|
||||
struct PHY_DM_STRUCT *p_dm_odm = from_timer(p_gm_odm, t, fast_ant_training_timer);
|
||||
struct PHY_DM_STRUCT *p_dm_odm = from_timer(p_dm_odm, t, fast_ant_training_timer);
|
||||
#endif
|
||||
struct _ADAPTER *padapter = p_dm_odm->adapter;
|
||||
|
||||
|
|
|
@ -37,8 +37,8 @@
|
|||
/*---------------------------End Define Parameters-------------------------------*/
|
||||
|
||||
struct _IQK_INFORMATION {
|
||||
boolean LOK_fail[NUM];
|
||||
boolean IQK_fail[2][NUM];
|
||||
bool LOK_fail[NUM];
|
||||
bool IQK_fail[2][NUM];
|
||||
u32 iqc_matrix[2][NUM];
|
||||
u8 iqk_times;
|
||||
u32 rf_reg18;
|
||||
|
@ -48,7 +48,7 @@ struct _IQK_INFORMATION {
|
|||
u8 kcount;
|
||||
|
||||
u32 iqk_channel[2];
|
||||
boolean IQK_fail_report[2][4][2]; /*channel/path/TRX(TX:0, RX:1) */
|
||||
bool IQK_fail_report[2][4][2]; /*channel/path/TRX(TX:0, RX:1) */
|
||||
u32 IQK_CFIR_real[2][4][2][8]; /*channel / path / TRX(TX:0, RX:1) / CFIR_real*/
|
||||
u32 IQK_CFIR_imag[2][4][2][8]; /*channel / path / TRX(TX:0, RX:1) / CFIR_imag*/
|
||||
u8 retry_count[2][4][3]; /* channel / path / (TXK:0, RXK1:1, RXK2:2) */
|
||||
|
@ -58,8 +58,8 @@ struct _IQK_INFORMATION {
|
|||
u16 RXIQK_AGC[2][4]; /*channel / path*/
|
||||
u32 bypass_iqk[2][4]; /*channel / 0xc94/0xe94*/
|
||||
u32 tmp_GNTWL;
|
||||
boolean is_BTG;
|
||||
boolean isbnd;
|
||||
bool is_BTG;
|
||||
bool isbnd;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -575,8 +575,8 @@ void rtl8188e_set_FwJoinBssReport_cmd(PADAPTER padapter, u8 mstatus)
|
|||
struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
|
||||
struct sta_info *psta = NULL;
|
||||
#endif
|
||||
BOOLEAN bSendBeacon = _FALSE;
|
||||
BOOLEAN bcn_valid = _FALSE;
|
||||
bool bSendBeacon = _FALSE;
|
||||
bool bcn_valid = _FALSE;
|
||||
u8 DLBcnCount = 0;
|
||||
u32 poll = 0;
|
||||
|
||||
|
|
|
@ -212,8 +212,8 @@ rtl8188e_HalDmWatchDog(
|
|||
PADAPTER Adapter
|
||||
)
|
||||
{
|
||||
BOOLEAN bFwCurrentInPSMode = _FALSE;
|
||||
BOOLEAN bFwPSAwake = _TRUE;
|
||||
bool bFwCurrentInPSMode = _FALSE;
|
||||
bool bFwPSAwake = _TRUE;
|
||||
PHAL_DATA_TYPE pHalData = GET_HAL_DATA(Adapter);
|
||||
struct PHY_DM_STRUCT *pDM_Odm = &(pHalData->odmpriv);
|
||||
|
||||
|
|
|
@ -490,7 +490,7 @@ void rtw_IOL_cmd_tx_pkt_buf_dump(ADAPTER *Adapter, int data_len)
|
|||
static void
|
||||
_FWDownloadEnable_8188E(
|
||||
PADAPTER padapter,
|
||||
BOOLEAN enable
|
||||
bool enable
|
||||
)
|
||||
{
|
||||
u8 tmp;
|
||||
|
@ -771,7 +771,7 @@ exit:
|
|||
* Download 8192C firmware code.
|
||||
*
|
||||
* */
|
||||
s32 rtl8188e_FirmwareDownload(PADAPTER padapter, BOOLEAN bUsedWoWLANFw)
|
||||
s32 rtl8188e_FirmwareDownload(PADAPTER padapter, bool bUsedWoWLANFw)
|
||||
{
|
||||
s32 rtStatus = _SUCCESS;
|
||||
u8 write_fw = 0;
|
||||
|
@ -970,27 +970,27 @@ enum {
|
|||
LDOE25_SHIFT = 28 ,
|
||||
};
|
||||
|
||||
static BOOLEAN
|
||||
static bool
|
||||
hal_EfusePgPacketWrite2ByteHeader(
|
||||
PADAPTER pAdapter,
|
||||
u8 efuseType,
|
||||
u16 *pAddr,
|
||||
PPGPKT_STRUCT pTargetPkt,
|
||||
BOOLEAN bPseudoTest);
|
||||
static BOOLEAN
|
||||
bool bPseudoTest);
|
||||
static bool
|
||||
hal_EfusePgPacketWrite1ByteHeader(
|
||||
PADAPTER pAdapter,
|
||||
u8 efuseType,
|
||||
u16 *pAddr,
|
||||
PPGPKT_STRUCT pTargetPkt,
|
||||
BOOLEAN bPseudoTest);
|
||||
static BOOLEAN
|
||||
bool bPseudoTest);
|
||||
static bool
|
||||
hal_EfusePgPacketWriteData(
|
||||
PADAPTER pAdapter,
|
||||
u8 efuseType,
|
||||
u16 *pAddr,
|
||||
PPGPKT_STRUCT pTargetPkt,
|
||||
BOOLEAN bPseudoTest);
|
||||
bool bPseudoTest);
|
||||
|
||||
static void
|
||||
hal_EfusePowerSwitch_RTL8188E(
|
||||
|
@ -1094,7 +1094,7 @@ Hal_EfuseReadEFuse88E(
|
|||
u16 _offset,
|
||||
u16 _size_byte,
|
||||
u8 *pbuf,
|
||||
BOOLEAN bPseudoTest
|
||||
bool bPseudoTest
|
||||
)
|
||||
{
|
||||
/* u8 efuseTbl[EFUSE_MAP_LEN_88E]; */
|
||||
|
@ -1275,14 +1275,14 @@ exit:
|
|||
}
|
||||
|
||||
|
||||
static BOOLEAN
|
||||
static bool
|
||||
Hal_EfuseSwitchToBank(
|
||||
PADAPTER pAdapter,
|
||||
u8 bank,
|
||||
BOOLEAN bPseudoTest
|
||||
bool bPseudoTest
|
||||
)
|
||||
{
|
||||
BOOLEAN bRet = _FALSE;
|
||||
bool bRet = _FALSE;
|
||||
u32 value32 = 0;
|
||||
|
||||
/* RTPRINT(FEEPROM, EFUSE_PG, ("Efuse switch bank to %d\n", bank)); */
|
||||
|
@ -1303,7 +1303,7 @@ ReadEFuseByIC(
|
|||
u16 _offset,
|
||||
u16 _size_byte,
|
||||
u8 *pbuf,
|
||||
BOOLEAN bPseudoTest
|
||||
bool bPseudoTest
|
||||
)
|
||||
{
|
||||
PHAL_DATA_TYPE pHalData = GET_HAL_DATA(Adapter);
|
||||
|
@ -1359,7 +1359,7 @@ ReadEFuse_Pseudo(
|
|||
u16 _offset,
|
||||
u16 _size_byte,
|
||||
u8 *pbuf,
|
||||
BOOLEAN bPseudoTest
|
||||
bool bPseudoTest
|
||||
)
|
||||
{
|
||||
Hal_EfuseReadEFuse88E(Adapter, _offset, _size_byte, pbuf, bPseudoTest);
|
||||
|
@ -1372,7 +1372,7 @@ rtl8188e_ReadEFuse(
|
|||
u16 _offset,
|
||||
u16 _size_byte,
|
||||
u8 *pbuf,
|
||||
BOOLEAN bPseudoTest
|
||||
bool bPseudoTest
|
||||
)
|
||||
{
|
||||
if (bPseudoTest)
|
||||
|
@ -1509,7 +1509,7 @@ rtl8188e_EFUSE_GetEfuseDefinition(
|
|||
u8 efuseType,
|
||||
u8 type,
|
||||
void *pOut,
|
||||
BOOLEAN bPseudoTest
|
||||
bool bPseudoTest
|
||||
)
|
||||
{
|
||||
if (bPseudoTest)
|
||||
|
@ -1523,7 +1523,7 @@ Hal_EfuseWordEnableDataWrite(PADAPTER pAdapter,
|
|||
u16 efuse_addr,
|
||||
u8 word_en,
|
||||
u8 *data,
|
||||
BOOLEAN bPseudoTest)
|
||||
bool bPseudoTest)
|
||||
{
|
||||
u16 tmpaddr = 0;
|
||||
u16 start_addr = efuse_addr;
|
||||
|
@ -1592,7 +1592,7 @@ Hal_EfuseWordEnableDataWrite_Pseudo(PADAPTER pAdapter,
|
|||
u16 efuse_addr,
|
||||
u8 word_en,
|
||||
u8 *data,
|
||||
BOOLEAN bPseudoTest)
|
||||
bool bPseudoTest)
|
||||
{
|
||||
u8 ret = 0;
|
||||
|
||||
|
@ -1606,7 +1606,7 @@ rtl8188e_Efuse_WordEnableDataWrite(PADAPTER pAdapter,
|
|||
u16 efuse_addr,
|
||||
u8 word_en,
|
||||
u8 *data,
|
||||
BOOLEAN bPseudoTest)
|
||||
bool bPseudoTest)
|
||||
{
|
||||
u8 ret = 0;
|
||||
|
||||
|
@ -1621,7 +1621,7 @@ rtl8188e_Efuse_WordEnableDataWrite(PADAPTER pAdapter,
|
|||
|
||||
static u16
|
||||
hal_EfuseGetCurrentSize_8188e(PADAPTER pAdapter,
|
||||
BOOLEAN bPseudoTest)
|
||||
bool bPseudoTest)
|
||||
{
|
||||
int bContinual = _TRUE;
|
||||
|
||||
|
@ -1674,7 +1674,7 @@ hal_EfuseGetCurrentSize_8188e(PADAPTER pAdapter,
|
|||
|
||||
static u16
|
||||
Hal_EfuseGetCurrentSize_Pseudo(PADAPTER pAdapter,
|
||||
BOOLEAN bPseudoTest)
|
||||
bool bPseudoTest)
|
||||
{
|
||||
u16 ret = 0;
|
||||
|
||||
|
@ -1688,7 +1688,7 @@ static u16
|
|||
rtl8188e_EfuseGetCurrentSize(
|
||||
PADAPTER pAdapter,
|
||||
u8 efuseType,
|
||||
BOOLEAN bPseudoTest)
|
||||
bool bPseudoTest)
|
||||
{
|
||||
u16 ret = 0;
|
||||
|
||||
|
@ -1707,7 +1707,7 @@ hal_EfusePgPacketRead_8188e(
|
|||
PADAPTER pAdapter,
|
||||
u8 offset,
|
||||
u8 *data,
|
||||
BOOLEAN bPseudoTest)
|
||||
bool bPseudoTest)
|
||||
{
|
||||
u8 ReadState = PG_STATE_HEADER;
|
||||
|
||||
|
@ -1804,7 +1804,7 @@ static int
|
|||
Hal_EfusePgPacketRead(PADAPTER pAdapter,
|
||||
u8 offset,
|
||||
u8 *data,
|
||||
BOOLEAN bPseudoTest)
|
||||
bool bPseudoTest)
|
||||
{
|
||||
int ret = 0;
|
||||
|
||||
|
@ -1818,7 +1818,7 @@ static int
|
|||
Hal_EfusePgPacketRead_Pseudo(PADAPTER pAdapter,
|
||||
u8 offset,
|
||||
u8 *data,
|
||||
BOOLEAN bPseudoTest)
|
||||
bool bPseudoTest)
|
||||
{
|
||||
int ret = 0;
|
||||
|
||||
|
@ -1831,7 +1831,7 @@ static int
|
|||
rtl8188e_Efuse_PgPacketRead(PADAPTER pAdapter,
|
||||
u8 offset,
|
||||
u8 *data,
|
||||
BOOLEAN bPseudoTest)
|
||||
bool bPseudoTest)
|
||||
{
|
||||
int ret = 0;
|
||||
|
||||
|
@ -1843,13 +1843,13 @@ rtl8188e_Efuse_PgPacketRead(PADAPTER pAdapter,
|
|||
return ret;
|
||||
}
|
||||
|
||||
static BOOLEAN
|
||||
static bool
|
||||
hal_EfuseFixHeaderProcess(
|
||||
PADAPTER pAdapter,
|
||||
u8 efuseType,
|
||||
PPGPKT_STRUCT pFixPkt,
|
||||
u16 *pAddr,
|
||||
BOOLEAN bPseudoTest
|
||||
bool bPseudoTest
|
||||
)
|
||||
{
|
||||
u8 originaldata[8], badworden = 0;
|
||||
|
@ -1877,15 +1877,15 @@ hal_EfuseFixHeaderProcess(
|
|||
return _TRUE;
|
||||
}
|
||||
|
||||
static BOOLEAN
|
||||
static bool
|
||||
hal_EfusePgPacketWrite2ByteHeader(
|
||||
PADAPTER pAdapter,
|
||||
u8 efuseType,
|
||||
u16 *pAddr,
|
||||
PPGPKT_STRUCT pTargetPkt,
|
||||
BOOLEAN bPseudoTest)
|
||||
bool bPseudoTest)
|
||||
{
|
||||
BOOLEAN bRet = _FALSE, bContinual = _TRUE;
|
||||
bool 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;
|
||||
|
@ -1960,15 +1960,15 @@ hal_EfusePgPacketWrite2ByteHeader(
|
|||
return bRet;
|
||||
}
|
||||
|
||||
static BOOLEAN
|
||||
static bool
|
||||
hal_EfusePgPacketWrite1ByteHeader(
|
||||
PADAPTER pAdapter,
|
||||
u8 efuseType,
|
||||
u16 *pAddr,
|
||||
PPGPKT_STRUCT pTargetPkt,
|
||||
BOOLEAN bPseudoTest)
|
||||
bool bPseudoTest)
|
||||
{
|
||||
BOOLEAN bRet = _FALSE;
|
||||
bool bRet = _FALSE;
|
||||
u8 pg_header = 0, tmp_header = 0;
|
||||
u16 efuse_addr = *pAddr;
|
||||
u8 repeatcnt = 0;
|
||||
|
@ -2006,15 +2006,15 @@ hal_EfusePgPacketWrite1ByteHeader(
|
|||
return bRet;
|
||||
}
|
||||
|
||||
static BOOLEAN
|
||||
static bool
|
||||
hal_EfusePgPacketWriteData(
|
||||
PADAPTER pAdapter,
|
||||
u8 efuseType,
|
||||
u16 *pAddr,
|
||||
PPGPKT_STRUCT pTargetPkt,
|
||||
BOOLEAN bPseudoTest)
|
||||
bool bPseudoTest)
|
||||
{
|
||||
BOOLEAN bRet = _FALSE;
|
||||
bool bRet = _FALSE;
|
||||
u16 efuse_addr = *pAddr;
|
||||
u8 badworden = 0;
|
||||
u32 PgWriteSuccess = 0;
|
||||
|
@ -2040,15 +2040,15 @@ hal_EfusePgPacketWriteData(
|
|||
return bRet;
|
||||
}
|
||||
|
||||
static BOOLEAN
|
||||
static bool
|
||||
hal_EfusePgPacketWriteHeader(
|
||||
PADAPTER pAdapter,
|
||||
u8 efuseType,
|
||||
u16 *pAddr,
|
||||
PPGPKT_STRUCT pTargetPkt,
|
||||
BOOLEAN bPseudoTest)
|
||||
bool bPseudoTest)
|
||||
{
|
||||
BOOLEAN bRet = _FALSE;
|
||||
bool bRet = _FALSE;
|
||||
|
||||
if (pTargetPkt->offset >= EFUSE_MAX_SECTION_BASE)
|
||||
bRet = hal_EfusePgPacketWrite2ByteHeader(pAdapter, efuseType, pAddr, pTargetPkt, bPseudoTest);
|
||||
|
@ -2058,7 +2058,7 @@ hal_EfusePgPacketWriteHeader(
|
|||
return bRet;
|
||||
}
|
||||
|
||||
static BOOLEAN
|
||||
static bool
|
||||
wordEnMatched(
|
||||
PPGPKT_STRUCT pTargetPkt,
|
||||
PPGPKT_STRUCT pCurPkt,
|
||||
|
@ -2094,15 +2094,15 @@ wordEnMatched(
|
|||
return _FALSE;
|
||||
}
|
||||
|
||||
static BOOLEAN
|
||||
static bool
|
||||
hal_EfuseCheckIfDatafollowed(
|
||||
PADAPTER pAdapter,
|
||||
u8 word_cnts,
|
||||
u16 startAddr,
|
||||
BOOLEAN bPseudoTest
|
||||
bool bPseudoTest
|
||||
)
|
||||
{
|
||||
BOOLEAN bRet = _FALSE;
|
||||
bool bRet = _FALSE;
|
||||
u8 i, efuse_data;
|
||||
|
||||
for (i = 0; i < (word_cnts * 2) ; i++) {
|
||||
|
@ -2113,16 +2113,16 @@ hal_EfuseCheckIfDatafollowed(
|
|||
return bRet;
|
||||
}
|
||||
|
||||
static BOOLEAN
|
||||
static bool
|
||||
hal_EfusePartialWriteCheck(
|
||||
PADAPTER pAdapter,
|
||||
u8 efuseType,
|
||||
u16 *pAddr,
|
||||
PPGPKT_STRUCT pTargetPkt,
|
||||
BOOLEAN bPseudoTest
|
||||
bool bPseudoTest
|
||||
)
|
||||
{
|
||||
BOOLEAN bRet = _FALSE;
|
||||
bool 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;
|
||||
|
@ -2212,11 +2212,11 @@ hal_EfusePartialWriteCheck(
|
|||
return bRet;
|
||||
}
|
||||
|
||||
static BOOLEAN
|
||||
static bool
|
||||
hal_EfusePgCheckAvailableAddr(
|
||||
PADAPTER pAdapter,
|
||||
u8 efuseType,
|
||||
BOOLEAN bPseudoTest
|
||||
bool bPseudoTest
|
||||
)
|
||||
{
|
||||
u16 efuse_max_available_len = 0;
|
||||
|
@ -2252,13 +2252,13 @@ hal_EfuseConstructPGPkt(
|
|||
/* RTPRINT(FEEPROM, EFUSE_PG, ("hal_EfuseConstructPGPkt(), targetPkt, offset=%d, word_en=0x%x, word_cnts=%d\n", pTargetPkt->offset, pTargetPkt->word_en, pTargetPkt->word_cnts)); */
|
||||
}
|
||||
|
||||
static BOOLEAN
|
||||
static bool
|
||||
hal_EfusePgPacketWrite_BT(
|
||||
PADAPTER pAdapter,
|
||||
u8 offset,
|
||||
u8 word_en,
|
||||
u8 *pData,
|
||||
BOOLEAN bPseudoTest
|
||||
bool bPseudoTest
|
||||
)
|
||||
{
|
||||
PGPKT_STRUCT targetPkt;
|
||||
|
@ -2282,13 +2282,13 @@ hal_EfusePgPacketWrite_BT(
|
|||
return _TRUE;
|
||||
}
|
||||
|
||||
static BOOLEAN
|
||||
static bool
|
||||
hal_EfusePgPacketWrite_8188e(
|
||||
PADAPTER pAdapter,
|
||||
u8 offset,
|
||||
u8 word_en,
|
||||
u8 *pData,
|
||||
BOOLEAN bPseudoTest
|
||||
bool bPseudoTest
|
||||
)
|
||||
{
|
||||
PGPKT_STRUCT targetPkt;
|
||||
|
@ -2318,7 +2318,7 @@ Hal_EfusePgPacketWrite_Pseudo(PADAPTER pAdapter,
|
|||
u8 offset,
|
||||
u8 word_en,
|
||||
u8 *data,
|
||||
BOOLEAN bPseudoTest)
|
||||
bool bPseudoTest)
|
||||
{
|
||||
int ret;
|
||||
|
||||
|
@ -2332,7 +2332,7 @@ Hal_EfusePgPacketWrite(PADAPTER pAdapter,
|
|||
u8 offset,
|
||||
u8 word_en,
|
||||
u8 *data,
|
||||
BOOLEAN bPseudoTest)
|
||||
bool bPseudoTest)
|
||||
{
|
||||
int ret = 0;
|
||||
ret = hal_EfusePgPacketWrite_8188e(pAdapter, offset, word_en, data, bPseudoTest);
|
||||
|
@ -2346,7 +2346,7 @@ rtl8188e_Efuse_PgPacketWrite(PADAPTER pAdapter,
|
|||
u8 offset,
|
||||
u8 word_en,
|
||||
u8 *data,
|
||||
BOOLEAN bPseudoTest)
|
||||
bool bPseudoTest)
|
||||
{
|
||||
int ret;
|
||||
|
||||
|
@ -2705,7 +2705,7 @@ Hal_EfuseParseIDCode88E(
|
|||
void Hal_ReadPowerSavingMode88E(
|
||||
PADAPTER padapter,
|
||||
u8 *hwinfo,
|
||||
BOOLEAN AutoLoadFail
|
||||
bool AutoLoadFail
|
||||
)
|
||||
{
|
||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(padapter);
|
||||
|
@ -2741,7 +2741,7 @@ void
|
|||
Hal_ReadTxPowerInfo88E(
|
||||
PADAPTER padapter,
|
||||
u8 *PROMContent,
|
||||
BOOLEAN AutoLoadFail
|
||||
bool AutoLoadFail
|
||||
)
|
||||
{
|
||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(padapter);
|
||||
|
@ -2769,7 +2769,7 @@ void
|
|||
Hal_EfuseParseXtal_8188E(
|
||||
PADAPTER pAdapter,
|
||||
u8 *hwinfo,
|
||||
BOOLEAN AutoLoadFail
|
||||
bool AutoLoadFail
|
||||
)
|
||||
{
|
||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(pAdapter);
|
||||
|
@ -2787,7 +2787,7 @@ void
|
|||
Hal_ReadPAType_8188E(
|
||||
PADAPTER Adapter,
|
||||
u8 *PROMContent,
|
||||
BOOLEAN AutoloadFail
|
||||
bool AutoloadFail
|
||||
)
|
||||
{
|
||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
||||
|
@ -2846,7 +2846,7 @@ void
|
|||
Hal_ReadAmplifierType_8188E(
|
||||
PADAPTER Adapter,
|
||||
pu1Byte PROMContent,
|
||||
BOOLEAN AutoloadFail
|
||||
bool AutoloadFail
|
||||
)
|
||||
{
|
||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
||||
|
@ -2884,7 +2884,7 @@ void
|
|||
Hal_ReadRFEType_8188E(
|
||||
PADAPTER Adapter,
|
||||
pu1Byte PROMContent,
|
||||
BOOLEAN AutoloadFail
|
||||
bool AutoloadFail
|
||||
)
|
||||
{
|
||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
||||
|
@ -2930,7 +2930,7 @@ void
|
|||
Hal_EfuseParseBoardType88E(
|
||||
PADAPTER pAdapter,
|
||||
u8 *hwinfo,
|
||||
BOOLEAN AutoLoadFail
|
||||
bool AutoLoadFail
|
||||
)
|
||||
{
|
||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(pAdapter);
|
||||
|
@ -2948,7 +2948,7 @@ void
|
|||
Hal_EfuseParseEEPROMVer88E(
|
||||
PADAPTER padapter,
|
||||
u8 *hwinfo,
|
||||
BOOLEAN AutoLoadFail
|
||||
bool AutoLoadFail
|
||||
)
|
||||
{
|
||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(padapter);
|
||||
|
@ -2965,7 +2965,7 @@ void
|
|||
rtl8188e_EfuseParseChnlPlan(
|
||||
PADAPTER padapter,
|
||||
u8 *hwinfo,
|
||||
BOOLEAN AutoLoadFail
|
||||
bool AutoLoadFail
|
||||
)
|
||||
{
|
||||
padapter->mlmepriv.ChannelPlan = hal_com_config_channel_plan(
|
||||
|
@ -2983,7 +2983,7 @@ void
|
|||
Hal_EfuseParseCustomerID88E(
|
||||
PADAPTER padapter,
|
||||
u8 *hwinfo,
|
||||
BOOLEAN AutoLoadFail
|
||||
bool AutoLoadFail
|
||||
)
|
||||
{
|
||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(padapter);
|
||||
|
@ -3004,7 +3004,7 @@ void
|
|||
Hal_ReadAntennaDiversity88E(
|
||||
PADAPTER pAdapter,
|
||||
u8 *PROMContent,
|
||||
BOOLEAN AutoLoadFail
|
||||
bool AutoLoadFail
|
||||
)
|
||||
{
|
||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(pAdapter);
|
||||
|
@ -3041,7 +3041,7 @@ void
|
|||
Hal_ReadThermalMeter_88E(
|
||||
PADAPTER Adapter,
|
||||
u8 *PROMContent,
|
||||
BOOLEAN AutoloadFail
|
||||
bool AutoloadFail
|
||||
)
|
||||
{
|
||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
||||
|
@ -3070,7 +3070,7 @@ Hal_ReadThermalMeter_88E(
|
|||
void Hal_ReadRFGainOffset(
|
||||
PADAPTER Adapter,
|
||||
u8 *PROMContent,
|
||||
BOOLEAN AutoloadFail)
|
||||
bool AutoloadFail)
|
||||
{
|
||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
||||
u8 thermal_offset = 0;
|
||||
|
@ -3128,7 +3128,7 @@ void Hal_ReadRFGainOffset(
|
|||
|
||||
#endif /*CONFIG_RF_POWER_TRIM*/
|
||||
|
||||
BOOLEAN HalDetectPwrDownMode88E(PADAPTER Adapter)
|
||||
bool HalDetectPwrDownMode88E(PADAPTER Adapter)
|
||||
{
|
||||
u8 tmpvalue = 0;
|
||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
||||
|
@ -3954,7 +3954,7 @@ void SetHwReg8188E(_adapter *adapter, u8 variable, u8 *val)
|
|||
break;
|
||||
case HW_VAR_ACK_PREAMBLE: {
|
||||
u8 regTmp;
|
||||
u8 bShortPreamble = *((PBOOLEAN)val);
|
||||
u8 bShortPreamble = *((bool *)val);
|
||||
/* Joseph marked out for Netgear 3500 TKIP channel 7 issue.(Temporarily) */
|
||||
regTmp = (pHalData->nCur40MhzPrimeSC) << 5;
|
||||
rtw_write8(adapter, REG_RRSR + 2, regTmp);
|
||||
|
|
|
@ -49,12 +49,12 @@
|
|||
* */
|
||||
|
||||
#if (SIC_ENABLE == 1)
|
||||
static BOOLEAN
|
||||
static bool
|
||||
sic_IsSICReady(
|
||||
PADAPTER Adapter
|
||||
)
|
||||
{
|
||||
BOOLEAN bRet = _FALSE;
|
||||
bool bRet = _FALSE;
|
||||
u32 retryCnt = 0;
|
||||
u8 sic_cmd = 0xff;
|
||||
|
||||
|
@ -264,7 +264,7 @@ SIC_Init(
|
|||
#endif
|
||||
}
|
||||
|
||||
static BOOLEAN
|
||||
static bool
|
||||
SIC_LedOff(
|
||||
PADAPTER Adapter
|
||||
)
|
||||
|
@ -1237,7 +1237,7 @@ PHY_GetTxPowerIndex_8188E(
|
|||
u8 base_idx = 0, power_idx = 0;
|
||||
s8 by_rate_diff = 0, limit = 0, tpt_offset = 0, extra_bias = 0;
|
||||
u8 txNum = phy_GetCurrentTxNum_8188E(pAdapter, Rate);
|
||||
BOOLEAN bIn24G = _FALSE;
|
||||
bool bIn24G = _FALSE;
|
||||
|
||||
base_idx = PHY_GetTxPowerIndexBase(pAdapter, RFPath, Rate, BandWidth, Channel, &bIn24G);
|
||||
|
||||
|
@ -1274,7 +1274,7 @@ PHY_GetTxPowerIndex_8188E(
|
|||
* A mode.
|
||||
* By Bruce, 2008-02-04.
|
||||
* */
|
||||
BOOLEAN
|
||||
bool
|
||||
PHY_UpdateTxPowerDbm8188E(
|
||||
PADAPTER Adapter,
|
||||
int powerInDbm
|
||||
|
@ -1545,7 +1545,7 @@ PHY_SwChnl8188E(/* Call after initialization */
|
|||
{
|
||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
||||
u8 tmpchannel = pHalData->current_channel;
|
||||
BOOLEAN bResult = _TRUE;
|
||||
bool bResult = _TRUE;
|
||||
|
||||
if (pHalData->rf_chip == RF_PSEUDO_11N)
|
||||
return; /* return immediately if it is peudo-phy */
|
||||
|
@ -1607,8 +1607,8 @@ PHY_SetSwChnlBWMode8188E(
|
|||
|
||||
static void _PHY_SetRFPathSwitch(
|
||||
PADAPTER pAdapter,
|
||||
BOOLEAN bMain,
|
||||
BOOLEAN is2T
|
||||
bool bMain,
|
||||
bool is2T
|
||||
)
|
||||
{
|
||||
u8 u1bTmp;
|
||||
|
@ -1637,9 +1637,9 @@ static void _PHY_SetRFPathSwitch(
|
|||
|
||||
/* return value TRUE => Main; FALSE => Aux */
|
||||
|
||||
static BOOLEAN _PHY_QueryRFPathSwitch(
|
||||
static bool _PHY_QueryRFPathSwitch(
|
||||
PADAPTER pAdapter,
|
||||
BOOLEAN is2T
|
||||
bool is2T
|
||||
)
|
||||
{
|
||||
/* if(is2T)
|
||||
|
|
|
@ -52,14 +52,14 @@ _ConfigNormalChipOutEP_8188E(
|
|||
|
||||
}
|
||||
|
||||
static BOOLEAN HalUsbSetQueuePipeMapping8188EUsb(
|
||||
static bool HalUsbSetQueuePipeMapping8188EUsb(
|
||||
PADAPTER pAdapter,
|
||||
u8 NumInPipe,
|
||||
u8 NumOutPipe
|
||||
)
|
||||
{
|
||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(pAdapter);
|
||||
BOOLEAN result = _FALSE;
|
||||
bool result = _FALSE;
|
||||
|
||||
_ConfigNormalChipOutEP_8188E(pAdapter, NumOutPipe);
|
||||
|
||||
|
@ -303,7 +303,7 @@ _InitQueueReservedPage(
|
|||
u32 numPubQ = 0x00;
|
||||
u32 value32;
|
||||
u8 value8;
|
||||
BOOLEAN bWiFiConfig = pregistrypriv->wifi_spec;
|
||||
bool bWiFiConfig = pregistrypriv->wifi_spec;
|
||||
|
||||
if (bWiFiConfig || pregistrypriv->qos_opt_enable) {
|
||||
if (pHalData->OutEpQueueSel & TX_SELE_HQ)
|
||||
|
@ -669,7 +669,7 @@ _InitEDCA(
|
|||
static void
|
||||
_InitBeaconMaxError(
|
||||
PADAPTER Adapter,
|
||||
BOOLEAN InfraMode
|
||||
bool InfraMode
|
||||
)
|
||||
{
|
||||
|
||||
|
@ -872,7 +872,7 @@ InitUsbAggregationSetting(
|
|||
static void
|
||||
HalRxAggr8188EUsb(
|
||||
PADAPTER Adapter,
|
||||
BOOLEAN Value
|
||||
bool Value
|
||||
)
|
||||
{
|
||||
}
|
||||
|
@ -966,8 +966,8 @@ _InitRFType(
|
|||
static void
|
||||
_BeaconFunctionEnable(
|
||||
PADAPTER Adapter,
|
||||
BOOLEAN Enable,
|
||||
BOOLEAN Linked
|
||||
bool Enable,
|
||||
bool Linked
|
||||
)
|
||||
{
|
||||
rtw_write8(Adapter, REG_BCN_CTRL, (BIT4 | BIT3 | BIT1));
|
||||
|
@ -1682,7 +1682,7 @@ static void
|
|||
_ReadLEDSetting(
|
||||
PADAPTER Adapter,
|
||||
u8 *PROMContent,
|
||||
BOOLEAN AutoloadFail
|
||||
bool AutoloadFail
|
||||
)
|
||||
{
|
||||
struct led_priv *pledpriv = &(Adapter->ledpriv);
|
||||
|
@ -1705,7 +1705,7 @@ static void
|
|||
_ReadRFSetting(
|
||||
PADAPTER Adapter,
|
||||
u8 *PROMContent,
|
||||
BOOLEAN AutoloadFail
|
||||
bool AutoloadFail
|
||||
)
|
||||
{
|
||||
}
|
||||
|
@ -1721,7 +1721,7 @@ static void
|
|||
Hal_EfuseParsePIDVID_8188EU(
|
||||
PADAPTER pAdapter,
|
||||
u8 *hwinfo,
|
||||
BOOLEAN AutoLoadFail
|
||||
bool AutoLoadFail
|
||||
)
|
||||
{
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue