mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2025-05-08 14:33:05 +00:00
rtl8188eu: Replace synonyms for true and false with the real thing
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
b89e0320f5
commit
999a777041
91 changed files with 4692 additions and 4724 deletions
|
@ -53,7 +53,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;
|
||||
|
@ -109,7 +109,7 @@ u8 HalPwrSeqCmdParsing(
|
|||
|
||||
case PWR_CMD_POLLING:
|
||||
|
||||
bPollingBit = _FALSE;
|
||||
bPollingBit = false;
|
||||
offset = GET_PWR_CFG_OFFSET(PwrCfgCmd);
|
||||
#ifdef CONFIG_GSPI_HCI
|
||||
if (GET_PWR_CFG_BASE(PwrCfgCmd) == PWR_BASEADDR_SDIO)
|
||||
|
@ -125,13 +125,13 @@ u8 HalPwrSeqCmdParsing(
|
|||
|
||||
value = 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) {
|
||||
RTW_ERR("HalPwrSeqCmdParsing: Fail to polling Offset[%#x]=%02x\n", offset, value);
|
||||
return _FALSE;
|
||||
return false;
|
||||
}
|
||||
} while (!bPollingBit);
|
||||
|
||||
|
@ -146,7 +146,7 @@ u8 HalPwrSeqCmdParsing(
|
|||
|
||||
case PWR_CMD_END:
|
||||
/* When this command is parsed, end the process */
|
||||
return _TRUE;
|
||||
return true;
|
||||
break;
|
||||
|
||||
default:
|
||||
|
@ -157,5 +157,5 @@ u8 HalPwrSeqCmdParsing(
|
|||
AryIdx++;/* Add Array Index */
|
||||
} while (1);
|
||||
|
||||
return _TRUE;
|
||||
return true;
|
||||
}
|
||||
|
|
346
hal/hal_btcoex.c
346
hal/hal_btcoex.c
|
@ -214,7 +214,7 @@ typedef struct _btcoexdbginfo {
|
|||
|
||||
BTCDBGINFO GLBtcDbgInfo;
|
||||
|
||||
#define BT_Operation(Adapter) _FALSE
|
||||
#define BT_Operation(Adapter) false
|
||||
|
||||
static void DBG_BT_INFO_INIT(PBTCDBGINFO pinfo, u8 *pbuf, u32 size)
|
||||
{
|
||||
|
@ -257,8 +257,8 @@ static u8 halbtcoutsrc_IsBtCoexistAvailable(PBTC_COEXIST pBtCoexist)
|
|||
{
|
||||
if (!pBtCoexist->bBinded ||
|
||||
NULL == pBtCoexist->Adapter)
|
||||
return _FALSE;
|
||||
return _TRUE;
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
static void halbtcoutsrc_DbgInit(void)
|
||||
|
@ -274,8 +274,8 @@ static u8 halbtcoutsrc_IsCsrBtCoex(PBTC_COEXIST pBtCoexist)
|
|||
if (pBtCoexist->board_info.bt_chip_type == BTC_CHIP_CSR_BC4
|
||||
|| pBtCoexist->board_info.bt_chip_type == BTC_CHIP_CSR_BC8
|
||||
)
|
||||
return _TRUE;
|
||||
return _FALSE;
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
static u8 halbtcoutsrc_IsHwMailboxExist(PBTC_COEXIST pBtCoexist)
|
||||
|
@ -283,11 +283,11 @@ static u8 halbtcoutsrc_IsHwMailboxExist(PBTC_COEXIST pBtCoexist)
|
|||
if (pBtCoexist->board_info.bt_chip_type == BTC_CHIP_CSR_BC4
|
||||
|| pBtCoexist->board_info.bt_chip_type == BTC_CHIP_CSR_BC8
|
||||
)
|
||||
return _FALSE;
|
||||
return false;
|
||||
else if (IS_HARDWARE_TYPE_8812(pBtCoexist->Adapter))
|
||||
return _FALSE;
|
||||
return false;
|
||||
else
|
||||
return _TRUE;
|
||||
return true;
|
||||
}
|
||||
|
||||
static void halbtcoutsrc_LeaveLps(PBTC_COEXIST pBtCoexist)
|
||||
|
@ -297,8 +297,8 @@ static void halbtcoutsrc_LeaveLps(PBTC_COEXIST pBtCoexist)
|
|||
|
||||
padapter = pBtCoexist->Adapter;
|
||||
|
||||
pBtCoexist->bt_info.bt_ctrl_lps = _TRUE;
|
||||
pBtCoexist->bt_info.bt_lps_on = _FALSE;
|
||||
pBtCoexist->bt_info.bt_ctrl_lps = true;
|
||||
pBtCoexist->bt_info.bt_lps_on = false;
|
||||
|
||||
rtw_btcoex_LPS_Leave(padapter);
|
||||
}
|
||||
|
@ -310,9 +310,9 @@ void halbtcoutsrc_EnterLps(PBTC_COEXIST pBtCoexist)
|
|||
|
||||
padapter = pBtCoexist->Adapter;
|
||||
|
||||
if (pBtCoexist->bdontenterLPS == _FALSE) {
|
||||
pBtCoexist->bt_info.bt_ctrl_lps = _TRUE;
|
||||
pBtCoexist->bt_info.bt_lps_on = _TRUE;
|
||||
if (pBtCoexist->bdontenterLPS == false) {
|
||||
pBtCoexist->bt_info.bt_ctrl_lps = true;
|
||||
pBtCoexist->bt_info.bt_lps_on = true;
|
||||
|
||||
rtw_btcoex_LPS_Enter(padapter);
|
||||
}
|
||||
|
@ -327,9 +327,9 @@ void halbtcoutsrc_NormalLps(PBTC_COEXIST pBtCoexist)
|
|||
padapter = pBtCoexist->Adapter;
|
||||
|
||||
if (pBtCoexist->bt_info.bt_ctrl_lps) {
|
||||
pBtCoexist->bt_info.bt_lps_on = _FALSE;
|
||||
pBtCoexist->bt_info.bt_lps_on = false;
|
||||
rtw_btcoex_LPS_Leave(padapter);
|
||||
pBtCoexist->bt_info.bt_ctrl_lps = _FALSE;
|
||||
pBtCoexist->bt_info.bt_ctrl_lps = false;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -359,7 +359,7 @@ void halbtcoutsrc_LeaveLowPower(PBTC_COEXIST pBtCoexist)
|
|||
timeout = 30;
|
||||
#endif /* !LPS_RPWM_WAIT_MS */
|
||||
|
||||
if (GLBtcBtCoexAliveRegistered == _TRUE)
|
||||
if (GLBtcBtCoexAliveRegistered == true)
|
||||
return;
|
||||
|
||||
stime = rtw_get_current_time();
|
||||
|
@ -375,7 +375,7 @@ void halbtcoutsrc_LeaveLowPower(PBTC_COEXIST pBtCoexist)
|
|||
rtw_msleep_os(1);
|
||||
} while (1);
|
||||
|
||||
GLBtcBtCoexAliveRegistered = _TRUE;
|
||||
GLBtcBtCoexAliveRegistered = true;
|
||||
#endif /* CONFIG_LPS_LCLK */
|
||||
}
|
||||
|
||||
|
@ -388,13 +388,13 @@ void halbtcoutsrc_NormalLowPower(PBTC_COEXIST pBtCoexist)
|
|||
#ifdef CONFIG_LPS_LCLK
|
||||
PADAPTER padapter;
|
||||
|
||||
if (GLBtcBtCoexAliveRegistered == _FALSE)
|
||||
if (GLBtcBtCoexAliveRegistered == false)
|
||||
return;
|
||||
|
||||
padapter = pBtCoexist->Adapter;
|
||||
rtw_unregister_task_alive(padapter, BTCOEX_ALIVE);
|
||||
|
||||
GLBtcBtCoexAliveRegistered = _FALSE;
|
||||
GLBtcBtCoexAliveRegistered = false;
|
||||
#endif /* CONFIG_LPS_LCLK */
|
||||
}
|
||||
|
||||
|
@ -410,7 +410,7 @@ void halbtcoutsrc_DisableLowPower(PBTC_COEXIST pBtCoexist, u8 bLowPwrDisable)
|
|||
void halbtcoutsrc_AggregationCheck(PBTC_COEXIST pBtCoexist)
|
||||
{
|
||||
PADAPTER padapter;
|
||||
bool bNeedToAct = _FALSE;
|
||||
bool bNeedToAct = false;
|
||||
static u32 preTime = 0;
|
||||
u32 curTime = 0;
|
||||
|
||||
|
@ -429,24 +429,24 @@ void halbtcoutsrc_AggregationCheck(PBTC_COEXIST pBtCoexist)
|
|||
preTime = curTime;
|
||||
|
||||
if (pBtCoexist->bt_info.reject_agg_pkt) {
|
||||
bNeedToAct = _TRUE;
|
||||
bNeedToAct = true;
|
||||
pBtCoexist->bt_info.pre_reject_agg_pkt = pBtCoexist->bt_info.reject_agg_pkt;
|
||||
} else {
|
||||
if (pBtCoexist->bt_info.pre_reject_agg_pkt) {
|
||||
bNeedToAct = _TRUE;
|
||||
bNeedToAct = true;
|
||||
pBtCoexist->bt_info.pre_reject_agg_pkt = pBtCoexist->bt_info.reject_agg_pkt;
|
||||
}
|
||||
|
||||
if (pBtCoexist->bt_info.pre_bt_ctrl_agg_buf_size !=
|
||||
pBtCoexist->bt_info.bt_ctrl_agg_buf_size) {
|
||||
bNeedToAct = _TRUE;
|
||||
bNeedToAct = true;
|
||||
pBtCoexist->bt_info.pre_bt_ctrl_agg_buf_size = pBtCoexist->bt_info.bt_ctrl_agg_buf_size;
|
||||
}
|
||||
|
||||
if (pBtCoexist->bt_info.bt_ctrl_agg_buf_size) {
|
||||
if (pBtCoexist->bt_info.pre_agg_buf_size !=
|
||||
pBtCoexist->bt_info.agg_buf_size)
|
||||
bNeedToAct = _TRUE;
|
||||
bNeedToAct = true;
|
||||
pBtCoexist->bt_info.pre_agg_buf_size = pBtCoexist->bt_info.agg_buf_size;
|
||||
}
|
||||
}
|
||||
|
@ -478,11 +478,11 @@ u8 halbtcoutsrc_is_fw_ready(PBTC_COEXIST pBtCoexist)
|
|||
u8 halbtcoutsrc_IsWifiBusy(PADAPTER padapter)
|
||||
{
|
||||
if (rtw_mi_check_status(padapter, MI_AP_MODE))
|
||||
return _TRUE;
|
||||
if (rtw_mi_busy_traffic_check(padapter, _FALSE))
|
||||
return _TRUE;
|
||||
return true;
|
||||
if (rtw_mi_busy_traffic_check(padapter, false))
|
||||
return true;
|
||||
|
||||
return _FALSE;
|
||||
return false;
|
||||
}
|
||||
|
||||
static u32 _halbtcoutsrc_GetWifiLinkStatus(PADAPTER padapter)
|
||||
|
@ -493,22 +493,22 @@ static u32 _halbtcoutsrc_GetWifiLinkStatus(PADAPTER padapter)
|
|||
|
||||
|
||||
pmlmepriv = &padapter->mlmepriv;
|
||||
bp2p = _FALSE;
|
||||
bp2p = false;
|
||||
portConnectedStatus = 0;
|
||||
|
||||
#ifdef CONFIG_P2P
|
||||
if (!rtw_p2p_chk_state(&padapter->wdinfo, P2P_STATE_NONE))
|
||||
bp2p = _TRUE;
|
||||
bp2p = true;
|
||||
#endif /* CONFIG_P2P */
|
||||
|
||||
if (check_fwstate(pmlmepriv, WIFI_ASOC_STATE) == _TRUE) {
|
||||
if (check_fwstate(pmlmepriv, WIFI_AP_STATE) == _TRUE) {
|
||||
if (_TRUE == bp2p)
|
||||
if (check_fwstate(pmlmepriv, WIFI_ASOC_STATE) == true) {
|
||||
if (check_fwstate(pmlmepriv, WIFI_AP_STATE) == true) {
|
||||
if (true == bp2p)
|
||||
portConnectedStatus |= WIFI_P2P_GO_CONNECTED;
|
||||
else
|
||||
portConnectedStatus |= WIFI_AP_CONNECTED;
|
||||
} else {
|
||||
if (_TRUE == bp2p)
|
||||
if (true == bp2p)
|
||||
portConnectedStatus |= WIFI_P2P_GC_CONNECTED;
|
||||
else
|
||||
portConnectedStatus |= WIFI_STA_CONNECTED;
|
||||
|
@ -654,7 +654,7 @@ exit:
|
|||
u32 halbtcoutsrc_GetBtPatchVer(PBTC_COEXIST pBtCoexist)
|
||||
{
|
||||
if (pBtCoexist->bt_info.get_bt_fw_ver_cnt <= 5) {
|
||||
if (halbtcoutsrc_IsHwMailboxExist(pBtCoexist) == _TRUE) {
|
||||
if (halbtcoutsrc_IsHwMailboxExist(pBtCoexist) == true) {
|
||||
unsigned long irqL;
|
||||
u8 ret;
|
||||
|
||||
|
@ -675,7 +675,7 @@ u32 halbtcoutsrc_GetBtPatchVer(PBTC_COEXIST pBtCoexist)
|
|||
|
||||
buf[0] = 0x0; /* OP_Code */
|
||||
buf[1] = 0x0; /* OP_Code_Length */
|
||||
BT_SendEventExtBtCoexControl(pBtCoexist->Adapter, _FALSE, dataLen, &buf[0]);
|
||||
BT_SendEventExtBtCoexControl(pBtCoexist->Adapter, false, dataLen, &buf[0]);
|
||||
#endif /* !CONFIG_BT_COEXIST_SOCKET_TRX */
|
||||
}
|
||||
}
|
||||
|
@ -704,7 +704,7 @@ u32 halbtcoutsrc_GetBtCoexSupportedFeature(void *pBtcContext)
|
|||
|
||||
pBtCoexist = (PBTC_COEXIST)pBtcContext;
|
||||
|
||||
if (halbtcoutsrc_IsHwMailboxExist(pBtCoexist) == _TRUE) {
|
||||
if (halbtcoutsrc_IsHwMailboxExist(pBtCoexist) == true) {
|
||||
u8 buf[3] = {0};
|
||||
unsigned long irqL;
|
||||
u8 op_code;
|
||||
|
@ -735,7 +735,7 @@ u32 halbtcoutsrc_GetBtCoexSupportedVersion(void *pBtcContext)
|
|||
|
||||
pBtCoexist = (PBTC_COEXIST)pBtcContext;
|
||||
|
||||
if (halbtcoutsrc_IsHwMailboxExist(pBtCoexist) == _TRUE) {
|
||||
if (halbtcoutsrc_IsHwMailboxExist(pBtCoexist) == true) {
|
||||
u8 buf[3] = {0};
|
||||
unsigned long irqL;
|
||||
u8 op_code;
|
||||
|
@ -768,7 +768,7 @@ static u8 halbtcoutsrc_GetWifiScanAPNum(PADAPTER padapter)
|
|||
pmlmepriv = &padapter->mlmepriv;
|
||||
pmlmeext = &padapter->mlmeextpriv;
|
||||
|
||||
if (GLBtcWiFiInScanState == _FALSE) {
|
||||
if (GLBtcWiFiInScanState == false) {
|
||||
if (pmlmepriv->num_of_scanned > 0xFF)
|
||||
scan_AP_num = 0xFF;
|
||||
else
|
||||
|
@ -794,28 +794,28 @@ u8 halbtcoutsrc_Get(void *pBtcContext, u8 getType, void *pOutBuf)
|
|||
|
||||
pBtCoexist = (PBTC_COEXIST)pBtcContext;
|
||||
if (!halbtcoutsrc_IsBtCoexistAvailable(pBtCoexist))
|
||||
return _FALSE;
|
||||
return false;
|
||||
|
||||
padapter = pBtCoexist->Adapter;
|
||||
pHalData = GET_HAL_DATA(padapter);
|
||||
mlmeext = &padapter->mlmeextpriv;
|
||||
bSoftApExist = _FALSE;
|
||||
bVwifiExist = _FALSE;
|
||||
bSoftApExist = false;
|
||||
bVwifiExist = false;
|
||||
pu8 = (u8 *)pOutBuf;
|
||||
pS4Tmp = (s32 *)pOutBuf;
|
||||
pU4Tmp = (u32 *)pOutBuf;
|
||||
pU1Tmp = (u8 *)pOutBuf;
|
||||
ret = _TRUE;
|
||||
ret = true;
|
||||
|
||||
switch (getType) {
|
||||
case BTC_GET_BL_HS_OPERATION:
|
||||
*pu8 = _FALSE;
|
||||
ret = _FALSE;
|
||||
*pu8 = false;
|
||||
ret = false;
|
||||
break;
|
||||
|
||||
case BTC_GET_BL_HS_CONNECTING:
|
||||
*pu8 = _FALSE;
|
||||
ret = _FALSE;
|
||||
*pu8 = false;
|
||||
ret = false;
|
||||
break;
|
||||
|
||||
case BTC_GET_BL_WIFI_FW_READY:
|
||||
|
@ -823,7 +823,7 @@ u8 halbtcoutsrc_Get(void *pBtcContext, u8 getType, void *pOutBuf)
|
|||
break;
|
||||
|
||||
case BTC_GET_BL_WIFI_CONNECTED:
|
||||
*pu8 = (rtw_mi_check_status(padapter, MI_LINKED)) ? _TRUE : _FALSE;
|
||||
*pu8 = (rtw_mi_check_status(padapter, MI_LINKED)) ? true : false;
|
||||
break;
|
||||
|
||||
case BTC_GET_BL_WIFI_BUSY:
|
||||
|
@ -837,49 +837,49 @@ u8 halbtcoutsrc_Get(void *pBtcContext, u8 getType, void *pOutBuf)
|
|||
break;
|
||||
|
||||
case BTC_GET_BL_WIFI_LINK:
|
||||
*pu8 = (rtw_mi_check_status(padapter, MI_STA_LINKING)) ? _TRUE : _FALSE;
|
||||
*pu8 = (rtw_mi_check_status(padapter, MI_STA_LINKING)) ? true : false;
|
||||
break;
|
||||
|
||||
case BTC_GET_BL_WIFI_ROAM:
|
||||
*pu8 = (rtw_mi_check_status(padapter, MI_STA_LINKING)) ? _TRUE : _FALSE;
|
||||
*pu8 = (rtw_mi_check_status(padapter, MI_STA_LINKING)) ? true : false;
|
||||
break;
|
||||
|
||||
case BTC_GET_BL_WIFI_4_WAY_PROGRESS:
|
||||
*pu8 = _FALSE;
|
||||
*pu8 = false;
|
||||
break;
|
||||
|
||||
case BTC_GET_BL_WIFI_UNDER_5G:
|
||||
*pu8 = (pHalData->current_band_type == 1) ? _TRUE : _FALSE;
|
||||
*pu8 = (pHalData->current_band_type == 1) ? true : false;
|
||||
break;
|
||||
|
||||
case BTC_GET_BL_WIFI_AP_MODE_ENABLE:
|
||||
*pu8 = (rtw_mi_check_status(padapter, MI_AP_MODE)) ? _TRUE : _FALSE;
|
||||
*pu8 = (rtw_mi_check_status(padapter, MI_AP_MODE)) ? true : false;
|
||||
break;
|
||||
|
||||
case BTC_GET_BL_WIFI_ENABLE_ENCRYPTION:
|
||||
*pu8 = padapter->securitypriv.dot11PrivacyAlgrthm == 0 ? _FALSE : _TRUE;
|
||||
*pu8 = padapter->securitypriv.dot11PrivacyAlgrthm == 0 ? false : true;
|
||||
break;
|
||||
|
||||
case BTC_GET_BL_WIFI_UNDER_B_MODE:
|
||||
if (mlmeext->cur_wireless_mode == WIRELESS_11B)
|
||||
*pu8 = _TRUE;
|
||||
*pu8 = true;
|
||||
else
|
||||
*pu8 = _FALSE;
|
||||
*pu8 = false;
|
||||
break;
|
||||
|
||||
case BTC_GET_BL_WIFI_IS_IN_MP_MODE:
|
||||
if (padapter->registrypriv.mp_mode == 0)
|
||||
*pu8 = _FALSE;
|
||||
*pu8 = false;
|
||||
else
|
||||
*pu8 = _TRUE;
|
||||
*pu8 = true;
|
||||
break;
|
||||
|
||||
case BTC_GET_BL_EXT_SWITCH:
|
||||
*pu8 = _FALSE;
|
||||
*pu8 = false;
|
||||
break;
|
||||
case BTC_GET_BL_IS_ASUS_8723B:
|
||||
/* Always return FALSE in linux driver since this case is added only for windows driver */
|
||||
*pu8 = _FALSE;
|
||||
/* Always return false in linux driver since this case is added only for windows driver */
|
||||
*pu8 = false;
|
||||
break;
|
||||
|
||||
case BTC_GET_S4_WIFI_RSSI:
|
||||
|
@ -888,7 +888,7 @@ u8 halbtcoutsrc_Get(void *pBtcContext, u8 getType, void *pOutBuf)
|
|||
|
||||
case BTC_GET_S4_HS_RSSI:
|
||||
*pS4Tmp = 0;
|
||||
ret = _FALSE;
|
||||
ret = false;
|
||||
break;
|
||||
|
||||
case BTC_GET_U4_WIFI_BW:
|
||||
|
@ -974,7 +974,7 @@ u8 halbtcoutsrc_Get(void *pBtcContext, u8 getType, void *pOutBuf)
|
|||
|
||||
case BTC_GET_U1_WIFI_HS_CHNL:
|
||||
*pU1Tmp = 0;
|
||||
ret = _FALSE;
|
||||
ret = false;
|
||||
break;
|
||||
|
||||
case BTC_GET_U1_WIFI_P2P_CHNL:
|
||||
|
@ -1033,7 +1033,7 @@ u8 halbtcoutsrc_Get(void *pBtcContext, u8 getType, void *pOutBuf)
|
|||
break;
|
||||
|
||||
default:
|
||||
ret = _FALSE;
|
||||
ret = false;
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -1057,10 +1057,10 @@ u8 halbtcoutsrc_Set(void *pBtcContext, u8 setType, void *pInBuf)
|
|||
pu8 = (u8 *)pInBuf;
|
||||
pU1Tmp = (u8 *)pInBuf;
|
||||
pU4Tmp = (u32 *)pInBuf;
|
||||
ret = _TRUE;
|
||||
ret = true;
|
||||
|
||||
if (!halbtcoutsrc_IsBtCoexistAvailable(pBtCoexist))
|
||||
return _FALSE;
|
||||
return false;
|
||||
|
||||
switch (setType) {
|
||||
/* set some u8 type variables. */
|
||||
|
@ -1115,7 +1115,7 @@ u8 halbtcoutsrc_Set(void *pBtcContext, u8 setType, void *pInBuf)
|
|||
|
||||
/* the following are some action which will be triggered */
|
||||
case BTC_SET_ACT_GET_BT_RSSI:
|
||||
ret = _FALSE;
|
||||
ret = false;
|
||||
break;
|
||||
|
||||
case BTC_SET_ACT_AGGREGATE_CTRL:
|
||||
|
@ -1156,13 +1156,13 @@ u8 halbtcoutsrc_Set(void *pBtcContext, u8 setType, void *pInBuf)
|
|||
case BTC_SET_ACT_UPDATE_RAMASK:
|
||||
pBtCoexist->bt_info.ra_mask = *pU4Tmp;
|
||||
|
||||
if (check_fwstate(&padapter->mlmepriv, WIFI_ASOC_STATE) == _TRUE) {
|
||||
if (check_fwstate(&padapter->mlmepriv, WIFI_ASOC_STATE) == true) {
|
||||
struct sta_info *psta;
|
||||
PWLAN_BSSID_EX cur_network;
|
||||
|
||||
cur_network = &padapter->mlmeextpriv.mlmext_info.network;
|
||||
psta = rtw_get_stainfo(&padapter->stapriv, cur_network->MacAddress);
|
||||
rtw_hal_update_ra_mask(psta, psta->rssi_level, _FALSE);
|
||||
rtw_hal_update_ra_mask(psta, psta->rssi_level, false);
|
||||
}
|
||||
break;
|
||||
|
||||
|
@ -1178,7 +1178,7 @@ u8 halbtcoutsrc_Set(void *pBtcContext, u8 setType, void *pInBuf)
|
|||
else if (*pU1Tmp == 1)
|
||||
newMimoPsMode = WLAN_HT_CAP_SM_PS_DISABLED;
|
||||
|
||||
if (check_fwstate(&padapter->mlmepriv , WIFI_ASOC_STATE) == _TRUE) {
|
||||
if (check_fwstate(&padapter->mlmepriv , WIFI_ASOC_STATE) == true) {
|
||||
/* issue_action_SM_PS(padapter, get_my_bssid(&(pmlmeinfo->network)), newMimoPsMode); */
|
||||
issue_action_SM_PS_wait_ack(padapter , get_my_bssid(&(pmlmeinfo->network)) , newMimoPsMode, 3 , 1);
|
||||
}
|
||||
|
@ -1195,7 +1195,7 @@ u8 halbtcoutsrc_Set(void *pBtcContext, u8 setType, void *pInBuf)
|
|||
BT_SendEventExtBtInfoControl(padapter, dataLen, &tmpBuf[0]);
|
||||
}
|
||||
#else /* !CONFIG_BT_COEXIST_SOCKET_TRX */
|
||||
ret = _FALSE;
|
||||
ret = false;
|
||||
#endif /* CONFIG_BT_COEXIST_SOCKET_TRX */
|
||||
break;
|
||||
|
||||
|
@ -1206,18 +1206,18 @@ u8 halbtcoutsrc_Set(void *pBtcContext, u8 setType, void *pInBuf)
|
|||
u8 tmpBuf[BTC_TMP_BUF_SHORT];
|
||||
if (dataLen)
|
||||
_rtw_memcpy(tmpBuf, pU1Tmp + 1, dataLen);
|
||||
BT_SendEventExtBtCoexControl(padapter, _FALSE, dataLen, &tmpBuf[0]);
|
||||
BT_SendEventExtBtCoexControl(padapter, false, dataLen, &tmpBuf[0]);
|
||||
}
|
||||
#else /* !CONFIG_BT_COEXIST_SOCKET_TRX */
|
||||
ret = _FALSE;
|
||||
ret = false;
|
||||
#endif /* CONFIG_BT_COEXIST_SOCKET_TRX */
|
||||
break;
|
||||
case BTC_SET_ACT_CTRL_8723B_ANT:
|
||||
ret = _FALSE;
|
||||
ret = false;
|
||||
break;
|
||||
/* ===================== */
|
||||
default:
|
||||
ret = _FALSE;
|
||||
ret = false;
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -1232,21 +1232,21 @@ u8 halbtcoutsrc_UnderIps(PBTC_COEXIST pBtCoexist)
|
|||
|
||||
padapter = pBtCoexist->Adapter;
|
||||
pwrpriv = &padapter->dvobj->pwrctl_priv;
|
||||
bMacPwrCtrlOn = _FALSE;
|
||||
bMacPwrCtrlOn = false;
|
||||
|
||||
if ((_TRUE == pwrpriv->bips_processing)
|
||||
if ((true == pwrpriv->bips_processing)
|
||||
&& (IPS_NONE != pwrpriv->ips_mode_req)
|
||||
)
|
||||
return _TRUE;
|
||||
return true;
|
||||
|
||||
if (rf_off == pwrpriv->rf_pwrstate)
|
||||
return _TRUE;
|
||||
return true;
|
||||
|
||||
rtw_hal_get_hwreg(padapter, HW_VAR_APFM_ON_MAC, &bMacPwrCtrlOn);
|
||||
if (_FALSE == bMacPwrCtrlOn)
|
||||
return _TRUE;
|
||||
if (false == bMacPwrCtrlOn)
|
||||
return true;
|
||||
|
||||
return _FALSE;
|
||||
return false;
|
||||
}
|
||||
|
||||
u8 halbtcoutsrc_UnderLps(PBTC_COEXIST pBtCoexist)
|
||||
|
@ -1257,7 +1257,7 @@ u8 halbtcoutsrc_UnderLps(PBTC_COEXIST pBtCoexist)
|
|||
u8 halbtcoutsrc_Under32K(PBTC_COEXIST pBtCoexist)
|
||||
{
|
||||
/* todo: the method to check whether wifi is under 32K or not */
|
||||
return _FALSE;
|
||||
return false;
|
||||
}
|
||||
|
||||
void halbtcoutsrc_DisplayCoexStatistics(PBTC_COEXIST pBtCoexist)
|
||||
|
@ -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;
|
||||
bool 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;
|
||||
bool 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;
|
||||
|
||||
|
@ -1312,7 +1312,7 @@ void halbtcoutsrc_DisplayWifiStatus(PBTC_COEXIST pBtCoexist)
|
|||
pBtCoexist->btc_get(pBtCoexist, BTC_GET_U4_WIFI_IQK_FAIL, &iqk_cnt_fail);
|
||||
CL_SPRINTF(cliBuf, BT_TMP_BUF_SIZE, "\r\n %-35s = %d/ %d/ %d %s %s",
|
||||
"IQK All/ OK/ Fail/AutoLoad/FWDL", iqk_cnt_total, iqk_cnt_ok, iqk_cnt_fail,
|
||||
((halbtcoutsrc_is_autoload_fail(pBtCoexist) == _TRUE) ? "fail":"ok"), ((halbtcoutsrc_is_fw_ready(pBtCoexist) == _TRUE) ? "ok":"fail"));
|
||||
((halbtcoutsrc_is_autoload_fail(pBtCoexist) == true) ? "fail":"ok"), ((halbtcoutsrc_is_fw_ready(pBtCoexist) == true) ? "ok":"fail"));
|
||||
CL_PRINTF(cliBuf);
|
||||
|
||||
if (wifiLinkStatus & WIFI_STA_CONNECTED) {
|
||||
|
@ -1342,9 +1342,9 @@ void halbtcoutsrc_DisplayWifiStatus(PBTC_COEXIST pBtCoexist)
|
|||
|
||||
/* power status */
|
||||
CL_SPRINTF(cliBuf, BT_TMP_BUF_SIZE, "\r\n %-35s = %s%s%s", "Power Status", \
|
||||
((halbtcoutsrc_UnderIps(pBtCoexist) == _TRUE) ? "IPS ON" : "IPS OFF"),
|
||||
((halbtcoutsrc_UnderLps(pBtCoexist) == _TRUE) ? ", LPS ON" : ", LPS OFF"),
|
||||
((halbtcoutsrc_Under32K(pBtCoexist) == _TRUE) ? ", 32k" : ""));
|
||||
((halbtcoutsrc_UnderIps(pBtCoexist) == true) ? "IPS ON" : "IPS OFF"),
|
||||
((halbtcoutsrc_UnderLps(pBtCoexist) == true) ? ", LPS ON" : ", LPS OFF"),
|
||||
((halbtcoutsrc_Under32K(pBtCoexist) == true) ? ", 32k" : ""));
|
||||
CL_PRINTF(cliBuf);
|
||||
|
||||
CL_SPRINTF(cliBuf, BT_TMP_BUF_SIZE, "\r\n %-35s = %02x %02x %02x %02x %02x %02x (0x%x/0x%x)", "Power mode cmd(lps/rpwm)", \
|
||||
|
@ -1547,7 +1547,7 @@ u16 halbtcoutsrc_SetBtReg(void *pBtcContext, u8 RegType, u32 RegAddr, u32 Data)
|
|||
|
||||
pBtCoexist = (PBTC_COEXIST)pBtcContext;
|
||||
|
||||
if (halbtcoutsrc_IsHwMailboxExist(pBtCoexist) == _TRUE) {
|
||||
if (halbtcoutsrc_IsHwMailboxExist(pBtCoexist) == true) {
|
||||
u8 buf[3] = {0};
|
||||
unsigned long irqL;
|
||||
u8 op_code;
|
||||
|
@ -1578,8 +1578,8 @@ u16 halbtcoutsrc_SetBtReg(void *pBtcContext, u8 RegType, u32 RegAddr, u32 Data)
|
|||
|
||||
u8 halbtcoutsrc_SetBtAntDetection(void *pBtcContext, u8 txTime, u8 btChnl)
|
||||
{
|
||||
/* Always return _FALSE since we don't implement this yet */
|
||||
return _FALSE;
|
||||
/* Always return false since we don't implement this yet */
|
||||
return false;
|
||||
}
|
||||
|
||||
bool
|
||||
|
@ -1588,8 +1588,8 @@ halbtcoutsrc_SetBtTRXMASK(
|
|||
IN u8 bt_trx_mask
|
||||
)
|
||||
{
|
||||
/* Always return _FALSE since we don't implement this yet */
|
||||
return _FALSE;
|
||||
/* Always return false since we don't implement this yet */
|
||||
return false;
|
||||
}
|
||||
|
||||
u16 halbtcoutsrc_GetBtReg_with_status(void *pBtcContext, u8 RegType, u32 RegAddr, u32 *data)
|
||||
|
@ -1599,7 +1599,7 @@ u16 halbtcoutsrc_GetBtReg_with_status(void *pBtcContext, u8 RegType, u32 RegAddr
|
|||
|
||||
pBtCoexist = (PBTC_COEXIST)pBtcContext;
|
||||
|
||||
if (halbtcoutsrc_IsHwMailboxExist(pBtCoexist) == _TRUE) {
|
||||
if (halbtcoutsrc_IsHwMailboxExist(pBtCoexist) == true) {
|
||||
u8 buf[3] = {0};
|
||||
unsigned long irqL;
|
||||
u8 op_code;
|
||||
|
@ -1762,7 +1762,7 @@ u8 halbtcoutsrc_GetBleScanTypeFromBt(void *pBtcContext)
|
|||
|
||||
pBtCoexist = (PBTC_COEXIST)pBtcContext;
|
||||
|
||||
if (halbtcoutsrc_IsHwMailboxExist(pBtCoexist) == _TRUE) {
|
||||
if (halbtcoutsrc_IsHwMailboxExist(pBtCoexist) == true) {
|
||||
u8 buf[3] = {0};
|
||||
unsigned long irqL;
|
||||
u8 op_code;
|
||||
|
@ -1794,7 +1794,7 @@ u32 halbtcoutsrc_GetBleScanParaFromBt(void *pBtcContext, u8 scanType)
|
|||
|
||||
pBtCoexist = (PBTC_COEXIST)pBtcContext;
|
||||
|
||||
if (halbtcoutsrc_IsHwMailboxExist(pBtCoexist) == _TRUE) {
|
||||
if (halbtcoutsrc_IsHwMailboxExist(pBtCoexist) == true) {
|
||||
u8 buf[3] = {0};
|
||||
unsigned long irqL;
|
||||
u8 op_code;
|
||||
|
@ -1830,8 +1830,8 @@ u8 halbtcoutsrc_GetBtAFHMapFromBt(void *pBtcContext, u8 mapType, u8 *afhMap)
|
|||
u8 status;
|
||||
u32 ret = BT_STATUS_BT_OP_SUCCESS;
|
||||
|
||||
if (halbtcoutsrc_IsHwMailboxExist(pBtCoexist) == _FALSE)
|
||||
return _FALSE;
|
||||
if (halbtcoutsrc_IsHwMailboxExist(pBtCoexist) == false)
|
||||
return false;
|
||||
|
||||
buf[0] = 0;
|
||||
buf[1] = mapType;
|
||||
|
@ -1869,7 +1869,7 @@ exit:
|
|||
|
||||
_exit_critical_mutex(&GLBtcBtMpOperLock, &irqL);
|
||||
|
||||
return (ret == BT_STATUS_BT_OP_SUCCESS) ? _TRUE : _FALSE;
|
||||
return (ret == BT_STATUS_BT_OP_SUCCESS) ? true : false;
|
||||
}
|
||||
|
||||
u32 halbtcoutsrc_GetPhydmVersion(void *pBtcContext)
|
||||
|
@ -1904,22 +1904,22 @@ u8 EXhalbtcoutsrc_BindBtCoexWithAdapter(void *padapter)
|
|||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA((PADAPTER)padapter);
|
||||
|
||||
if (pBtCoexist->bBinded)
|
||||
return _FALSE;
|
||||
return false;
|
||||
else
|
||||
pBtCoexist->bBinded = _TRUE;
|
||||
pBtCoexist->bBinded = true;
|
||||
|
||||
pBtCoexist->statistics.cnt_bind++;
|
||||
|
||||
pBtCoexist->Adapter = padapter;
|
||||
pBtCoexist->odm_priv = (void *)&(pHalData->odmpriv);
|
||||
|
||||
pBtCoexist->stack_info.profile_notified = _FALSE;
|
||||
pBtCoexist->stack_info.profile_notified = false;
|
||||
|
||||
pBtCoexist->bt_info.bt_ctrl_agg_buf_size = _FALSE;
|
||||
pBtCoexist->bt_info.bt_ctrl_agg_buf_size = false;
|
||||
pBtCoexist->bt_info.agg_buf_size = 5;
|
||||
|
||||
pBtCoexist->bt_info.increase_scan_dev_num = _FALSE;
|
||||
pBtCoexist->bt_info.miracast_plus_bt = _FALSE;
|
||||
pBtCoexist->bt_info.increase_scan_dev_num = false;
|
||||
pBtCoexist->bt_info.miracast_plus_bt = false;
|
||||
|
||||
antNum = rtw_btcoex_get_pg_ant_num((PADAPTER)padapter);
|
||||
EXhalbtcoutsrc_SetAntNum(BT_COEX_ANT_TYPE_PG, antNum);
|
||||
|
@ -1932,7 +1932,7 @@ u8 EXhalbtcoutsrc_BindBtCoexWithAdapter(void *padapter)
|
|||
/* set default antenna position to main port */
|
||||
pBtCoexist->board_info.btdm_ant_pos = BTC_ANTENNA_AT_MAIN_PORT;
|
||||
|
||||
pBtCoexist->board_info.btdm_ant_det_finish = _FALSE;
|
||||
pBtCoexist->board_info.btdm_ant_det_finish = false;
|
||||
pBtCoexist->board_info.btdm_ant_num_by_ant_det = 1;
|
||||
|
||||
pBtCoexist->board_info.tfbga_package = rtw_btcoex_is_tfbga_package_type((PADAPTER)padapter);
|
||||
|
@ -1941,7 +1941,7 @@ u8 EXhalbtcoutsrc_BindBtCoexWithAdapter(void *padapter)
|
|||
|
||||
pBtCoexist->board_info.ant_div_cfg = rtw_btcoex_get_ant_div_cfg((PADAPTER)padapter);
|
||||
|
||||
return _TRUE;
|
||||
return true;
|
||||
}
|
||||
|
||||
u8 EXhalbtcoutsrc_InitlizeVariables(void *padapter)
|
||||
|
@ -1995,15 +1995,15 @@ u8 EXhalbtcoutsrc_InitlizeVariables(void *padapter)
|
|||
|
||||
pBtCoexist->cli_buf = &GLBtcDbgBuf[0];
|
||||
|
||||
GLBtcWiFiInScanState = _FALSE;
|
||||
GLBtcWiFiInScanState = false;
|
||||
|
||||
GLBtcWiFiInIQKState = _FALSE;
|
||||
GLBtcWiFiInIQKState = false;
|
||||
|
||||
GLBtcWiFiInIPS = _FALSE;
|
||||
GLBtcWiFiInIPS = false;
|
||||
|
||||
GLBtcWiFiInLPS = _FALSE;
|
||||
GLBtcWiFiInLPS = false;
|
||||
|
||||
GLBtcBtCoexAliveRegistered = _FALSE;
|
||||
GLBtcBtCoexAliveRegistered = false;
|
||||
|
||||
/* BT Control H2C/C2H*/
|
||||
GLBtcBtMpOperSeq = 0;
|
||||
|
@ -2018,7 +2018,7 @@ u8 EXhalbtcoutsrc_InitlizeVariables(void *padapter)
|
|||
GLBtcBtMpRptWiFiOK = 0;
|
||||
GLBtcBtMpRptBTOK = 0;
|
||||
|
||||
return _TRUE;
|
||||
return true;
|
||||
}
|
||||
|
||||
void EXhalbtcoutsrc_PowerOnSetting(PBTC_COEXIST pBtCoexist)
|
||||
|
@ -2188,7 +2188,7 @@ void EXhalbtcoutsrc_init_coex_dm(PBTC_COEXIST pBtCoexist)
|
|||
ex_halbtc8821c1ant_init_coex_dm(pBtCoexist);
|
||||
}
|
||||
|
||||
pBtCoexist->initilized = _TRUE;
|
||||
pBtCoexist->initilized = true;
|
||||
}
|
||||
|
||||
void EXhalbtcoutsrc_ips_notify(PBTC_COEXIST pBtCoexist, u8 type)
|
||||
|
@ -2204,10 +2204,10 @@ void EXhalbtcoutsrc_ips_notify(PBTC_COEXIST pBtCoexist, u8 type)
|
|||
|
||||
if (IPS_NONE == type) {
|
||||
ipsType = BTC_IPS_LEAVE;
|
||||
GLBtcWiFiInIPS = _FALSE;
|
||||
GLBtcWiFiInIPS = false;
|
||||
} else {
|
||||
ipsType = BTC_IPS_ENTER;
|
||||
GLBtcWiFiInIPS = _TRUE;
|
||||
GLBtcWiFiInIPS = true;
|
||||
}
|
||||
|
||||
/* All notify is called in cmd thread, don't need to leave low power again
|
||||
|
@ -2270,10 +2270,10 @@ void EXhalbtcoutsrc_lps_notify(PBTC_COEXIST pBtCoexist, u8 type)
|
|||
|
||||
if (PS_MODE_ACTIVE == type) {
|
||||
lpsType = BTC_LPS_DISABLE;
|
||||
GLBtcWiFiInLPS = _FALSE;
|
||||
GLBtcWiFiInLPS = false;
|
||||
} else {
|
||||
lpsType = BTC_LPS_ENABLE;
|
||||
GLBtcWiFiInLPS = _TRUE;
|
||||
GLBtcWiFiInLPS = true;
|
||||
}
|
||||
|
||||
if (IS_HARDWARE_TYPE_8821(pBtCoexist->Adapter)) {
|
||||
|
@ -2329,10 +2329,10 @@ void EXhalbtcoutsrc_scan_notify(PBTC_COEXIST pBtCoexist, u8 type)
|
|||
|
||||
if (type) {
|
||||
scanType = BTC_SCAN_START;
|
||||
GLBtcWiFiInScanState = _TRUE;
|
||||
GLBtcWiFiInScanState = true;
|
||||
} else {
|
||||
scanType = BTC_SCAN_FINISH;
|
||||
GLBtcWiFiInScanState = _FALSE;
|
||||
GLBtcWiFiInScanState = false;
|
||||
}
|
||||
|
||||
/* All notify is called in cmd thread, don't need to leave low power again
|
||||
|
@ -2781,21 +2781,21 @@ void EXhalbtcoutsrc_CoexDmSwitch(PBTC_COEXIST pBtCoexist)
|
|||
|
||||
if (IS_HARDWARE_TYPE_8723B(pBtCoexist->Adapter)) {
|
||||
if (pBtCoexist->board_info.btdm_ant_num == 1) {
|
||||
pBtCoexist->stop_coex_dm = TRUE;
|
||||
pBtCoexist->stop_coex_dm = true;
|
||||
ex_halbtc8723b1ant_coex_dm_reset(pBtCoexist);
|
||||
EXhalbtcoutsrc_SetAntNum(BT_COEX_ANT_TYPE_DETECTED, 2);
|
||||
ex_halbtc8723b2ant_init_hw_config(pBtCoexist, FALSE);
|
||||
ex_halbtc8723b2ant_init_hw_config(pBtCoexist, false);
|
||||
ex_halbtc8723b2ant_init_coex_dm(pBtCoexist);
|
||||
pBtCoexist->stop_coex_dm = FALSE;
|
||||
pBtCoexist->stop_coex_dm = false;
|
||||
}
|
||||
} else if (IS_HARDWARE_TYPE_8723D(pBtCoexist->Adapter)) {
|
||||
if (pBtCoexist->board_info.btdm_ant_num == 1) {
|
||||
pBtCoexist->stop_coex_dm = TRUE;
|
||||
pBtCoexist->stop_coex_dm = true;
|
||||
ex_halbtc8723d1ant_coex_dm_reset(pBtCoexist);
|
||||
EXhalbtcoutsrc_SetAntNum(BT_COEX_ANT_TYPE_DETECTED, 2);
|
||||
ex_halbtc8723d2ant_init_hw_config(pBtCoexist, FALSE);
|
||||
ex_halbtc8723d2ant_init_hw_config(pBtCoexist, false);
|
||||
ex_halbtc8723d2ant_init_coex_dm(pBtCoexist);
|
||||
pBtCoexist->stop_coex_dm = FALSE;
|
||||
pBtCoexist->stop_coex_dm = false;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -2894,41 +2894,41 @@ void EXhalbtcoutsrc_StackUpdateProfileInfo(void)
|
|||
if (!halbtcoutsrc_IsBtCoexistAvailable(pBtCoexist))
|
||||
return;
|
||||
|
||||
pBtCoexist->stack_info.profile_notified = _TRUE;
|
||||
pBtCoexist->stack_info.profile_notified = true;
|
||||
|
||||
pBtCoexist->stack_info.num_of_link =
|
||||
pBtMgnt->ExtConfig.NumberOfACL + pBtMgnt->ExtConfig.NumberOfSCO;
|
||||
|
||||
/* reset first */
|
||||
pBtCoexist->stack_info.bt_link_exist = _FALSE;
|
||||
pBtCoexist->stack_info.sco_exist = _FALSE;
|
||||
pBtCoexist->stack_info.acl_exist = _FALSE;
|
||||
pBtCoexist->stack_info.a2dp_exist = _FALSE;
|
||||
pBtCoexist->stack_info.hid_exist = _FALSE;
|
||||
pBtCoexist->stack_info.bt_link_exist = false;
|
||||
pBtCoexist->stack_info.sco_exist = false;
|
||||
pBtCoexist->stack_info.acl_exist = false;
|
||||
pBtCoexist->stack_info.a2dp_exist = false;
|
||||
pBtCoexist->stack_info.hid_exist = false;
|
||||
pBtCoexist->stack_info.num_of_hid = 0;
|
||||
pBtCoexist->stack_info.pan_exist = _FALSE;
|
||||
pBtCoexist->stack_info.pan_exist = false;
|
||||
|
||||
if (!pBtMgnt->ExtConfig.NumberOfACL)
|
||||
pBtCoexist->stack_info.min_bt_rssi = 0;
|
||||
|
||||
if (pBtCoexist->stack_info.num_of_link) {
|
||||
pBtCoexist->stack_info.bt_link_exist = _TRUE;
|
||||
pBtCoexist->stack_info.bt_link_exist = true;
|
||||
if (pBtMgnt->ExtConfig.NumberOfSCO)
|
||||
pBtCoexist->stack_info.sco_exist = _TRUE;
|
||||
pBtCoexist->stack_info.sco_exist = true;
|
||||
if (pBtMgnt->ExtConfig.NumberOfACL)
|
||||
pBtCoexist->stack_info.acl_exist = _TRUE;
|
||||
pBtCoexist->stack_info.acl_exist = true;
|
||||
}
|
||||
|
||||
for (i = 0; i < pBtMgnt->ExtConfig.NumberOfACL; i++) {
|
||||
if (BT_PROFILE_A2DP == pBtMgnt->ExtConfig.aclLink[i].BTProfile)
|
||||
pBtCoexist->stack_info.a2dp_exist = _TRUE;
|
||||
pBtCoexist->stack_info.a2dp_exist = true;
|
||||
else if (BT_PROFILE_PAN == pBtMgnt->ExtConfig.aclLink[i].BTProfile)
|
||||
pBtCoexist->stack_info.pan_exist = _TRUE;
|
||||
pBtCoexist->stack_info.pan_exist = true;
|
||||
else if (BT_PROFILE_HID == pBtMgnt->ExtConfig.aclLink[i].BTProfile) {
|
||||
pBtCoexist->stack_info.hid_exist = _TRUE;
|
||||
pBtCoexist->stack_info.hid_exist = true;
|
||||
pBtCoexist->stack_info.num_of_hid++;
|
||||
} else
|
||||
pBtCoexist->stack_info.unknown_acl_exist = _TRUE;
|
||||
pBtCoexist->stack_info.unknown_acl_exist = true;
|
||||
}
|
||||
#endif /* CONFIG_BT_COEXIST_SOCKET_TRX */
|
||||
}
|
||||
|
@ -3086,7 +3086,7 @@ void ex_halbtcoutsrc_pta_off_on_notify(PBTC_COEXIST pBtCoexist, u8 bBTON)
|
|||
{
|
||||
if (IS_HARDWARE_TYPE_8812(pBtCoexist->Adapter)) {
|
||||
if (pBtCoexist->board_info.btdm_ant_num == 2)
|
||||
ex_halbtc8812a2ant_pta_off_on_notify(pBtCoexist, (bBTON == _TRUE) ? BTC_BT_ON : BTC_BT_OFF);
|
||||
ex_halbtc8812a2ant_pta_off_on_notify(pBtCoexist, (bBTON == true) ? BTC_BT_ON : BTC_BT_OFF);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -3187,8 +3187,8 @@ void hal_btcoex_SetBTCoexist(PADAPTER padapter, u8 bBtExist)
|
|||
* Check is co-exist mechanism enabled or not
|
||||
*
|
||||
* Return:
|
||||
* _TRUE Enable BT co-exist mechanism
|
||||
* _FALSE Disable BT co-exist mechanism
|
||||
* true Enable BT co-exist mechanism
|
||||
* false Disable BT co-exist mechanism
|
||||
*/
|
||||
u8 hal_btcoex_IsBtExist(PADAPTER padapter)
|
||||
{
|
||||
|
@ -3202,12 +3202,12 @@ u8 hal_btcoex_IsBtExist(PADAPTER padapter)
|
|||
u8 hal_btcoex_IsBtDisabled(PADAPTER padapter)
|
||||
{
|
||||
if (!hal_btcoex_IsBtExist(padapter))
|
||||
return _TRUE;
|
||||
return true;
|
||||
|
||||
if (GLBtCoexist.bt_info.bt_disabled)
|
||||
return _TRUE;
|
||||
return true;
|
||||
else
|
||||
return _FALSE;
|
||||
return false;
|
||||
}
|
||||
|
||||
void hal_btcoex_SetChipType(PADAPTER padapter, u8 chipType)
|
||||
|
@ -3299,7 +3299,7 @@ void hal_btcoex_IQKNotify(PADAPTER padapter, u8 state)
|
|||
|
||||
void hal_btcoex_BtInfoNotify(PADAPTER padapter, u8 length, u8 *tmpBuf)
|
||||
{
|
||||
if (GLBtcWiFiInIQKState == _TRUE)
|
||||
if (GLBtcWiFiInIQKState == true)
|
||||
return;
|
||||
|
||||
EXhalbtcoutsrc_bt_info_notify(&GLBtCoexist, tmpBuf, length);
|
||||
|
@ -3366,7 +3366,7 @@ void hal_btcoex_HaltNotify(PADAPTER padapter, u8 do_halt)
|
|||
if (do_halt == 1)
|
||||
EXhalbtcoutsrc_halt_notify(&GLBtCoexist);
|
||||
|
||||
GLBtCoexist.bBinded = _FALSE;
|
||||
GLBtCoexist.bBinded = false;
|
||||
GLBtCoexist.Adapter = NULL;
|
||||
}
|
||||
|
||||
|
@ -3409,47 +3409,47 @@ void hal_btcoex_SetManualControl(PADAPTER padapter, u8 bmanual)
|
|||
|
||||
u8 hal_btcoex_1Ant(PADAPTER padapter)
|
||||
{
|
||||
if (hal_btcoex_IsBtExist(padapter) == _FALSE)
|
||||
return _FALSE;
|
||||
if (hal_btcoex_IsBtExist(padapter) == false)
|
||||
return false;
|
||||
|
||||
if (GLBtCoexist.board_info.btdm_ant_num == 1)
|
||||
return _TRUE;
|
||||
return true;
|
||||
|
||||
return _FALSE;
|
||||
return false;
|
||||
}
|
||||
|
||||
u8 hal_btcoex_IsBtControlLps(PADAPTER padapter)
|
||||
{
|
||||
if (GLBtCoexist.bdontenterLPS == _TRUE)
|
||||
return _TRUE;
|
||||
if (GLBtCoexist.bdontenterLPS == true)
|
||||
return true;
|
||||
|
||||
if (hal_btcoex_IsBtExist(padapter) == _FALSE)
|
||||
return _FALSE;
|
||||
if (hal_btcoex_IsBtExist(padapter) == false)
|
||||
return false;
|
||||
|
||||
if (GLBtCoexist.bt_info.bt_disabled)
|
||||
return _FALSE;
|
||||
return false;
|
||||
|
||||
if (GLBtCoexist.bt_info.bt_ctrl_lps)
|
||||
return _TRUE;
|
||||
return true;
|
||||
|
||||
return _FALSE;
|
||||
return false;
|
||||
}
|
||||
|
||||
u8 hal_btcoex_IsLpsOn(PADAPTER padapter)
|
||||
{
|
||||
if (GLBtCoexist.bdontenterLPS == _TRUE)
|
||||
return _FALSE;
|
||||
if (GLBtCoexist.bdontenterLPS == true)
|
||||
return false;
|
||||
|
||||
if (hal_btcoex_IsBtExist(padapter) == _FALSE)
|
||||
return _FALSE;
|
||||
if (hal_btcoex_IsBtExist(padapter) == false)
|
||||
return false;
|
||||
|
||||
if (GLBtCoexist.bt_info.bt_disabled)
|
||||
return _FALSE;
|
||||
return false;
|
||||
|
||||
if (GLBtCoexist.bt_info.bt_lps_on)
|
||||
return _TRUE;
|
||||
return true;
|
||||
|
||||
return _FALSE;
|
||||
return false;
|
||||
}
|
||||
|
||||
u8 hal_btcoex_RpwmVal(PADAPTER padapter)
|
||||
|
@ -3551,20 +3551,20 @@ exit:
|
|||
u8 hal_btcoex_IncreaseScanDeviceNum(PADAPTER padapter)
|
||||
{
|
||||
if (!hal_btcoex_IsBtExist(padapter))
|
||||
return _FALSE;
|
||||
return false;
|
||||
|
||||
if (GLBtCoexist.bt_info.increase_scan_dev_num)
|
||||
return _TRUE;
|
||||
return true;
|
||||
|
||||
return _FALSE;
|
||||
return false;
|
||||
}
|
||||
|
||||
u8 hal_btcoex_IsBtLinkExist(PADAPTER padapter)
|
||||
{
|
||||
if (GLBtCoexist.bt_link_info.bt_link_exist)
|
||||
return _TRUE;
|
||||
return true;
|
||||
|
||||
return _FALSE;
|
||||
return false;
|
||||
}
|
||||
|
||||
void hal_btcoex_SetBtPatchVersion(PADAPTER padapter, u16 btHciVer, u16 btPatchVer)
|
||||
|
@ -3735,7 +3735,7 @@ hal_btcoex_AntIsolationConfig_ParaFile(
|
|||
memset(pHalData->para_file_buf , 0 , MAX_PARA_FILE_BUF_LEN);
|
||||
|
||||
rtw_get_phy_file_path(Adapter, pFileName);
|
||||
if (rtw_is_file_readable(rtw_phy_para_file_path) == _TRUE) {
|
||||
if (rtw_is_file_readable(rtw_phy_para_file_path) == true) {
|
||||
rlen = rtw_retrieve_from_file(rtw_phy_para_file_path, pHalData->para_file_buf, MAX_PARA_FILE_BUF_LEN);
|
||||
if (rlen > 0)
|
||||
rtStatus = _SUCCESS;
|
||||
|
|
|
@ -90,19 +90,19 @@ void halwifionly_phy_set_bb_reg(void * pwifionlyContext, u32 RegAddr, u32 BitMas
|
|||
void hal_btcoex_wifionly_switchband_notify(PADAPTER padapter)
|
||||
{
|
||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(padapter);
|
||||
u8 is_5g = _FALSE;
|
||||
u8 is_5g = false;
|
||||
|
||||
if (pHalData->current_band_type == BAND_ON_5G)
|
||||
is_5g = _TRUE;
|
||||
is_5g = true;
|
||||
}
|
||||
|
||||
void hal_btcoex_wifionly_scan_notify(PADAPTER padapter)
|
||||
{
|
||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(padapter);
|
||||
u8 is_5g = _FALSE;
|
||||
u8 is_5g = false;
|
||||
|
||||
if (pHalData->current_band_type == BAND_ON_5G)
|
||||
is_5g = _TRUE;
|
||||
is_5g = true;
|
||||
}
|
||||
|
||||
void hal_btcoex_wifionly_hw_config(PADAPTER padapter)
|
||||
|
|
422
hal/hal_com.c
422
hal/hal_com.c
File diff suppressed because it is too large
Load diff
|
@ -778,7 +778,7 @@ void hal_load_txpwr_info(
|
|||
u8 rfpath, ch_idx, group, tx_idx;
|
||||
|
||||
/* load from pg data (or default value) */
|
||||
hal_load_pg_txpwr_info(adapter, pwr_info_2g, pwr_info_5g, pg_data, _FALSE);
|
||||
hal_load_pg_txpwr_info(adapter, pwr_info_2g, pwr_info_5g, pg_data, false);
|
||||
|
||||
/* transform to hal_data */
|
||||
for (rfpath = 0; rfpath < MAX_RF_PATH; rfpath++) {
|
||||
|
@ -1115,14 +1115,14 @@ static bool rtw_regsty_chk_target_tx_power_valid(_adapter *adapter)
|
|||
|
||||
target = rtw_regsty_get_target_tx_power(adapter, band, path, rs);
|
||||
if (target == -1) {
|
||||
RTW_PRINT("%s return _FALSE for band:%d, path:%d, rs:%d, t:%d\n", __func__, band, path, rs, target);
|
||||
return _FALSE;
|
||||
RTW_PRINT("%s return false for band:%d, path:%d, rs:%d, t:%d\n", __func__, band, path, rs, target);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return _TRUE;
|
||||
return true;
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -1220,7 +1220,7 @@ static inline bool phy_is_txpwr_by_rate_undefined_of_band_path(_adapter *adapter
|
|||
}
|
||||
|
||||
exit:
|
||||
return (tx_num >= hal_spec->max_tx_cnt || tx_num >= hal_spec->tx_nss_num) ? _TRUE : _FALSE;
|
||||
return (tx_num >= hal_spec->max_tx_cnt || tx_num >= hal_spec->tx_nss_num) ? true : false;
|
||||
}
|
||||
|
||||
static inline void phy_txpwr_by_rate_duplicate_band_path(_adapter *adapter, u8 band, u8 s_path, u8 t_path)
|
||||
|
@ -1333,7 +1333,7 @@ phy_StoreTxPowerByRateBase(
|
|||
if (IS_VHT_RATE_SECTION(rs))
|
||||
continue;
|
||||
|
||||
if (regsty->target_tx_pwr_valid == _TRUE)
|
||||
if (regsty->target_tx_pwr_valid == true)
|
||||
base = 2 * rtw_regsty_get_target_tx_power(pAdapter, band, path, rs);
|
||||
else
|
||||
base = _PHY_GetTxPowerByRate(pAdapter, band, path, tx_num, rate_sec_base[rs]);
|
||||
|
@ -1952,13 +1952,13 @@ exit:
|
|||
static bool phy_GetChnlIndex(u8 Channel, u8 *ChannelIdx)
|
||||
{
|
||||
u8 i = 0;
|
||||
bool bIn24G = _TRUE;
|
||||
bool bIn24G = true;
|
||||
|
||||
if (Channel <= 14) {
|
||||
bIn24G = _TRUE;
|
||||
bIn24G = true;
|
||||
*ChannelIdx = Channel - 1;
|
||||
} else {
|
||||
bIn24G = _FALSE;
|
||||
bIn24G = false;
|
||||
|
||||
for (i = 0; i < CENTER_CH_5G_ALL_NUM; ++i) {
|
||||
if (center_ch_5g_all[i] == Channel) {
|
||||
|
@ -1987,7 +1987,7 @@ PHY_GetTxPowerIndexBase(
|
|||
u8 txPower = 0;
|
||||
u8 chnlIdx = (Channel - 1);
|
||||
|
||||
if (HAL_IsLegalChannel(pAdapter, Channel) == _FALSE) {
|
||||
if (HAL_IsLegalChannel(pAdapter, Channel) == false) {
|
||||
chnlIdx = 0;
|
||||
RTW_INFO("Illegal channel!!\n");
|
||||
}
|
||||
|
@ -2143,7 +2143,7 @@ PHY_GetTxPowerTrackingOffset(
|
|||
struct PHY_DM_STRUCT *pDM_Odm = &pHalData->odmpriv;
|
||||
s8 offset = 0;
|
||||
|
||||
if (pDM_Odm->rf_calibrate_info.txpowertrack_control == _FALSE)
|
||||
if (pDM_Odm->rf_calibrate_info.txpowertrack_control == false)
|
||||
return offset;
|
||||
|
||||
if ((Rate == MGN_1M) || (Rate == MGN_2M) || (Rate == MGN_5_5M) || (Rate == MGN_11M)) {
|
||||
|
@ -2722,7 +2722,7 @@ static s8 _phy_get_txpwr_lmt(
|
|||
goto exit;
|
||||
}
|
||||
|
||||
if (no_sc == _TRUE) {
|
||||
if (no_sc == true) {
|
||||
/* use the input center channel and bandwidth directly */
|
||||
cch = Channel;
|
||||
bw_bmp = ch_width_to_bw_cap(Bandwidth);
|
||||
|
@ -2755,7 +2755,7 @@ static s8 _phy_get_txpwr_lmt(
|
|||
if (!(ch_width_to_bw_cap(bw) & bw_bmp))
|
||||
continue;
|
||||
|
||||
if (no_sc == _FALSE) {
|
||||
if (no_sc == false) {
|
||||
if (bw == CHANNEL_WIDTH_20)
|
||||
cch = hal_data->cch_20;
|
||||
else if (bw == CHANNEL_WIDTH_40)
|
||||
|
@ -2816,11 +2816,11 @@ PHY_GetTxPowerLimit(
|
|||
u8 Channel
|
||||
)
|
||||
{
|
||||
bool no_sc = _FALSE;
|
||||
bool no_sc = false;
|
||||
|
||||
/* MP mode channel don't use secondary channel */
|
||||
if (rtw_mi_mp_mode_check(Adapter) == _TRUE)
|
||||
no_sc = _TRUE;
|
||||
if (rtw_mi_mp_mode_check(Adapter) == true)
|
||||
no_sc = true;
|
||||
|
||||
return _phy_get_txpwr_lmt(Adapter, RegPwrTblSel, Band, Bandwidth, RfPath, DataRate, Channel, no_sc);
|
||||
}
|
||||
|
@ -2836,7 +2836,7 @@ PHY_GetTxPowerLimit_no_sc(
|
|||
u8 Channel
|
||||
)
|
||||
{
|
||||
return _phy_get_txpwr_lmt(Adapter, RegPwrTblSel, Band, Bandwidth, RfPath, DataRate, Channel, _TRUE);
|
||||
return _phy_get_txpwr_lmt(Adapter, RegPwrTblSel, Band, Bandwidth, RfPath, DataRate, Channel, true);
|
||||
}
|
||||
|
||||
#ifdef CONFIG_PHYDM_POWERTRACK_BY_TSSI
|
||||
|
@ -3281,8 +3281,8 @@ phy_set_tx_power_limit(
|
|||
RTW_INFO("Index of power limit table [band %s][regulation %s][bw %s][rate section %s][rf path %s][chnl %s][val %s]\n"
|
||||
, Band, Regulation, Bandwidth, RateSection, RfPath, Channel, PowerLimit);
|
||||
|
||||
if (GetU1ByteIntegerFromStringInDecimal((s8 *)Channel, &channel) == _FALSE
|
||||
|| GetU1ByteIntegerFromStringInDecimal((s8 *)PowerLimit, &powerLimit) == _FALSE
|
||||
if (GetU1ByteIntegerFromStringInDecimal((s8 *)Channel, &channel) == false
|
||||
|| GetU1ByteIntegerFromStringInDecimal((s8 *)PowerLimit, &powerLimit) == false
|
||||
) {
|
||||
RTW_PRINT("Illegal index of power limit table [ch %s][val %s]\n", Channel, PowerLimit);
|
||||
return;
|
||||
|
@ -3484,8 +3484,8 @@ bool phy_is_tx_power_limit_needed(_adapter *adapter)
|
|||
|
||||
if (regsty->RegEnableTxPowerLimit == 1
|
||||
|| (regsty->RegEnableTxPowerLimit == 2 && hal_data->EEPROMRegulatory == 1))
|
||||
return _TRUE;
|
||||
return _FALSE;
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
bool phy_is_tx_power_by_rate_needed(_adapter *adapter)
|
||||
|
@ -3495,8 +3495,8 @@ bool phy_is_tx_power_by_rate_needed(_adapter *adapter)
|
|||
|
||||
if (regsty->RegEnableTxPowerByRate == 1
|
||||
|| (regsty->RegEnableTxPowerByRate == 2 && hal_data->EEPROMRegulatory != 2))
|
||||
return _TRUE;
|
||||
return _FALSE;
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
int phy_load_tx_power_by_rate(_adapter *adapter, u8 chk_file)
|
||||
|
@ -3555,7 +3555,7 @@ int phy_load_tx_power_limit(_adapter *adapter, u8 chk_file)
|
|||
hal_data->txpwr_limit_loaded = 0;
|
||||
PHY_InitTxPowerLimit(adapter);
|
||||
|
||||
if (!hal_data->txpwr_by_rate_loaded && regsty->target_tx_pwr_valid != _TRUE) {
|
||||
if (!hal_data->txpwr_by_rate_loaded && regsty->target_tx_pwr_valid != true) {
|
||||
RTW_ERR("%s():Read Tx power limit before target tx power is specify\n", __func__);
|
||||
goto exit;
|
||||
}
|
||||
|
@ -3598,7 +3598,7 @@ void phy_load_tx_power_ext_info(_adapter *adapter, u8 chk_file)
|
|||
|
||||
/* power by rate and limit */
|
||||
if (phy_is_tx_power_by_rate_needed(adapter)
|
||||
|| (phy_is_tx_power_limit_needed(adapter) && regsty->target_tx_pwr_valid != _TRUE)
|
||||
|| (phy_is_tx_power_limit_needed(adapter) && regsty->target_tx_pwr_valid != true)
|
||||
)
|
||||
phy_load_tx_power_by_rate(adapter, chk_file);
|
||||
|
||||
|
@ -3621,7 +3621,7 @@ void dump_tx_power_ext_info(void *sel, _adapter *adapter)
|
|||
struct registry_priv *regsty = adapter_to_regsty(adapter);
|
||||
HAL_DATA_TYPE *hal_data = GET_HAL_DATA(adapter);
|
||||
|
||||
if (regsty->target_tx_pwr_valid == _TRUE)
|
||||
if (regsty->target_tx_pwr_valid == true)
|
||||
RTW_PRINT_SEL(sel, "target_tx_power: from registry\n");
|
||||
else if (phy_is_tx_power_by_rate_needed(adapter))
|
||||
RTW_PRINT_SEL(sel, "target_tx_power: from power by rate\n");
|
||||
|
@ -3658,7 +3658,7 @@ void dump_target_tx_power(void *sel, _adapter *adapter)
|
|||
break;
|
||||
|
||||
RTW_PRINT_SEL(sel, "[%s][%c]%s\n", band_str(band), rf_path_char(path)
|
||||
, (regsty->target_tx_pwr_valid == _FALSE && hal_data->txpwr_by_rate_undefined_band_path[band][path]) ? "(dup)" : "");
|
||||
, (regsty->target_tx_pwr_valid == false && hal_data->txpwr_by_rate_undefined_band_path[band][path]) ? "(dup)" : "");
|
||||
|
||||
for (rs = 0; rs < RATE_SECTION_NUM; rs++) {
|
||||
tx_num = rate_section_to_tx_num(rs);
|
||||
|
@ -3936,10 +3936,10 @@ int rtw_get_phy_file_path(_adapter *adapter, const char *file_name)
|
|||
#endif
|
||||
len += snprintf(rtw_phy_para_file_path + len, PATH_LENGTH_MAX - len, "%s", file_name);
|
||||
|
||||
return _TRUE;
|
||||
return true;
|
||||
}
|
||||
#endif
|
||||
return _FALSE;
|
||||
return false;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_LOAD_PHY_PARA_FROM_FILE
|
||||
|
@ -3961,7 +3961,7 @@ phy_ConfigMACWithParaFile(
|
|||
|
||||
if ((pHalData->mac_reg_len == 0) && (pHalData->mac_reg == NULL)) {
|
||||
rtw_get_phy_file_path(Adapter, pFileName);
|
||||
if (rtw_is_file_readable(rtw_phy_para_file_path) == _TRUE) {
|
||||
if (rtw_is_file_readable(rtw_phy_para_file_path) == true) {
|
||||
rlen = rtw_retrieve_from_file(rtw_phy_para_file_path, pHalData->para_file_buf, MAX_PARA_FILE_BUF_LEN);
|
||||
if (rlen > 0) {
|
||||
rtStatus = _SUCCESS;
|
||||
|
@ -4040,7 +4040,7 @@ phy_ConfigBBWithParaFile(
|
|||
|
||||
if ((pBufLen != NULL) && (*pBufLen == 0) && (pBuf == NULL)) {
|
||||
rtw_get_phy_file_path(Adapter, pFileName);
|
||||
if (rtw_is_file_readable(rtw_phy_para_file_path) == _TRUE) {
|
||||
if (rtw_is_file_readable(rtw_phy_para_file_path) == true) {
|
||||
rlen = rtw_retrieve_from_file(rtw_phy_para_file_path, pHalData->para_file_buf, MAX_PARA_FILE_BUF_LEN);
|
||||
if (rlen > 0) {
|
||||
rtStatus = _SUCCESS;
|
||||
|
@ -4157,7 +4157,7 @@ static int phy_ParseBBPgParaFile(PADAPTER Adapter, char *buffer)
|
|||
char *szLine, *ptmp;
|
||||
u32 u4bRegOffset, u4bRegMask, u4bRegValue;
|
||||
u32 u4bMove;
|
||||
bool firstLine = _TRUE;
|
||||
bool firstLine = true;
|
||||
u8 tx_num = 0;
|
||||
u8 band = 0, rf_path = 0;
|
||||
|
||||
|
@ -4189,12 +4189,12 @@ static int phy_ParseBBPgParaFile(PADAPTER Adapter, char *buffer)
|
|||
if (eqNByte(szLine + 5, (u8 *)("[Exact]#"), 8)) {
|
||||
pHalData->odmpriv.phy_reg_pg_value_type = PHY_REG_PG_EXACT_VALUE;
|
||||
/* RTW_INFO("The values in PHY_REG_PG are exact values ok\n"); */
|
||||
firstLine = _FALSE;
|
||||
firstLine = false;
|
||||
continue;
|
||||
} else if (eqNByte(szLine + 5, (u8 *)("[Relative]#"), 11)) {
|
||||
pHalData->odmpriv.phy_reg_pg_value_type = PHY_REG_PG_RELATIVE_VALUE;
|
||||
/* RTW_INFO("The values in PHY_REG_PG are relative values ok\n"); */
|
||||
firstLine = _FALSE;
|
||||
firstLine = false;
|
||||
continue;
|
||||
} else {
|
||||
RTW_INFO("The values in PHY_REG_PG are invalid %s\n", szLine);
|
||||
|
@ -4418,7 +4418,7 @@ phy_ConfigBBWithPgParaFile(
|
|||
|
||||
if (pHalData->bb_phy_reg_pg == NULL) {
|
||||
rtw_get_phy_file_path(Adapter, pFileName);
|
||||
if (rtw_is_file_readable(rtw_phy_para_file_path) == _TRUE) {
|
||||
if (rtw_is_file_readable(rtw_phy_para_file_path) == true) {
|
||||
rlen = rtw_retrieve_from_file(rtw_phy_para_file_path, pHalData->para_file_buf, MAX_PARA_FILE_BUF_LEN);
|
||||
if (rlen > 0) {
|
||||
rtStatus = _SUCCESS;
|
||||
|
@ -4467,7 +4467,7 @@ phy_ConfigBBWithMpParaFile(
|
|||
|
||||
if ((pHalData->bb_phy_reg_mp_len == 0) && (pHalData->bb_phy_reg_mp == NULL)) {
|
||||
rtw_get_phy_file_path(Adapter, pFileName);
|
||||
if (rtw_is_file_readable(rtw_phy_para_file_path) == _TRUE) {
|
||||
if (rtw_is_file_readable(rtw_phy_para_file_path) == true) {
|
||||
rlen = rtw_retrieve_from_file(rtw_phy_para_file_path, pHalData->para_file_buf, MAX_PARA_FILE_BUF_LEN);
|
||||
if (rlen > 0) {
|
||||
rtStatus = _SUCCESS;
|
||||
|
@ -4571,7 +4571,7 @@ PHY_ConfigRFWithParaFile(
|
|||
|
||||
if ((pBufLen != NULL) && (*pBufLen == 0) && (pBuf == NULL)) {
|
||||
rtw_get_phy_file_path(Adapter, pFileName);
|
||||
if (rtw_is_file_readable(rtw_phy_para_file_path) == _TRUE) {
|
||||
if (rtw_is_file_readable(rtw_phy_para_file_path) == true) {
|
||||
rlen = rtw_retrieve_from_file(rtw_phy_para_file_path, pHalData->para_file_buf, MAX_PARA_FILE_BUF_LEN);
|
||||
if (rlen > 0) {
|
||||
rtStatus = _SUCCESS;
|
||||
|
@ -4766,7 +4766,7 @@ PHY_ConfigRFWithTxPwrTrackParaFile(
|
|||
|
||||
if ((pHalData->rf_tx_pwr_track_len == 0) && (pHalData->rf_tx_pwr_track == NULL)) {
|
||||
rtw_get_phy_file_path(Adapter, pFileName);
|
||||
if (rtw_is_file_readable(rtw_phy_para_file_path) == _TRUE) {
|
||||
if (rtw_is_file_readable(rtw_phy_para_file_path) == true) {
|
||||
rlen = rtw_retrieve_from_file(rtw_phy_para_file_path, pHalData->para_file_buf, MAX_PARA_FILE_BUF_LEN);
|
||||
if (rlen > 0) {
|
||||
rtStatus = _SUCCESS;
|
||||
|
@ -5083,7 +5083,7 @@ PHY_ConfigRFWithPowerLimitTableParaFile(
|
|||
|
||||
if (pHalData->rf_tx_pwr_lmt == NULL) {
|
||||
rtw_get_phy_file_path(Adapter, pFileName);
|
||||
if (rtw_is_file_readable(rtw_phy_para_file_path) == _TRUE) {
|
||||
if (rtw_is_file_readable(rtw_phy_para_file_path) == true) {
|
||||
rlen = rtw_retrieve_from_file(rtw_phy_para_file_path, pHalData->para_file_buf, MAX_PARA_FILE_BUF_LEN);
|
||||
if (rlen > 0) {
|
||||
rtStatus = _SUCCESS;
|
||||
|
|
|
@ -158,9 +158,9 @@ void Init_ODM_ComInfo(_adapter *adapter)
|
|||
|
||||
/*Add by YuChen for adaptivity init*/
|
||||
odm_cmn_info_hook(pDM_Odm, ODM_CMNINFO_ADAPTIVITY, &(adapter->registrypriv.adaptivity_en));
|
||||
phydm_adaptivity_info_init(pDM_Odm, PHYDM_ADAPINFO_CARRIER_SENSE_ENABLE, (adapter->registrypriv.adaptivity_mode != 0) ? TRUE : FALSE);
|
||||
phydm_adaptivity_info_init(pDM_Odm, PHYDM_ADAPINFO_CARRIER_SENSE_ENABLE, (adapter->registrypriv.adaptivity_mode != 0) ? true : false);
|
||||
phydm_adaptivity_info_init(pDM_Odm, PHYDM_ADAPINFO_DCBACKOFF, adapter->registrypriv.adaptivity_dc_backoff);
|
||||
phydm_adaptivity_info_init(pDM_Odm, PHYDM_ADAPINFO_DYNAMICLINKADAPTIVITY, (adapter->registrypriv.adaptivity_dml != 0) ? TRUE : FALSE);
|
||||
phydm_adaptivity_info_init(pDM_Odm, PHYDM_ADAPINFO_DYNAMICLINKADAPTIVITY, (adapter->registrypriv.adaptivity_dml != 0) ? true : false);
|
||||
phydm_adaptivity_info_init(pDM_Odm, PHYDM_ADAPINFO_TH_L2H_INI, adapter->registrypriv.adaptivity_th_l2h_ini);
|
||||
phydm_adaptivity_info_init(pDM_Odm, PHYDM_ADAPINFO_TH_EDCCA_HL_DIFF, adapter->registrypriv.adaptivity_th_edcca_hl_diff);
|
||||
|
||||
|
@ -197,6 +197,6 @@ void Init_ODM_ComInfo(_adapter *adapter)
|
|||
phydm_init_debug_setting(pDM_Odm);
|
||||
|
||||
/* TODO */
|
||||
/* odm_cmn_info_hook(pDM_Odm, ODM_CMNINFO_BT_OPERATION, _FALSE); */
|
||||
/* odm_cmn_info_hook(pDM_Odm, ODM_CMNINFO_BT_DISABLE_EDCA, _FALSE); */
|
||||
/* odm_cmn_info_hook(pDM_Odm, ODM_CMNINFO_BT_OPERATION, false); */
|
||||
/* odm_cmn_info_hook(pDM_Odm, ODM_CMNINFO_BT_DISABLE_EDCA, false); */
|
||||
}
|
||||
|
|
|
@ -197,7 +197,7 @@ void rtw_hal_init_opmode(_adapter *padapter)
|
|||
else
|
||||
return;
|
||||
|
||||
rtw_setopmode_cmd(padapter, networkType, _FALSE);
|
||||
rtw_setopmode_cmd(padapter, networkType, false);
|
||||
}
|
||||
|
||||
uint rtw_hal_init(_adapter *padapter)
|
||||
|
@ -210,7 +210,7 @@ uint rtw_hal_init(_adapter *padapter)
|
|||
status = padapter->hal_func.hal_init(padapter);
|
||||
|
||||
if (status == _SUCCESS) {
|
||||
pHalData->hw_init_completed = _TRUE;
|
||||
pHalData->hw_init_completed = true;
|
||||
rtw_restore_mac_addr(padapter);
|
||||
|
||||
if (padapter->registrypriv.notch_filter == 1)
|
||||
|
@ -230,7 +230,7 @@ uint rtw_hal_init(_adapter *padapter)
|
|||
#endif /*CONFIG_RF_POWER_TRIM*/
|
||||
|
||||
} else {
|
||||
pHalData->hw_init_completed = _FALSE;
|
||||
pHalData->hw_init_completed = false;
|
||||
RTW_INFO("rtw_hal_init: hal_init fail\n");
|
||||
}
|
||||
|
||||
|
@ -250,7 +250,7 @@ uint rtw_hal_deinit(_adapter *padapter)
|
|||
|
||||
if (status == _SUCCESS) {
|
||||
rtw_led_control(padapter, LED_CTL_POWER_OFF);
|
||||
pHalData->hw_init_completed = _FALSE;
|
||||
pHalData->hw_init_completed = false;
|
||||
} else
|
||||
RTW_INFO("\n rtw_hal_deinit: hal_init fail\n");
|
||||
|
||||
|
@ -298,7 +298,7 @@ void rtw_hal_disable_interrupt(_adapter *padapter)
|
|||
|
||||
u8 rtw_hal_check_ips_status(_adapter *padapter)
|
||||
{
|
||||
u8 val = _FALSE;
|
||||
u8 val = false;
|
||||
if (padapter->hal_func.check_ips_status)
|
||||
val = padapter->hal_func.check_ips_status(padapter);
|
||||
else
|
||||
|
@ -370,18 +370,18 @@ s32 rtw_hal_mgnt_xmit(_adapter *padapter, struct xmit_frame *pmgntframe)
|
|||
/* _rtw_memcpy(pmgntframe->attrib.ra, pwlanhdr->addr1, ETH_ALEN); */
|
||||
|
||||
#ifdef CONFIG_IEEE80211W
|
||||
if (padapter->securitypriv.binstallBIPkey == _TRUE && (subtype == WIFI_DEAUTH || subtype == WIFI_DISASSOC ||
|
||||
if (padapter->securitypriv.binstallBIPkey == true && (subtype == WIFI_DEAUTH || subtype == WIFI_DISASSOC ||
|
||||
subtype == WIFI_ACTION)) {
|
||||
if (IS_MCAST(pmgntframe->attrib.ra) && pmgntframe->attrib.key_type != IEEE80211W_NO_KEY) {
|
||||
pmgntframe->attrib.encrypt = _BIP_;
|
||||
/* pmgntframe->attrib.bswenc = _TRUE; */
|
||||
/* pmgntframe->attrib.bswenc = true; */
|
||||
} else if (pmgntframe->attrib.key_type != IEEE80211W_NO_KEY) {
|
||||
psta = rtw_get_stainfo(pstapriv, pmgntframe->attrib.ra);
|
||||
if (psta && psta->bpairwise_key_installed == _TRUE) {
|
||||
if (psta && psta->bpairwise_key_installed == true) {
|
||||
pmgntframe->attrib.encrypt = _AES_;
|
||||
pmgntframe->attrib.bswenc = _TRUE;
|
||||
pmgntframe->attrib.bswenc = true;
|
||||
} else {
|
||||
RTW_INFO("%s, %d, bpairwise_key_installed is FALSE\n", __func__, __LINE__);
|
||||
RTW_INFO("%s, %d, bpairwise_key_installed is false\n", __func__, __LINE__);
|
||||
goto no_mgmt_coalesce;
|
||||
}
|
||||
}
|
||||
|
@ -420,7 +420,7 @@ void rtw_update_ramask(_adapter *padapter, struct sta_info *psta, u32 mac_id, u8
|
|||
struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
|
||||
struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
|
||||
HAL_DATA_TYPE *hal_data = GET_HAL_DATA(padapter);
|
||||
u8 disable_cck_rate = FALSE, MimoPs_enable = FALSE;
|
||||
u8 disable_cck_rate = false, MimoPs_enable = false;
|
||||
u32 ratr_bitmap_msb = 0, ratr_bitmap_lsb = 0;
|
||||
u64 mask = 0, rate_bitmap = 0;
|
||||
u8 bw, short_gi;
|
||||
|
@ -497,7 +497,7 @@ void rtw_hal_update_ra_mask(struct sta_info *psta, u8 rssi_level, u8 is_update_b
|
|||
|
||||
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, is_update_bw);
|
||||
else {
|
||||
psta->raid = rtw_hal_networktype_to_raid(padapter, psta);
|
||||
|
@ -574,12 +574,12 @@ void rtw_hal_set_chnl_bw(_adapter *padapter, u8 channel, CHANNEL_WIDTH Bandwidth
|
|||
u8 cch_20 = Bandwidth == CHANNEL_WIDTH_20 ? channel : 0;
|
||||
|
||||
odm_acquire_spin_lock(pDM_Odm, RT_IQK_SPINLOCK);
|
||||
if (pDM_Odm->rf_calibrate_info.is_iqk_in_progress == _TRUE)
|
||||
if (pDM_Odm->rf_calibrate_info.is_iqk_in_progress == true)
|
||||
RTW_ERR("%s, %d, IQK may race condition\n", __func__, __LINE__);
|
||||
odm_release_spin_lock(pDM_Odm, RT_IQK_SPINLOCK);
|
||||
|
||||
/* MP mode channel don't use secondary channel */
|
||||
if (rtw_mi_mp_mode_check(padapter) == _FALSE) {
|
||||
if (rtw_mi_mp_mode_check(padapter) == false) {
|
||||
if (cch_80 != 0)
|
||||
cch_40 = rtw_get_scch_by_cch_offset(cch_80, CHANNEL_WIDTH_80, Offset80);
|
||||
if (cch_40 != 0)
|
||||
|
@ -633,7 +633,7 @@ void rtw_hal_dm_watchdog_in_lps(_adapter *padapter)
|
|||
#endif
|
||||
#endif
|
||||
|
||||
if (adapter_to_pwrctl(padapter)->bFwCurrentInPSMode == _TRUE) {
|
||||
if (adapter_to_pwrctl(padapter)->bFwCurrentInPSMode == true) {
|
||||
padapter->hal_func.hal_dm_watchdog_in_lps(padapter);/* this function caller is in interrupt context */
|
||||
}
|
||||
}
|
||||
|
@ -847,7 +847,7 @@ s32 c2h_handler(_adapter *adapter, u8 id, u8 seq, u8 plen, u8 *payload)
|
|||
/* no handle, goto default */
|
||||
|
||||
default:
|
||||
if (phydm_c2H_content_parsing(odm, id, plen, payload) != TRUE)
|
||||
if (phydm_c2H_content_parsing(odm, id, plen, payload) != true)
|
||||
ret = _FAIL;
|
||||
break;
|
||||
}
|
||||
|
@ -886,9 +886,9 @@ s32 rtw_hal_c2h_id_handle_directly(_adapter *adapter, u8 id, u8 seq, u8 plen, u8
|
|||
case C2H_BCN_EARLY_RPT:
|
||||
case C2H_AP_REQ_TXRPT:
|
||||
case C2H_SPC_STAT:
|
||||
return _TRUE;
|
||||
return true;
|
||||
default:
|
||||
return _FALSE;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
#endif /* !RTW_HALMAC */
|
||||
|
@ -904,9 +904,9 @@ s32 rtw_hal_macid_sleep(PADAPTER padapter, u8 macid)
|
|||
struct macid_ctl_t *macid_ctl = dvobj_to_macidctl(dvobj);
|
||||
u8 support;
|
||||
|
||||
support = _FALSE;
|
||||
support = false;
|
||||
rtw_hal_get_def_var(padapter, HAL_DEF_MACID_SLEEP, &support);
|
||||
if (_FALSE == support)
|
||||
if (false == support)
|
||||
return _FAIL;
|
||||
|
||||
if (macid >= macid_ctl->num) {
|
||||
|
@ -926,9 +926,9 @@ s32 rtw_hal_macid_wakeup(PADAPTER padapter, u8 macid)
|
|||
struct macid_ctl_t *macid_ctl = dvobj_to_macidctl(dvobj);
|
||||
u8 support;
|
||||
|
||||
support = _FALSE;
|
||||
support = false;
|
||||
rtw_hal_get_def_var(padapter, HAL_DEF_MACID_SLEEP, &support);
|
||||
if (_FALSE == support)
|
||||
if (false == support)
|
||||
return _FAIL;
|
||||
|
||||
if (macid >= macid_ctl->num) {
|
||||
|
@ -946,7 +946,7 @@ s32 rtw_hal_fill_h2c_cmd(PADAPTER padapter, u8 ElementID, u32 CmdLen, u8 *pCmdBu
|
|||
{
|
||||
_adapter *pri_adapter = GET_PRIMARY_ADAPTER(padapter);
|
||||
|
||||
if (pri_adapter->bFWReady == _TRUE)
|
||||
if (pri_adapter->bFWReady == true)
|
||||
return padapter->hal_func.fill_h2c_cmd(padapter, ElementID, CmdLen, pCmdBuffer);
|
||||
else if (padapter->registrypriv.mp_mode == 0)
|
||||
RTW_PRINT(FUNC_ADPT_FMT" FW doesn't exit when no MP mode, by pass H2C id:0x%02x\n"
|
||||
|
@ -1011,8 +1011,8 @@ u8 rtw_hal_get_tx_power_index(PADAPTER padapter, u8 rfpath, u8 rate, u8 bandwidt
|
|||
* Initialize MAC registers
|
||||
*
|
||||
* Return:
|
||||
* _TRUE success
|
||||
* _FALSE fail
|
||||
* true success
|
||||
* false fail
|
||||
*/
|
||||
u8 rtw_hal_init_mac_register(PADAPTER adapter)
|
||||
{
|
||||
|
@ -1024,8 +1024,8 @@ u8 rtw_hal_init_mac_register(PADAPTER adapter)
|
|||
* Initialize PHY(BB/RF) related functions
|
||||
*
|
||||
* Return:
|
||||
* _TRUE success
|
||||
* _FALSE fail
|
||||
* true success
|
||||
* false fail
|
||||
*/
|
||||
u8 rtw_hal_init_phy(PADAPTER adapter)
|
||||
{
|
||||
|
@ -1042,7 +1042,7 @@ bool rtw_hal_rfkill_poll(_adapter *adapter, u8 *valid)
|
|||
ret = adapter->hal_func.hal_radio_onoff_check(adapter, valid);
|
||||
else {
|
||||
*valid = 0;
|
||||
ret = _FALSE;
|
||||
ret = false;
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
|
|
@ -178,7 +178,7 @@ static void rtw_hal_mcc_update_go_p2p_ie(PADAPTER padapter)
|
|||
}
|
||||
printk("\n");
|
||||
}
|
||||
update_beacon(padapter, _VENDOR_SPECIFIC_IE_, P2P_OUI, _TRUE);
|
||||
update_beacon(padapter, _VENDOR_SPECIFIC_IE_, P2P_OUI, true);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -195,19 +195,19 @@ static void rtw_hal_mcc_remove_go_p2p_ie(PADAPTER padapter)
|
|||
return;
|
||||
|
||||
pmccadapriv->p2p_go_noa_ie_len = 0;
|
||||
update_beacon(padapter, _VENDOR_SPECIFIC_IE_, P2P_OUI, _TRUE);
|
||||
update_beacon(padapter, _VENDOR_SPECIFIC_IE_, P2P_OUI, true);
|
||||
}
|
||||
|
||||
/* restore IQK value for all interface */
|
||||
void rtw_hal_mcc_restore_iqk_val(PADAPTER padapter)
|
||||
{
|
||||
u8 take_care_iqk = _FALSE;
|
||||
u8 take_care_iqk = false;
|
||||
struct dvobj_priv *dvobj = adapter_to_dvobj(padapter);
|
||||
_adapter *iface = NULL;
|
||||
u8 i = 0;
|
||||
|
||||
rtw_hal_get_hwreg(padapter, HW_VAR_CH_SW_NEED_TO_TAKE_CARE_IQK_INFO, &take_care_iqk);
|
||||
if (take_care_iqk == _TRUE && MCC_EN(padapter)) {
|
||||
if (take_care_iqk == true && MCC_EN(padapter)) {
|
||||
for (i = 0; i < dvobj->iface_nums; i++) {
|
||||
iface = dvobj->padapters[i];
|
||||
if (iface == NULL)
|
||||
|
@ -226,9 +226,9 @@ u8 rtw_hal_check_mcc_status(PADAPTER padapter, u8 mcc_status)
|
|||
struct mcc_obj_priv *pmccobjpriv = &(adapter_to_dvobj(padapter)->mcc_objpriv);
|
||||
|
||||
if (pmccobjpriv->mcc_status & (mcc_status))
|
||||
return _TRUE;
|
||||
return true;
|
||||
else
|
||||
return _FALSE;
|
||||
return false;
|
||||
}
|
||||
|
||||
void rtw_hal_set_mcc_status(PADAPTER padapter, u8 mcc_status)
|
||||
|
@ -553,9 +553,9 @@ u8 rtw_hal_dl_mcc_fw_rsvd_page(_adapter *adapter, u8 *pframe, u16 *index,
|
|||
|
||||
_rtw_memcpy(bssid, get_my_bssid(&pmlmeinfo->network), ETH_ALEN);
|
||||
rtw_hal_construct_NullFunctionData(iface
|
||||
, &pframe[*index], &len, bssid, _FALSE, 0, 0, _FALSE);
|
||||
, &pframe[*index], &len, bssid, false, 0, 0, false);
|
||||
rtw_hal_fill_fake_txdesc(iface, &pframe[*index-tx_desc],
|
||||
len, _FALSE, _FALSE, _FALSE);
|
||||
len, false, false, false);
|
||||
|
||||
CurtPktPageNum = (u8)PageNum(tx_desc + len, page_size);
|
||||
*page_num += CurtPktPageNum;
|
||||
|
@ -570,7 +570,7 @@ u8 rtw_hal_dl_mcc_fw_rsvd_page(_adapter *adapter, u8 *pframe, u16 *index,
|
|||
len = 0;
|
||||
rtw_hal_construct_CTS(iface, &pframe[*index], &len);
|
||||
rtw_hal_fill_fake_txdesc(iface, &pframe[*index-tx_desc],
|
||||
len, _FALSE, _FALSE, _FALSE);
|
||||
len, false, false, false);
|
||||
|
||||
CurtPktPageNum = (u8)PageNum(tx_desc + len, page_size);
|
||||
*page_num += CurtPktPageNum;
|
||||
|
@ -858,7 +858,7 @@ static void rtw_hal_set_mcc_ctrl_cmd(PADAPTER padapter, u8 stop)
|
|||
duration = iface->mcc_adapterpriv.mcc_duration;
|
||||
role = iface->mcc_adapterpriv.role;
|
||||
|
||||
incurch = _FALSE;
|
||||
incurch = false;
|
||||
|
||||
if (IS_HARDWARE_TYPE_8812(padapter))
|
||||
rfetype = pHalData->rfe_type; /* RFETYPE (only for 8812)*/
|
||||
|
@ -957,7 +957,7 @@ static u8 rtw_hal_set_mcc_start_setting(PADAPTER padapter, u8 status)
|
|||
rtw_hal_set_mcc_macid_cmd(padapter);
|
||||
|
||||
/* set mcc parameter */
|
||||
rtw_hal_set_mcc_ctrl_cmd(padapter, _FALSE);
|
||||
rtw_hal_set_mcc_ctrl_cmd(padapter, false);
|
||||
|
||||
exit:
|
||||
return ret;
|
||||
|
@ -982,7 +982,7 @@ static void rtw_hal_set_mcc_stop_setting(PADAPTER padapter, u8 status)
|
|||
continue;
|
||||
/* use other interface to set cmd */
|
||||
if (iface != padapter) {
|
||||
rtw_hal_set_mcc_ctrl_cmd(iface, _TRUE);
|
||||
rtw_hal_set_mcc_ctrl_cmd(iface, true);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -1058,7 +1058,7 @@ static u8 rtw_hal_set_mcc_setting(PADAPTER padapter, u8 status)
|
|||
{
|
||||
u8 ret = _FAIL;
|
||||
struct mcc_obj_priv *pmccobjpriv = &(adapter_to_dvobj(padapter)->mcc_objpriv);
|
||||
u8 stop = (status < MCC_SETCMD_STATUS_START_CONNECT) ? _TRUE : _FALSE;
|
||||
u8 stop = (status < MCC_SETCMD_STATUS_START_CONNECT) ? true : false;
|
||||
u32 start_time = rtw_get_current_time();
|
||||
|
||||
RTW_INFO("===> "FUNC_ADPT_FMT"\n", FUNC_ADPT_ARG(padapter));
|
||||
|
@ -1066,7 +1066,7 @@ static u8 rtw_hal_set_mcc_setting(PADAPTER padapter, u8 status)
|
|||
rtw_sctx_init(&pmccobjpriv->mcc_sctx, MCC_EXPIRE_TIME);
|
||||
pmccobjpriv->mcc_c2h_status = MCC_RPT_MAX;
|
||||
|
||||
if (stop == _FALSE) {
|
||||
if (stop == false) {
|
||||
/* handle mcc start */
|
||||
if (rtw_hal_set_mcc_start_setting(padapter, status) == _FAIL)
|
||||
goto exit;
|
||||
|
@ -1122,8 +1122,8 @@ static void rtw_hal_mcc_check_case_not_limit_traffic(PADAPTER cur_iface, PADAPTE
|
|||
|
||||
/* for both interface are VHT80, doesn't limit_traffic according to iperf results */
|
||||
if (cur_bw == CHANNEL_WIDTH_80 && next_bw == CHANNEL_WIDTH_80) {
|
||||
cur_iface->mcc_adapterpriv.mcc_tp_limit = _FALSE;
|
||||
next_iface->mcc_adapterpriv.mcc_tp_limit = _FALSE;
|
||||
cur_iface->mcc_adapterpriv.mcc_tp_limit = false;
|
||||
next_iface->mcc_adapterpriv.mcc_tp_limit = false;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1173,20 +1173,20 @@ static void rtw_hal_mcc_sw_ch_fw_notify_hdl(PADAPTER padapter)
|
|||
/* check single TX or cuncurrnet TX */
|
||||
if (next_mccadapriv->mcc_tp < single_tx_cri) {
|
||||
/* single TX, does not stop */
|
||||
cur_mccadapriv->mcc_tx_stop = _FALSE;
|
||||
cur_mccadapriv->mcc_tp_limit = _FALSE;
|
||||
cur_mccadapriv->mcc_tx_stop = false;
|
||||
cur_mccadapriv->mcc_tp_limit = false;
|
||||
} else {
|
||||
/* concurrent TX, stop */
|
||||
cur_mccadapriv->mcc_tx_stop = _TRUE;
|
||||
cur_mccadapriv->mcc_tp_limit = _TRUE;
|
||||
cur_mccadapriv->mcc_tx_stop = true;
|
||||
cur_mccadapriv->mcc_tp_limit = true;
|
||||
}
|
||||
|
||||
if (cur_mccadapriv->mcc_tp < single_tx_cri) {
|
||||
next_mccadapriv->mcc_tx_stop = _FALSE;
|
||||
next_mccadapriv->mcc_tp_limit = _FALSE;
|
||||
next_mccadapriv->mcc_tx_stop = false;
|
||||
next_mccadapriv->mcc_tp_limit = false;
|
||||
} else {
|
||||
next_mccadapriv->mcc_tx_stop = _FALSE;
|
||||
next_mccadapriv->mcc_tp_limit = _TRUE;
|
||||
next_mccadapriv->mcc_tx_stop = false;
|
||||
next_mccadapriv->mcc_tp_limit = true;
|
||||
next_mccadapriv->mcc_tx_bytes_to_port = 0;
|
||||
}
|
||||
|
||||
|
@ -1402,7 +1402,7 @@ void rtw_hal_mcc_sw_status_check(PADAPTER padapter)
|
|||
*/
|
||||
u8 rtw_hal_mcc_change_scan_flag(PADAPTER padapter, u8 *ch, u8 *bw, u8 *offset)
|
||||
{
|
||||
u8 need_ch_setting_union = _TRUE, i = 0, flags = 0, role = 0;
|
||||
u8 need_ch_setting_union = true, i = 0, flags = 0, role = 0;
|
||||
struct dvobj_priv *dvobj = adapter_to_dvobj(padapter);
|
||||
struct mcc_adapter_priv *pmccadapriv = NULL;
|
||||
struct mlme_ext_priv *pmlmeext = NULL;
|
||||
|
@ -1427,7 +1427,7 @@ u8 rtw_hal_mcc_change_scan_flag(PADAPTER padapter, u8 *ch, u8 *bw, u8 *offset)
|
|||
*ch = pmlmeext->cur_channel;
|
||||
*bw = pmlmeext->cur_bwmode;
|
||||
*offset = pmlmeext->cur_ch_offset;
|
||||
need_ch_setting_union = _FALSE;
|
||||
need_ch_setting_union = false;
|
||||
break;
|
||||
case MCC_ROLE_STA:
|
||||
case MCC_ROLE_GC:
|
||||
|
@ -1505,15 +1505,15 @@ inline u8 rtw_hal_mcc_stop_tx_bytes_to_port(PADAPTER padapter)
|
|||
if (rtw_hal_check_mcc_status(padapter, MCC_STATUS_DOING_MCC)) {
|
||||
if (pmccadapriv->mcc_tp_limit) {
|
||||
if (pmccadapriv->mcc_tx_bytes_to_port >= pmccadapriv->mcc_target_tx_bytes_to_port) {
|
||||
pmccadapriv->mcc_tx_stop = _TRUE;
|
||||
pmccadapriv->mcc_tx_stop = true;
|
||||
rtw_netif_stop_queue(padapter->pnetdev);
|
||||
return _TRUE;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return _FALSE;
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -1577,7 +1577,7 @@ u8 rtw_hal_set_mcc_setting_start_bss_network(PADAPTER padapter, u8 chbw_allow)
|
|||
|
||||
if (MCC_EN(padapter)) {
|
||||
/* channel bw offset can not be allowed, start MCC */
|
||||
if (chbw_allow == _FALSE) {
|
||||
if (chbw_allow == false) {
|
||||
struct mcc_obj_priv *pmccobjpriv = &(adapter_to_dvobj(padapter)->mcc_objpriv);
|
||||
|
||||
rtw_hal_mcc_restore_iqk_val(padapter);
|
||||
|
@ -1626,7 +1626,7 @@ u8 rtw_hal_set_mcc_setting_join_done_chk_ch(PADAPTER padapter)
|
|||
rtw_mi_status_no_self(padapter, &mstate);
|
||||
|
||||
if (MSTATE_STA_LD_NUM(&mstate) || MSTATE_STA_LG_NUM(&mstate) || MSTATE_AP_NUM(&mstate)) {
|
||||
bool chbw_allow = _TRUE;
|
||||
bool chbw_allow = true;
|
||||
u8 u_ch, u_offset, u_bw;
|
||||
struct mlme_ext_priv *cur_mlmeext = &padapter->mlmeextpriv;
|
||||
struct dvobj_priv *dvobj = adapter_to_dvobj(padapter);
|
||||
|
@ -1648,7 +1648,7 @@ u8 rtw_hal_set_mcc_setting_join_done_chk_ch(PADAPTER padapter)
|
|||
, FUNC_ADPT_ARG(padapter), chbw_allow);
|
||||
|
||||
/* if chbw_allow = false, start MCC setting */
|
||||
if (chbw_allow == _FALSE) {
|
||||
if (chbw_allow == false) {
|
||||
struct mcc_obj_priv *pmccobjpriv = &dvobj->mcc_objpriv;
|
||||
|
||||
rtw_hal_mcc_restore_iqk_val(padapter);
|
||||
|
@ -1674,10 +1674,10 @@ u8 rtw_hal_set_mcc_setting_chk_start_clnt_join(PADAPTER padapter, u8 *ch, u8 *bw
|
|||
{
|
||||
u8 ret = _FAIL;
|
||||
|
||||
/* if chbw_allow = false under en_mcc = TRUE, we do not change channel related setting */
|
||||
/* if chbw_allow = false under en_mcc = true, we do not change channel related setting */
|
||||
if (MCC_EN(padapter)) {
|
||||
/* restore union channel related setting to current channel related setting */
|
||||
if (chbw_allow == _FALSE) {
|
||||
if (chbw_allow == false) {
|
||||
struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
|
||||
|
||||
*ch = pmlmeext->cur_channel;
|
||||
|
@ -1782,7 +1782,7 @@ inline void update_mcc_mgntframe_attrib(_adapter *padapter, struct pkt_attrib *p
|
|||
|
||||
inline u8 rtw_hal_mcc_link_status_chk(_adapter *padapter, const char *msg)
|
||||
{
|
||||
u8 ret = _TRUE, i = 0;
|
||||
u8 ret = true, i = 0;
|
||||
struct dvobj_priv *dvobj = adapter_to_dvobj(padapter);
|
||||
_adapter *iface;
|
||||
struct mlme_ext_priv *mlmeext;
|
||||
|
@ -1796,7 +1796,7 @@ inline u8 rtw_hal_mcc_link_status_chk(_adapter *padapter, const char *msg)
|
|||
#ifdef DBG_EXPIRATION_CHK
|
||||
RTW_INFO(FUNC_ADPT_FMT" don't enter %s under scan for MCC mode\n", FUNC_ADPT_ARG(padapter), msg);
|
||||
#endif
|
||||
ret = _FALSE;
|
||||
ret = false;
|
||||
goto exit;
|
||||
}
|
||||
}
|
||||
|
@ -1820,7 +1820,7 @@ void rtw_hal_mcc_issue_null_data(_adapter *padapter, u8 chbw_allow, u8 ps_mode)
|
|||
if (rtw_hal_check_mcc_status(padapter, MCC_STATUS_DOING_MCC))
|
||||
return;
|
||||
|
||||
if (chbw_allow == _TRUE)
|
||||
if (chbw_allow == true)
|
||||
return;
|
||||
|
||||
for (i = 0; i < dvobj->iface_nums; i++) {
|
||||
|
|
36
hal/hal_mp.c
36
hal/hal_mp.c
|
@ -74,13 +74,13 @@ s32 hal_mpt_SetPowerTracking(PADAPTER padapter, u8 enable)
|
|||
return _FAIL;
|
||||
}
|
||||
|
||||
if (check_fwstate(&padapter->mlmepriv, WIFI_MP_STATE) == _FALSE) {
|
||||
if (check_fwstate(&padapter->mlmepriv, WIFI_MP_STATE) == false) {
|
||||
return _FAIL;
|
||||
}
|
||||
if (enable)
|
||||
pDM_Odm->rf_calibrate_info.txpowertrack_control = _TRUE;
|
||||
pDM_Odm->rf_calibrate_info.txpowertrack_control = true;
|
||||
else
|
||||
pDM_Odm->rf_calibrate_info.txpowertrack_control = _FALSE;
|
||||
pDM_Odm->rf_calibrate_info.txpowertrack_control = false;
|
||||
|
||||
return _SUCCESS;
|
||||
}
|
||||
|
@ -109,9 +109,9 @@ void hal_mpt_CCKTxPowerAdjust(PADAPTER Adapter, bool bInCH14)
|
|||
DataRate = mpt_to_mgnt_rate(ulRateIdx);
|
||||
|
||||
if (u1Channel == 14 && IS_CCK_RATE(DataRate))
|
||||
pHalData->bCCKinCH14 = TRUE;
|
||||
pHalData->bCCKinCH14 = true;
|
||||
else
|
||||
pHalData->bCCKinCH14 = FALSE;
|
||||
pHalData->bCCKinCH14 = false;
|
||||
|
||||
/* get current cck swing value and check 0xa22 & 0xa23 later to match the table.*/
|
||||
CurrCCKSwingVal = read_bbreg(Adapter, rCCK0_TxFilter1, bMaskHWord);
|
||||
|
@ -185,8 +185,8 @@ void hal_mpt_SetChannel(PADAPTER pAdapter)
|
|||
|
||||
hal_mpt_SwitchRfSetting(pAdapter);
|
||||
|
||||
pHalData->bSwChnl = _TRUE;
|
||||
pHalData->bSetChnlBW = _TRUE;
|
||||
pHalData->bSwChnl = true;
|
||||
pHalData->bSetChnlBW = true;
|
||||
rtw_hal_set_chnl_bw(pAdapter, channel, bandwidth, 0, 0);
|
||||
|
||||
hal_mpt_CCKTxPowerAdjust(pAdapter, pHalData->bCCKinCH14);
|
||||
|
@ -205,8 +205,8 @@ void hal_mpt_SetBandwidth(PADAPTER pAdapter)
|
|||
u8 channel = pmp->channel;
|
||||
u8 bandwidth = pmp->bandwidth;
|
||||
|
||||
pHalData->bSwChnl = _TRUE;
|
||||
pHalData->bSetChnlBW = _TRUE;
|
||||
pHalData->bSwChnl = true;
|
||||
pHalData->bSetChnlBW = true;
|
||||
rtw_hal_set_chnl_bw(pAdapter, channel, bandwidth, 0, 0);
|
||||
|
||||
hal_mpt_SwitchRfSetting(pAdapter);
|
||||
|
@ -568,7 +568,7 @@ s32 hal_mpt_SetThermalMeter(PADAPTER pAdapter, u8 target_ther)
|
|||
}
|
||||
|
||||
|
||||
if (check_fwstate(&pAdapter->mlmepriv, WIFI_MP_STATE) == _FALSE) {
|
||||
if (check_fwstate(&pAdapter->mlmepriv, WIFI_MP_STATE) == false) {
|
||||
return _FAIL;
|
||||
}
|
||||
|
||||
|
@ -765,8 +765,8 @@ static void mpt_StopCckContTx(
|
|||
PMPT_CONTEXT pMptCtx = &(pAdapter->mppriv.mpt_ctx);
|
||||
u8 u1bReg;
|
||||
|
||||
pMptCtx->bCckContTx = FALSE;
|
||||
pMptCtx->bOfdmContTx = FALSE;
|
||||
pMptCtx->bCckContTx = false;
|
||||
pMptCtx->bOfdmContTx = false;
|
||||
|
||||
phy_set_bb_reg(pAdapter, rCCK0_System, bCCKBBMode, 0x0); /*normal mode*/
|
||||
phy_set_bb_reg(pAdapter, rCCK0_System, bCCKScramble, 0x1); /*turn on scramble setting*/
|
||||
|
@ -790,8 +790,8 @@ static void mpt_StopOfdmContTx(
|
|||
u8 u1bReg;
|
||||
u32 data;
|
||||
|
||||
pMptCtx->bCckContTx = FALSE;
|
||||
pMptCtx->bOfdmContTx = FALSE;
|
||||
pMptCtx->bCckContTx = false;
|
||||
pMptCtx->bOfdmContTx = false;
|
||||
|
||||
phy_set_bb_reg(pAdapter, rOFDM1_LSTF, BIT30 | BIT29 | BIT28, OFDM_ALL_OFF);
|
||||
|
||||
|
@ -837,8 +837,8 @@ static void mpt_StartCckContTx(
|
|||
phy_set_bb_reg(pAdapter, rFPGA0_XA_HSSIParameter1, bMaskDWord, 0x01000500);
|
||||
phy_set_bb_reg(pAdapter, rFPGA0_XB_HSSIParameter1, bMaskDWord, 0x01000500);
|
||||
|
||||
pMptCtx->bCckContTx = TRUE;
|
||||
pMptCtx->bOfdmContTx = FALSE;
|
||||
pMptCtx->bCckContTx = true;
|
||||
pMptCtx->bOfdmContTx = false;
|
||||
|
||||
} /* mpt_StartCckContTx */
|
||||
|
||||
|
@ -869,8 +869,8 @@ static void mpt_StartOfdmContTx(
|
|||
phy_set_bb_reg(pAdapter, rFPGA0_XA_HSSIParameter1, bMaskDWord, 0x01000500);
|
||||
phy_set_bb_reg(pAdapter, rFPGA0_XB_HSSIParameter1, bMaskDWord, 0x01000500);
|
||||
|
||||
pMptCtx->bCckContTx = FALSE;
|
||||
pMptCtx->bOfdmContTx = TRUE;
|
||||
pMptCtx->bCckContTx = false;
|
||||
pMptCtx->bOfdmContTx = true;
|
||||
} /* mpt_StartOfdmContTx */
|
||||
|
||||
void hal_mpt_SetContinuousTx(PADAPTER pAdapter, u8 bStart)
|
||||
|
|
|
@ -101,7 +101,7 @@ PHY_RFShadowWrite(
|
|||
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 */
|
||||
|
||||
|
@ -114,16 +114,16 @@ 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 = rtw_hal_read_rfreg(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;
|
||||
}
|
||||
return RF_Shadow[eRFPath][Offset].ErrorOrNot ;
|
||||
}
|
||||
return _FALSE;
|
||||
return false;
|
||||
} /* PHY_RFShadowCompare */
|
||||
|
||||
|
||||
|
@ -134,9 +134,9 @@ PHY_RFShadowRecorver(
|
|||
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) {
|
||||
rtw_hal_write_rfreg(Adapter, eRFPath, Offset, bRFRegOffsetMask,
|
||||
RF_Shadow[eRFPath][Offset].Value);
|
||||
}
|
||||
|
@ -212,9 +212,9 @@ PHY_RFShadowCompareFlagSetAll(
|
|||
for (Offset = 0; Offset < maxReg; Offset++) {
|
||||
/* 2008/11/20 MH For S3S4 test, we only check reg 26/27 now!!!! */
|
||||
if (Offset != 0x26 && Offset != 0x27)
|
||||
PHY_RFShadowCompareFlagSet(Adapter, eRFPath, Offset, _FALSE);
|
||||
PHY_RFShadowCompareFlagSet(Adapter, eRFPath, Offset, false);
|
||||
else
|
||||
PHY_RFShadowCompareFlagSet(Adapter, eRFPath, Offset, _TRUE);
|
||||
PHY_RFShadowCompareFlagSet(Adapter, eRFPath, Offset, true);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -232,9 +232,9 @@ PHY_RFShadowRecorverFlagSetAll(
|
|||
for (Offset = 0; Offset < maxReg; Offset++) {
|
||||
/* 2008/11/20 MH For S3S4 test, we only check reg 26/27 now!!!! */
|
||||
if (Offset != 0x26 && Offset != 0x27)
|
||||
PHY_RFShadowRecorverFlagSet(Adapter, eRFPath, Offset, _FALSE);
|
||||
PHY_RFShadowRecorverFlagSet(Adapter, eRFPath, Offset, false);
|
||||
else
|
||||
PHY_RFShadowRecorverFlagSet(Adapter, eRFPath, Offset, _TRUE);
|
||||
PHY_RFShadowRecorverFlagSet(Adapter, eRFPath, Offset, true);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -250,10 +250,10 @@ PHY_RFShadowRefresh(
|
|||
for (eRFPath = 0; eRFPath < RF6052_MAX_PATH; eRFPath++) {
|
||||
for (Offset = 0; Offset < maxReg; 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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -481,7 +481,7 @@ phydm_get_structure(
|
|||
void *p_struct = NULL;
|
||||
|
||||
switch (structure_type) {
|
||||
case PHYDM_FALSEALMCNT:
|
||||
case PHYDMfalseALMCNT:
|
||||
p_struct = &(p_dm_odm->false_alm_cnt);
|
||||
break;
|
||||
case PHYDM_CFOTRACK:
|
||||
|
@ -1371,7 +1371,7 @@ phydm_cmn_info_query(
|
|||
enum phydm_info_query_e info_type
|
||||
)
|
||||
{
|
||||
struct _FALSE_ALARM_STATISTICS *false_alm_cnt = (struct _FALSE_ALARM_STATISTICS *)phydm_get_structure(p_dm_odm, PHYDM_FALSEALMCNT);
|
||||
struct false_ALARM_STATISTICS *false_alm_cnt = (struct false_ALARM_STATISTICS *)phydm_get_structure(p_dm_odm, PHYDMfalseALMCNT);
|
||||
|
||||
switch (info_type) {
|
||||
case PHYDM_INFO_FA_OFDM:
|
||||
|
@ -1658,7 +1658,7 @@ odm_update_power_training_state(
|
|||
struct PHY_DM_STRUCT *p_dm_odm
|
||||
)
|
||||
{
|
||||
struct _FALSE_ALARM_STATISTICS *false_alm_cnt = (struct _FALSE_ALARM_STATISTICS *)phydm_get_structure(p_dm_odm, PHYDM_FALSEALMCNT);
|
||||
struct false_ALARM_STATISTICS *false_alm_cnt = (struct false_ALARM_STATISTICS *)phydm_get_structure(p_dm_odm, PHYDMfalseALMCNT);
|
||||
struct _dynamic_initial_gain_threshold_ *p_dm_dig_table = &p_dm_odm->dm_dig_table;
|
||||
u32 score = 0;
|
||||
|
||||
|
|
|
@ -703,8 +703,8 @@ struct PHY_DM_STRUCT {
|
|||
#endif
|
||||
struct _dynamic_primary_cca dm_pri_cca;
|
||||
struct _rate_adaptive_table_ dm_ra_table;
|
||||
struct _FALSE_ALARM_STATISTICS false_alm_cnt;
|
||||
struct _FALSE_ALARM_STATISTICS flase_alm_cnt_buddy_adapter;
|
||||
struct false_ALARM_STATISTICS false_alm_cnt;
|
||||
struct false_ALARM_STATISTICS flase_alm_cnt_buddy_adapter;
|
||||
struct _sw_antenna_switch_ dm_swat_table;
|
||||
struct _CFO_TRACKING_ dm_cfo_track;
|
||||
struct _ACS_ dm_acs;
|
||||
|
@ -793,7 +793,7 @@ struct PHY_DM_STRUCT {
|
|||
};
|
||||
|
||||
enum phydm_structure_type {
|
||||
PHYDM_FALSEALMCNT,
|
||||
PHYDMfalseALMCNT,
|
||||
PHYDM_CFOTRACK,
|
||||
PHYDM_ADAPTIVITY,
|
||||
PHYDM_ROMINFO,
|
||||
|
|
|
@ -1335,7 +1335,7 @@ void odm_sw_antdiv_callback(istruct timer_list *t)
|
|||
struct PHY_DM_STRUCT *p_dm_odm = timer_list(p_dm_odm, t, dm_swat_table.phydm_sw_antenna_switch_timer);
|
||||
#endif
|
||||
struct _ADAPTER *padapter = p_dm_odm->adapter;
|
||||
if (padapter->net_closed == _TRUE)
|
||||
if (padapter->net_closed == true)
|
||||
return;
|
||||
|
||||
rtw_run_in_thread_cmd(padapter, odm_sw_antdiv_workitem_callback, padapter);
|
||||
|
@ -1650,7 +1650,7 @@ void odm_fast_ant_training_callback(struct timer_list *t)
|
|||
#endif
|
||||
struct _ADAPTER *padapter = p_dm_odm->adapter;
|
||||
|
||||
if (padapter->net_closed == _TRUE)
|
||||
if (padapter->net_closed == true)
|
||||
return;
|
||||
/* if(*p_dm_odm->p_is_net_closed == true) */
|
||||
/* return; */
|
||||
|
|
|
@ -875,7 +875,7 @@ phydm_basic_dbg_message
|
|||
)
|
||||
{
|
||||
struct PHY_DM_STRUCT *p_dm_odm = (struct PHY_DM_STRUCT *)p_dm_void;
|
||||
struct _FALSE_ALARM_STATISTICS *false_alm_cnt = (struct _FALSE_ALARM_STATISTICS *)phydm_get_structure(p_dm_odm, PHYDM_FALSEALMCNT);
|
||||
struct false_ALARM_STATISTICS *false_alm_cnt = (struct false_ALARM_STATISTICS *)phydm_get_structure(p_dm_odm, PHYDMfalseALMCNT);
|
||||
struct _CFO_TRACKING_ *p_cfo_track = (struct _CFO_TRACKING_ *)phydm_get_structure(p_dm_odm, PHYDM_CFOTRACK);
|
||||
struct _dynamic_initial_gain_threshold_ *p_dm_dig_table = &p_dm_odm->dm_dig_table;
|
||||
struct _rate_adaptive_table_ *p_ra_table = &p_dm_odm->dm_ra_table;
|
||||
|
|
|
@ -114,7 +114,7 @@ odm_forbidden_igi_check(
|
|||
{
|
||||
struct PHY_DM_STRUCT *p_dm_odm = (struct PHY_DM_STRUCT *)p_dm_void;
|
||||
struct _dynamic_initial_gain_threshold_ *p_dm_dig_table = &p_dm_odm->dm_dig_table;
|
||||
struct _FALSE_ALARM_STATISTICS *p_false_alm_cnt = (struct _FALSE_ALARM_STATISTICS *)phydm_get_structure(p_dm_odm, PHYDM_FALSEALMCNT);
|
||||
struct false_ALARM_STATISTICS *p_false_alm_cnt = (struct false_ALARM_STATISTICS *)phydm_get_structure(p_dm_odm, PHYDMfalseALMCNT);
|
||||
u8 rx_gain_range_min = p_dm_dig_table->rx_gain_range_min;
|
||||
|
||||
if (p_dm_dig_table->large_fa_timeout) {
|
||||
|
@ -502,8 +502,8 @@ odm_dig_init(
|
|||
p_dm_dig_table->pre_ig_value = 0;
|
||||
p_dm_dig_table->rssi_low_thresh = DM_DIG_THRESH_LOW;
|
||||
p_dm_dig_table->rssi_high_thresh = DM_DIG_THRESH_HIGH;
|
||||
p_dm_dig_table->fa_low_thresh = DM_FALSEALARM_THRESH_LOW;
|
||||
p_dm_dig_table->fa_high_thresh = DM_FALSEALARM_THRESH_HIGH;
|
||||
p_dm_dig_table->fa_low_thresh = DMfalseALARM_THRESH_LOW;
|
||||
p_dm_dig_table->fa_high_thresh = DMfalseALARM_THRESH_HIGH;
|
||||
p_dm_dig_table->backoff_val = DM_DIG_BACKOFF_DEFAULT;
|
||||
p_dm_dig_table->backoff_val_range_max = DM_DIG_BACKOFF_MAX;
|
||||
p_dm_dig_table->backoff_val_range_min = DM_DIG_BACKOFF_MIN;
|
||||
|
@ -549,7 +549,7 @@ odm_DIG(
|
|||
|
||||
/* Common parameters */
|
||||
struct _dynamic_initial_gain_threshold_ *p_dm_dig_table = &p_dm_odm->dm_dig_table;
|
||||
struct _FALSE_ALARM_STATISTICS *p_false_alm_cnt = (struct _FALSE_ALARM_STATISTICS *)phydm_get_structure(p_dm_odm, PHYDM_FALSEALMCNT);
|
||||
struct false_ALARM_STATISTICS *p_false_alm_cnt = (struct false_ALARM_STATISTICS *)phydm_get_structure(p_dm_odm, PHYDMfalseALMCNT);
|
||||
bool first_connect, first_dis_connect;
|
||||
u8 dig_max_of_min, dig_dynamic_min;
|
||||
u8 dm_dig_max, dm_dig_min;
|
||||
|
@ -813,7 +813,7 @@ odm_dig_by_rssi_lps(
|
|||
)
|
||||
{
|
||||
struct PHY_DM_STRUCT *p_dm_odm = (struct PHY_DM_STRUCT *)p_dm_void;
|
||||
struct _FALSE_ALARM_STATISTICS *p_false_alm_cnt = (struct _FALSE_ALARM_STATISTICS *)phydm_get_structure(p_dm_odm, PHYDM_FALSEALMCNT);
|
||||
struct false_ALARM_STATISTICS *p_false_alm_cnt = (struct false_ALARM_STATISTICS *)phydm_get_structure(p_dm_odm, PHYDMfalseALMCNT);
|
||||
|
||||
u8 rssi_lower = DM_DIG_MIN_NIC; /* 0x1E or 0x1C */
|
||||
u8 current_igi = p_dm_odm->rssi_min;
|
||||
|
@ -866,7 +866,7 @@ odm_false_alarm_counter_statistics(
|
|||
)
|
||||
{
|
||||
struct PHY_DM_STRUCT *p_dm_odm = (struct PHY_DM_STRUCT *)p_dm_void;
|
||||
struct _FALSE_ALARM_STATISTICS *false_alm_cnt = (struct _FALSE_ALARM_STATISTICS *)phydm_get_structure(p_dm_odm, PHYDM_FALSEALMCNT);
|
||||
struct false_ALARM_STATISTICS *false_alm_cnt = (struct false_ALARM_STATISTICS *)phydm_get_structure(p_dm_odm, PHYDMfalseALMCNT);
|
||||
#if (PHYDM_LA_MODE_SUPPORT == 1)
|
||||
struct _RT_ADCSMP *adc_smp = &(p_dm_odm->adcsmp);
|
||||
#endif
|
||||
|
@ -1235,7 +1235,7 @@ odm_cck_packet_detection_thresh(
|
|||
{
|
||||
struct PHY_DM_STRUCT *p_dm_odm = (struct PHY_DM_STRUCT *)p_dm_void;
|
||||
struct _dynamic_initial_gain_threshold_ *p_dm_dig_table = &p_dm_odm->dm_dig_table;
|
||||
struct _FALSE_ALARM_STATISTICS *false_alm_cnt = (struct _FALSE_ALARM_STATISTICS *)phydm_get_structure(p_dm_odm, PHYDM_FALSEALMCNT);
|
||||
struct false_ALARM_STATISTICS *false_alm_cnt = (struct false_ALARM_STATISTICS *)phydm_get_structure(p_dm_odm, PHYDMfalseALMCNT);
|
||||
u8 cur_cck_cca_thres = p_dm_dig_table->cur_cck_cca_thres, RSSI_thd = 35;
|
||||
|
||||
if ((!(p_dm_odm->support_ability & ODM_BB_CCK_PD)) || (!(p_dm_odm->support_ability & ODM_BB_FA_CNT))) {
|
||||
|
|
|
@ -95,7 +95,7 @@ struct _dynamic_initial_gain_threshold_ {
|
|||
enum dig_goupcheck_level dig_go_up_check_level;
|
||||
};
|
||||
|
||||
struct _FALSE_ALARM_STATISTICS {
|
||||
struct false_ALARM_STATISTICS {
|
||||
u32 cnt_parity_fail;
|
||||
u32 cnt_rate_illegal;
|
||||
u32 cnt_crc8_fail;
|
||||
|
@ -196,8 +196,8 @@ enum phydm_pause_level {
|
|||
#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 0x3e
|
||||
#define DM_DIG_MIN_NIC 0x20
|
||||
|
|
|
@ -50,7 +50,7 @@ phydm_drp_get_statistic(
|
|||
{
|
||||
struct PHY_DM_STRUCT *p_dm_odm = (struct PHY_DM_STRUCT *)p_dm_void;
|
||||
struct _DYNAMIC_RX_PATH_ *p_dm_drp_table = &(p_dm_odm->dm_drp_table);
|
||||
struct _FALSE_ALARM_STATISTICS *false_alm_cnt = (struct _FALSE_ALARM_STATISTICS *)phydm_get_structure(p_dm_odm, PHYDM_FALSEALMCNT);
|
||||
struct false_ALARM_STATISTICS *false_alm_cnt = (struct false_ALARM_STATISTICS *)phydm_get_structure(p_dm_odm, PHYDMfalseALMCNT);
|
||||
|
||||
odm_false_alarm_counter_statistics(p_dm_odm);
|
||||
|
||||
|
@ -72,7 +72,7 @@ phydm_dynamic_rx_path(
|
|||
u8 curr_drp_state;
|
||||
u32 rx_ok_cal;
|
||||
u32 RSSI = 0;
|
||||
struct _FALSE_ALARM_STATISTICS *false_alm_cnt = (struct _FALSE_ALARM_STATISTICS *)phydm_get_structure(p_dm_odm, PHYDM_FALSEALMCNT);
|
||||
struct false_ALARM_STATISTICS *false_alm_cnt = (struct false_ALARM_STATISTICS *)phydm_get_structure(p_dm_odm, PHYDMfalseALMCNT);
|
||||
|
||||
if (!(p_dm_odm->support_ability & ODM_BB_DYNAMIC_RX_PATH)) {
|
||||
ODM_RT_TRACE(p_dm_odm, ODM_COMP_DYNAMIC_RX_PATH, ODM_DBG_LOUD, ("[Return Init] Not Support Dynamic RX PAth\n"));
|
||||
|
@ -170,7 +170,7 @@ phydm_dynamic_rx_path_callback(
|
|||
struct PHY_DM_STRUCT *p_dm_odm = (struct PHY_DM_STRUCT *)function_context;
|
||||
struct _ADAPTER *padapter = p_dm_odm->adapter;
|
||||
|
||||
if (padapter->net_closed == _TRUE)
|
||||
if (padapter->net_closed == true)
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -91,8 +91,8 @@ odm_edca_turbo_check_ce(
|
|||
u32 edca_param;
|
||||
u64 cur_tx_bytes = 0;
|
||||
u64 cur_rx_bytes = 0;
|
||||
u8 bbtchange = _TRUE;
|
||||
u8 is_bias_on_rx = _FALSE;
|
||||
u8 bbtchange = true;
|
||||
u8 is_bias_on_rx = false;
|
||||
HAL_DATA_TYPE *p_hal_data = GET_HAL_DATA(adapter);
|
||||
struct dvobj_priv *pdvobjpriv = adapter_to_dvobj(adapter);
|
||||
struct xmit_priv *pxmitpriv = &(adapter->xmitpriv);
|
||||
|
@ -101,13 +101,13 @@ odm_edca_turbo_check_ce(
|
|||
struct mlme_ext_priv *pmlmeext = &(adapter->mlmeextpriv);
|
||||
struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
|
||||
|
||||
if (p_dm_odm->is_linked != _TRUE) {
|
||||
precvpriv->is_any_non_be_pkts = _FALSE;
|
||||
if (p_dm_odm->is_linked != true) {
|
||||
precvpriv->is_any_non_be_pkts = false;
|
||||
return;
|
||||
}
|
||||
|
||||
if ((pregpriv->wifi_spec == 1)) { /* || (pmlmeinfo->HT_enable == 0)) */
|
||||
precvpriv->is_any_non_be_pkts = _FALSE;
|
||||
precvpriv->is_any_non_be_pkts = false;
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -117,13 +117,13 @@ odm_edca_turbo_check_ce(
|
|||
iot_peer = pmlmeinfo->assoc_AP_vendor;
|
||||
|
||||
if (iot_peer >= HT_IOT_PEER_MAX) {
|
||||
precvpriv->is_any_non_be_pkts = _FALSE;
|
||||
precvpriv->is_any_non_be_pkts = false;
|
||||
return;
|
||||
}
|
||||
|
||||
if (p_dm_odm->support_ic_type & ODM_RTL8188E) {
|
||||
if ((iot_peer == HT_IOT_PEER_RALINK) || (iot_peer == HT_IOT_PEER_ATHEROS))
|
||||
is_bias_on_rx = _TRUE;
|
||||
is_bias_on_rx = true;
|
||||
}
|
||||
|
||||
/* Check if the status needs to be changed. */
|
||||
|
@ -192,7 +192,7 @@ odm_edca_turbo_check_ce(
|
|||
p_dm_odm->dm_edca_table.prv_traffic_idx = traffic_index;
|
||||
}
|
||||
|
||||
p_dm_odm->dm_edca_table.is_current_turbo_edca = _TRUE;
|
||||
p_dm_odm->dm_edca_table.is_current_turbo_edca = true;
|
||||
} else {
|
||||
/* */
|
||||
/* Turn Off EDCA turbo here. */
|
||||
|
@ -200,7 +200,7 @@ odm_edca_turbo_check_ce(
|
|||
/* */
|
||||
if (p_dm_odm->dm_edca_table.is_current_turbo_edca) {
|
||||
rtw_write32(adapter, REG_EDCA_BE_PARAM, p_hal_data->ac_param_be);
|
||||
p_dm_odm->dm_edca_table.is_current_turbo_edca = _FALSE;
|
||||
p_dm_odm->dm_edca_table.is_current_turbo_edca = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -534,17 +534,17 @@ odm_txpowertracking_thermal_meter_init(
|
|||
struct _ADAPTER *adapter = p_dm_odm->adapter;
|
||||
HAL_DATA_TYPE *p_hal_data = GET_HAL_DATA(adapter);
|
||||
|
||||
p_rf_calibrate_info->is_txpowertracking = _TRUE;
|
||||
p_rf_calibrate_info->is_txpowertracking = true;
|
||||
p_rf_calibrate_info->tx_powercount = 0;
|
||||
p_rf_calibrate_info->is_txpowertracking_init = _FALSE;
|
||||
p_rf_calibrate_info->is_txpowertracking_init = false;
|
||||
|
||||
if (p_dm_odm->mp_mode == false)
|
||||
p_rf_calibrate_info->txpowertrack_control = _TRUE;
|
||||
p_rf_calibrate_info->txpowertrack_control = true;
|
||||
else
|
||||
p_rf_calibrate_info->txpowertrack_control = _FALSE;
|
||||
p_rf_calibrate_info->txpowertrack_control = false;
|
||||
|
||||
if (p_dm_odm->mp_mode == false)
|
||||
p_rf_calibrate_info->txpowertrack_control = _TRUE;
|
||||
p_rf_calibrate_info->txpowertrack_control = true;
|
||||
|
||||
ODM_RT_TRACE(p_dm_odm, ODM_COMP_CALIBRATION, ODM_DBG_LOUD, ("p_dm_odm txpowertrack_control = %d\n", p_rf_calibrate_info->txpowertrack_control));
|
||||
|
||||
|
|
|
@ -811,7 +811,7 @@ static s8 phydm_rssi_report(struct PHY_DM_STRUCT *p_dm_odm, u8 mac_id)
|
|||
HAL_DATA_TYPE *p_hal_data = GET_HAL_DATA(adapter);
|
||||
u8 h2c_parameter[H2C_0X42_LENGTH] = {0};
|
||||
u8 UL_DL_STATE = 0, STBC_TX = 0, tx_bf_en = 0;
|
||||
u8 cmdlen = H2C_0X42_LENGTH, first_connect = _FALSE;
|
||||
u8 cmdlen = H2C_0X42_LENGTH, first_connect = false;
|
||||
u64 cur_tx_ok_cnt = 0, cur_rx_ok_cnt = 0;
|
||||
struct sta_info *p_entry = p_dm_odm->p_odm_sta_info[mac_id];
|
||||
|
||||
|
@ -872,11 +872,11 @@ static s8 phydm_rssi_report(struct PHY_DM_STRUCT *p_dm_odm, u8 mac_id)
|
|||
if (p_dm_odm->noisy_decision)
|
||||
h2c_parameter[3] |= RAINFO_NOISY_STATE;
|
||||
|
||||
if ((p_entry->ra_rpt_linked == _FALSE) && (p_entry->rssi_stat.is_send_rssi == RA_RSSI_STATE_SEND)) {
|
||||
if ((p_entry->ra_rpt_linked == false) && (p_entry->rssi_stat.is_send_rssi == RA_RSSI_STATE_SEND)) {
|
||||
h2c_parameter[3] |= RAINFO_INIT_RSSI_RATE_STATE;
|
||||
p_entry->ra_rpt_linked = _TRUE;
|
||||
p_entry->ra_rpt_linked = true;
|
||||
p_entry->rssi_stat.is_send_rssi = RA_RSSI_STATE_HOLD;
|
||||
first_connect = _TRUE;
|
||||
first_connect = true;
|
||||
}
|
||||
|
||||
h2c_parameter[4] = (p_ra_table->RA_threshold_offset & 0x7f) | (p_ra_table->RA_offset_direction << 7);
|
||||
|
@ -891,7 +891,7 @@ static s8 phydm_rssi_report(struct PHY_DM_STRUCT *p_dm_odm, u8 mac_id)
|
|||
(p_dm_odm->noisy_decision) ? "True" : "False", (first_connect) ? "True" : "False"));
|
||||
}
|
||||
|
||||
if (p_hal_data->fw_ractrl == _TRUE) {
|
||||
if (p_hal_data->fw_ractrl == true) {
|
||||
if (p_dm_odm->support_ic_type == ODM_RTL8188E)
|
||||
cmdlen = 3;
|
||||
odm_fill_h2c_cmd(p_dm_odm, ODM_H2C_RSSI_REPORT, cmdlen, h2c_parameter);
|
||||
|
@ -916,7 +916,7 @@ static void phydm_ra_rssi_rpt_wk_hdl(void *p_context)
|
|||
if (IS_STA_VALID(p_entry)) {
|
||||
if (IS_MCAST(p_entry->hwaddr)) /*if(psta->mac_id ==1)*/
|
||||
continue;
|
||||
if (p_entry->ra_rpt_linked == _FALSE) {
|
||||
if (p_entry->ra_rpt_linked == false) {
|
||||
mac_id = i;
|
||||
break;
|
||||
}
|
||||
|
@ -945,7 +945,7 @@ odm_rssi_monitor_check_ce(
|
|||
int tmp_entry_max_pwdb = 0, tmp_entry_min_pwdb = 0xff;
|
||||
u8 sta_cnt = 0;
|
||||
|
||||
if (p_dm_odm->is_linked != _TRUE)
|
||||
if (p_dm_odm->is_linked != true)
|
||||
return;
|
||||
|
||||
for (i = 0; i < ODM_ASSOCIATE_ENTRY_NUM; i++) {
|
||||
|
@ -1030,9 +1030,9 @@ odm_rate_adaptive_mask_init(
|
|||
|
||||
p_odm_ra->type = dm_type_by_driver;
|
||||
if (p_odm_ra->type == dm_type_by_driver)
|
||||
p_dm_odm->is_use_ra_mask = _TRUE;
|
||||
p_dm_odm->is_use_ra_mask = true;
|
||||
else
|
||||
p_dm_odm->is_use_ra_mask = _FALSE;
|
||||
p_dm_odm->is_use_ra_mask = false;
|
||||
|
||||
p_odm_ra->ratr_state = DM_RATR_STA_INIT;
|
||||
|
||||
|
@ -1593,7 +1593,7 @@ odm_refresh_rate_adaptive_mask_ce(
|
|||
p_entry->rssi_level, ratr_state_new, p_entry->rssi_stat.undecorated_smoothed_pwdb));
|
||||
|
||||
p_entry->rssi_level = ratr_state_new;
|
||||
rtw_hal_update_ra_mask(p_entry, p_entry->rssi_level, _FALSE);
|
||||
rtw_hal_update_ra_mask(p_entry, p_entry->rssi_level, false);
|
||||
} else {
|
||||
ODM_RT_TRACE(p_dm_odm, ODM_COMP_RA_MASK, ODM_DBG_LOUD, ("Stay in RA level = (( %d ))\n\n", ratr_state_new));
|
||||
/**/
|
||||
|
@ -1602,10 +1602,10 @@ odm_refresh_rate_adaptive_mask_ce(
|
|||
if (true == odm_ra_state_check(p_dm_odm, p_entry->rssi_stat.undecorated_smoothed_pwdb, false, &p_entry->rssi_level)) {
|
||||
ODM_RT_TRACE(p_dm_odm, ODM_COMP_RA_MASK, ODM_DBG_LOUD, ("RSSI:%d, RSSI_LEVEL:%d\n", p_entry->rssi_stat.undecorated_smoothed_pwdb, p_entry->rssi_level));
|
||||
/* printk("RSSI:%d, RSSI_LEVEL:%d\n", pstat->rssi_stat.undecorated_smoothed_pwdb, pstat->rssi_level); */
|
||||
rtw_hal_update_ra_mask(p_entry, p_entry->rssi_level, _FALSE);
|
||||
rtw_hal_update_ra_mask(p_entry, p_entry->rssi_level, false);
|
||||
} else if (p_dm_odm->is_change_state) {
|
||||
ODM_RT_TRACE(p_dm_odm, ODM_COMP_RA_MASK, ODM_DBG_LOUD, ("Change Power Training state, is_disable_power_training = %d\n", p_dm_odm->is_disable_power_training));
|
||||
rtw_hal_update_ra_mask(p_entry, p_entry->rssi_level, _FALSE);
|
||||
rtw_hal_update_ra_mask(p_entry, p_entry->rssi_level, false);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
@ -1884,7 +1884,7 @@ find_minimum_rssi(
|
|||
|
||||
/*Determine the minimum RSSI*/
|
||||
|
||||
if ((p_dm_odm->is_linked != _TRUE) &&
|
||||
if ((p_dm_odm->is_linked != true) &&
|
||||
(p_hal_data->entry_min_undecorated_smoothed_pwdb == 0)) {
|
||||
p_hal_data->min_undecorated_pwdb_for_dm = 0;
|
||||
/*ODM_RT_TRACE(p_dm_odm,COMP_BB_POWERSAVING, DBG_LOUD, ("Not connected to any\n"));*/
|
||||
|
|
|
@ -111,10 +111,6 @@ enum rt_spinlock_type {
|
|||
#define ODM_ENDIAN_TYPE ODM_ENDIAN_BIG
|
||||
#endif
|
||||
|
||||
#define true _TRUE
|
||||
#define false _FALSE
|
||||
|
||||
|
||||
#define SET_TX_DESC_ANTSEL_A_88E(__ptx_desc, __value) SET_BITS_TO_LE_4BYTE(__ptx_desc+8, 24, 1, __value)
|
||||
#define SET_TX_DESC_ANTSEL_B_88E(__ptx_desc, __value) SET_BITS_TO_LE_4BYTE(__ptx_desc+8, 25, 1, __value)
|
||||
#define SET_TX_DESC_ANTSEL_C_88E(__ptx_desc, __value) SET_BITS_TO_LE_4BYTE(__ptx_desc+28, 29, 1, __value)
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
|
||||
static u8 _is_fw_read_cmd_down(_adapter *padapter, u8 msgbox_num)
|
||||
{
|
||||
u8 read_down = _FALSE;
|
||||
u8 read_down = false;
|
||||
int retry_cnts = 100;
|
||||
|
||||
u8 valid;
|
||||
|
@ -42,7 +42,7 @@ static u8 _is_fw_read_cmd_down(_adapter *padapter, u8 msgbox_num)
|
|||
do {
|
||||
valid = rtw_read8(padapter, REG_HMETFR) & BIT(msgbox_num);
|
||||
if (0 == valid)
|
||||
read_down = _TRUE;
|
||||
read_down = true;
|
||||
else
|
||||
rtw_msleep_os(1);
|
||||
} while ((!read_down) && (retry_cnts--));
|
||||
|
@ -78,7 +78,7 @@ s32 FillH2CCmd_88E(PADAPTER padapter, u8 ElementID, u32 CmdLen, u8 *pCmdBuffer)
|
|||
padapter = GET_PRIMARY_ADAPTER(padapter);
|
||||
pHalData = GET_HAL_DATA(padapter);
|
||||
|
||||
if (padapter->bFWReady == _FALSE) {
|
||||
if (padapter->bFWReady == false) {
|
||||
RTW_INFO("FillH2CCmd_88E(): return H2C cmd because fw is not ready\n");
|
||||
return ret;
|
||||
}
|
||||
|
@ -172,7 +172,7 @@ u8 rtl8188e_set_rssi_cmd(_adapter *padapter, u8 *param)
|
|||
u8 res = _SUCCESS;
|
||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(padapter);
|
||||
|
||||
if (pHalData->fw_ractrl == _FALSE) {
|
||||
if (pHalData->fw_ractrl == false) {
|
||||
RTW_INFO("==>%s fw dont support RA\n", __func__);
|
||||
return _FAIL;
|
||||
}
|
||||
|
@ -189,11 +189,11 @@ u8 rtl8188e_set_raid_cmd(_adapter *padapter, u32 bitmap, u8 *arg, u8 bw)
|
|||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(padapter);
|
||||
struct sta_info *psta = NULL;
|
||||
struct macid_ctl_t *macid_ctl = &padapter->dvobj->macid_ctl;
|
||||
u8 macid, init_rate, raid, shortGIrate = _FALSE;
|
||||
u8 macid, init_rate, raid, shortGIrate = false;
|
||||
u8 H2CCommand[7] = {0};
|
||||
u8 ignore_bw = _FALSE;
|
||||
u8 ignore_bw = false;
|
||||
|
||||
if (pHalData->fw_ractrl == _FALSE) {
|
||||
if (pHalData->fw_ractrl == false) {
|
||||
RTW_INFO("==>%s fw dont support RA\n", __func__);
|
||||
return _FAIL;
|
||||
}
|
||||
|
@ -219,8 +219,8 @@ u8 rtl8188e_set_raid_cmd(_adapter *padapter, u32 bitmap, u8 *arg, u8 bw)
|
|||
H2CCommand[2] |= BIT(3);
|
||||
|
||||
#ifdef CONFIG_INTEL_PROXIM
|
||||
if (padapter->proximity.proxim_on == _TRUE)
|
||||
pHalData->bDisableTXPowerTraining = _FALSE;
|
||||
if (padapter->proximity.proxim_on == true)
|
||||
pHalData->bDisableTXPowerTraining = false;
|
||||
#endif
|
||||
|
||||
/* DisableTXPowerTraining */
|
||||
|
@ -484,7 +484,7 @@ static void ConstructNullFunctionData(
|
|||
|
||||
SetSeqNum(pwlanhdr, 0);
|
||||
|
||||
if (bQoS == _TRUE) {
|
||||
if (bQoS == true) {
|
||||
struct rtw_ieee80211_hdr_3addr_qos *pwlanqoshdr;
|
||||
|
||||
set_frame_sub_type(pframe, WIFI_QOS_DATA_NULL);
|
||||
|
@ -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
|
||||
bool bSendBeacon = _FALSE;
|
||||
bool bcn_valid = _FALSE;
|
||||
bool bSendBeacon = false;
|
||||
bool bcn_valid = false;
|
||||
u8 DLBcnCount = 0;
|
||||
u32 poll = 0;
|
||||
|
||||
|
@ -607,7 +607,7 @@ void rtl8188e_set_FwJoinBssReport_cmd(PADAPTER padapter, u8 mstatus)
|
|||
|
||||
if (pHalData->RegFwHwTxQCtrl & BIT6) {
|
||||
RTW_INFO("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. */
|
||||
|
@ -620,7 +620,7 @@ void rtl8188e_set_FwJoinBssReport_cmd(PADAPTER padapter, u8 mstatus)
|
|||
poll = 0;
|
||||
do {
|
||||
/* download rsvd page.*/
|
||||
rtw_hal_set_fw_rsvd_page(padapter, _FALSE);
|
||||
rtw_hal_set_fw_rsvd_page(padapter, false);
|
||||
DLBcnCount++;
|
||||
do {
|
||||
rtw_yield_os();
|
||||
|
@ -789,7 +789,7 @@ int reset_tsf(PADAPTER Adapter, u8 reset_port)
|
|||
u32 reg_bcncrtl = (HW_PORT0 == reset_port) ?
|
||||
REG_BCN_CTRL_1 : REG_BCN_CTRL;
|
||||
|
||||
rtw_mi_buddy_scan_abort(Adapter, _FALSE); /* site survey will cause reset_tsf fail */
|
||||
rtw_mi_buddy_scan_abort(Adapter, false); /* site survey will cause reset_tsf fail */
|
||||
reset_cnt_after = reset_cnt_before = rtw_read8(Adapter, reg_reset_tsf_cnt);
|
||||
rtl8188e_reset_tsf(Adapter, reset_port);
|
||||
|
||||
|
@ -799,7 +799,7 @@ int reset_tsf(PADAPTER 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;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -55,7 +55,7 @@ dm_CheckStatistics(
|
|||
static void dm_CheckPbcGPIO(_adapter *padapter)
|
||||
{
|
||||
u8 tmp1byte;
|
||||
u8 bPbcPressed = _FALSE;
|
||||
u8 bPbcPressed = false;
|
||||
|
||||
if (!padapter->registrypriv.hw_wps_pbc)
|
||||
return;
|
||||
|
@ -77,9 +77,9 @@ static void dm_CheckPbcGPIO(_adapter *padapter)
|
|||
return ;
|
||||
|
||||
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 */
|
||||
RTW_INFO("CheckPbcGPIO - PBC is pressed\n");
|
||||
|
@ -160,7 +160,7 @@ static void Update_ODM_ComInfo_88E(PADAPTER Adapter)
|
|||
/* | ODM_BB_PWR_TRAIN */
|
||||
;
|
||||
|
||||
if (rtw_odm_adaptivity_needed(Adapter) == _TRUE) {
|
||||
if (rtw_odm_adaptivity_needed(Adapter) == true) {
|
||||
rtw_odm_adaptivity_config_msg(RTW_DBGDUMP, Adapter);
|
||||
SupportAbility |= ODM_BB_ADAPTIVITY;
|
||||
}
|
||||
|
@ -212,8 +212,8 @@ rtl8188e_HalDmWatchDog(
|
|||
PADAPTER Adapter
|
||||
)
|
||||
{
|
||||
bool bFwCurrentInPSMode = _FALSE;
|
||||
bool bFwPSAwake = _TRUE;
|
||||
bool bFwCurrentInPSMode = false;
|
||||
bool bFwPSAwake = true;
|
||||
PHAL_DATA_TYPE pHalData = GET_HAL_DATA(Adapter);
|
||||
struct PHY_DM_STRUCT *pDM_Odm = &(pHalData->odmpriv);
|
||||
|
||||
|
@ -230,7 +230,7 @@ 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 ((rtw_is_hw_init_completed(Adapter))
|
||||
|
@ -243,16 +243,16 @@ rtl8188e_HalDmWatchDog(
|
|||
|
||||
/* ODM */
|
||||
if (rtw_is_hw_init_completed(Adapter)) {
|
||||
u8 bLinked = _FALSE;
|
||||
u8 bsta_state = _FALSE;
|
||||
u8 bLinked = false;
|
||||
u8 bsta_state = false;
|
||||
#ifdef CONFIG_DISABLE_ODM
|
||||
pHalData->odmpriv.support_ability = 0;
|
||||
#endif
|
||||
|
||||
if (rtw_mi_check_status(Adapter, MI_ASSOC)) {
|
||||
bLinked = _TRUE;
|
||||
bLinked = true;
|
||||
if (rtw_mi_check_status(Adapter, MI_STA_LINKED))
|
||||
bsta_state = _TRUE;
|
||||
bsta_state = true;
|
||||
}
|
||||
|
||||
odm_cmn_info_update(&pHalData->odmpriv , ODM_CMNINFO_LINK, bLinked);
|
||||
|
|
|
@ -38,8 +38,8 @@ static void iol_mode_enable(PADAPTER padapter, u8 enable)
|
|||
/* RTW_INFO("%s reg_0xf0:0x%02x, write 0x%02x\n", __func__, reg_0xf0, reg_0xf0|SW_OFFLOAD_EN); */
|
||||
rtw_write8(padapter, REG_SYS_CFG, reg_0xf0 | SW_OFFLOAD_EN);
|
||||
|
||||
if (padapter->bFWReady == _FALSE) {
|
||||
RTW_INFO("bFWReady == _FALSE call reset 8051...\n");
|
||||
if (padapter->bFWReady == false) {
|
||||
RTW_INFO("bFWReady == false call reset 8051...\n");
|
||||
_8051Reset88E(padapter);
|
||||
}
|
||||
|
||||
|
@ -660,7 +660,7 @@ static void _MCUIO_Reset88E(PADAPTER padapter, u8 bReset)
|
|||
{
|
||||
u8 u1bTmp;
|
||||
|
||||
if (bReset == _TRUE) {
|
||||
if (bReset == true) {
|
||||
u1bTmp = rtw_read8(padapter, REG_RSV_CTRL);
|
||||
rtw_write8(padapter, REG_RSV_CTRL, (u1bTmp & (~BIT1)));
|
||||
/* Reset MCU IO Wrapper- sugggest by SD1-Gimmy */
|
||||
|
@ -680,10 +680,10 @@ void _8051Reset88E(PADAPTER 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));
|
||||
|
||||
RTW_INFO("=====> _8051Reset88E(): 8051 reset success .\n");
|
||||
|
@ -811,7 +811,7 @@ s32 rtl8188e_FirmwareDownload(PADAPTER padapter, bool bUsedWoWLANFw)
|
|||
#endif /* CONFIG_FILE_FWIMG */
|
||||
|
||||
#ifdef CONFIG_FILE_FWIMG
|
||||
if (rtw_is_file_readable(fwfilepath) == _TRUE) {
|
||||
if (rtw_is_file_readable(fwfilepath) == true) {
|
||||
RTW_INFO("%s accquire FW from file:%s\n", __func__, fwfilepath);
|
||||
pFirmware->eFWSource = FW_SOURCE_IMG_FILE;
|
||||
} else
|
||||
|
@ -908,7 +908,7 @@ s32 rtl8188e_FirmwareDownload(PADAPTER padapter, bool bUsedWoWLANFw)
|
|||
_8051Reset88E(padapter);
|
||||
}
|
||||
|
||||
_FWDownloadEnable_8188E(padapter, _TRUE);
|
||||
_FWDownloadEnable_8188E(padapter, true);
|
||||
fwdl_start_time = rtw_get_current_time();
|
||||
while (!RTW_CANNOT_IO(padapter)
|
||||
&& (write_fw++ < 3 || rtw_get_passing_time_ms(fwdl_start_time) < 500)) {
|
||||
|
@ -923,7 +923,7 @@ s32 rtl8188e_FirmwareDownload(PADAPTER padapter, bool bUsedWoWLANFw)
|
|||
if (rtStatus == _SUCCESS)
|
||||
break;
|
||||
}
|
||||
_FWDownloadEnable_8188E(padapter, _FALSE);
|
||||
_FWDownloadEnable_8188E(padapter, false);
|
||||
if (_SUCCESS != rtStatus)
|
||||
goto fwdl_stat;
|
||||
|
||||
|
@ -953,7 +953,7 @@ void rtl8188e_InitializeFirmwareVars(PADAPTER padapter)
|
|||
struct pwrctrl_priv *pwrpriv = adapter_to_pwrctl(padapter);
|
||||
|
||||
/* Init Fw LPS related. */
|
||||
pwrpriv->bFwCurrentInPSMode = _FALSE;
|
||||
pwrpriv->bFwCurrentInPSMode = false;
|
||||
|
||||
/* Init H2C cmd. */
|
||||
rtw_write8(padapter, REG_HMETFR, 0x0f);
|
||||
|
@ -1001,7 +1001,7 @@ hal_EfusePowerSwitch_RTL8188E(
|
|||
u8 tempval;
|
||||
u16 tmpV16;
|
||||
|
||||
if (PwrState == _TRUE) {
|
||||
if (PwrState == true) {
|
||||
rtw_write8(pAdapter, REG_EFUSE_ACCESS, EFUSE_ACCESS_ON);
|
||||
/* Reset: 0x0000h[28], default valid */
|
||||
tmpV16 = rtw_read16(pAdapter, REG_SYS_FUNC_EN);
|
||||
|
@ -1017,7 +1017,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);
|
||||
if (IS_VENDOR_8188E_I_CUT_SERIES(pAdapter)) {
|
||||
|
@ -1032,7 +1032,7 @@ hal_EfusePowerSwitch_RTL8188E(
|
|||
} else {
|
||||
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));
|
||||
|
@ -1060,7 +1060,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. */
|
||||
|
@ -1072,12 +1072,12 @@ static bool efuse_read_phymap(
|
|||
/* Read physical efuse content. */
|
||||
/* */
|
||||
while (addr < limit) {
|
||||
ReadEFuseByte(Adapter, addr, pos, _FALSE);
|
||||
ReadEFuseByte(Adapter, addr, pos, false);
|
||||
if (*pos != 0xFF) {
|
||||
pos++;
|
||||
addr++;
|
||||
} else {
|
||||
reach_end = _TRUE;
|
||||
reach_end = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -1282,15 +1282,15 @@ Hal_EfuseSwitchToBank(
|
|||
bool bPseudoTest
|
||||
)
|
||||
{
|
||||
bool bRet = _FALSE;
|
||||
bool 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
|
||||
bRet = _TRUE;
|
||||
bRet = true;
|
||||
return bRet;
|
||||
}
|
||||
|
||||
|
@ -1335,7 +1335,7 @@ ReadEFuseByIC(
|
|||
exit:
|
||||
|
||||
#ifdef DBG_IOL_READ_EFUSE_MAP
|
||||
if (_rtw_memcmp(logical_map, pHalData->efuse_eeprom_data, 0x130) == _FALSE) {
|
||||
if (_rtw_memcmp(logical_map, pHalData->efuse_eeprom_data, 0x130) == false) {
|
||||
int i;
|
||||
RTW_INFO("%s compare first 0x130 byte fail\n", __func__);
|
||||
for (i = 0; i < 512; i++) {
|
||||
|
@ -1623,7 +1623,7 @@ static u16
|
|||
hal_EfuseGetCurrentSize_8188e(PADAPTER pAdapter,
|
||||
bool bPseudoTest)
|
||||
{
|
||||
int bContinual = _TRUE;
|
||||
int bContinual = true;
|
||||
|
||||
u16 efuse_addr = 0;
|
||||
u8 hoffset = 0, hworden = 0;
|
||||
|
@ -1658,7 +1658,7 @@ hal_EfuseGetCurrentSize_8188e(PADAPTER pAdapter,
|
|||
/* read next header */
|
||||
efuse_addr = efuse_addr + (word_cnts * 2) + 1;
|
||||
} else
|
||||
bContinual = _FALSE ;
|
||||
bContinual = false ;
|
||||
}
|
||||
|
||||
if (bPseudoTest) {
|
||||
|
@ -1711,8 +1711,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;
|
||||
|
@ -1725,9 +1725,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;
|
||||
|
||||
memset((void *)data, 0xff, sizeof(u8) * PGPKT_DATA_SIZE);
|
||||
memset((void *)tmpdata, 0xff, sizeof(u8) * PGPKT_DATA_SIZE);
|
||||
|
@ -1759,17 +1759,17 @@ hal_EfusePgPacketRead_8188e(
|
|||
hworden = efuse_data & 0x0F;
|
||||
}
|
||||
word_cnts = Efuse_CalculateWordCnts(hworden);
|
||||
bDataEmpty = _TRUE ;
|
||||
bDataEmpty = true ;
|
||||
|
||||
if (hoffset == offset) {
|
||||
for (tmpidx = 0; tmpidx < word_cnts * 2 ; tmpidx++) {
|
||||
if (efuse_OneByteRead(pAdapter, efuse_addr + 1 + tmpidx , &efuse_data, bPseudoTest)) {
|
||||
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;
|
||||
|
@ -1781,7 +1781,7 @@ hal_EfusePgPacketRead_8188e(
|
|||
}
|
||||
|
||||
} else
|
||||
bContinual = _FALSE ;
|
||||
bContinual = false ;
|
||||
}
|
||||
/* ------- Data section Read ------------- */
|
||||
else if (ReadState & PG_STATE_DATA) {
|
||||
|
@ -1794,9 +1794,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;
|
||||
|
||||
}
|
||||
|
||||
|
@ -1866,7 +1866,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);
|
||||
} else
|
||||
|
@ -1874,7 +1874,7 @@ hal_EfuseFixHeaderProcess(
|
|||
} else
|
||||
efuse_addr = efuse_addr + (pFixPkt->word_cnts * 2) + 1;
|
||||
*pAddr = efuse_addr;
|
||||
return _TRUE;
|
||||
return true;
|
||||
}
|
||||
|
||||
static bool
|
||||
|
@ -1885,7 +1885,7 @@ hal_EfusePgPacketWrite2ByteHeader(
|
|||
PPGPKT_STRUCT pTargetPkt,
|
||||
bool bPseudoTest)
|
||||
{
|
||||
bool 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;
|
||||
|
@ -1903,7 +1903,7 @@ hal_EfusePgPacketWrite2ByteHeader(
|
|||
while (tmp_header == 0xFF || pg_header != tmp_header) {
|
||||
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);
|
||||
|
@ -1923,7 +1923,7 @@ hal_EfusePgPacketWrite2ByteHeader(
|
|||
while (tmp_header == 0xFF || pg_header != tmp_header) {
|
||||
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);
|
||||
|
@ -1933,7 +1933,7 @@ hal_EfusePgPacketWrite2ByteHeader(
|
|||
if ((tmp_header & 0x0F) == 0x0F) { /* word_en PG fail */
|
||||
if (repeatcnt++ > EFUSE_REPEAT_THRESHOLD_) {
|
||||
/* RTPRINT(FEEPROM, EFUSE_PG, ("Repeat over limit for word_en!!\n")); */
|
||||
return _FALSE;
|
||||
return false;
|
||||
} else {
|
||||
efuse_addr++;
|
||||
continue;
|
||||
|
@ -1945,9 +1945,9 @@ 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;
|
||||
}
|
||||
} else if ((tmp_header & 0x1F) == 0x0F) { /* wrong extended header */
|
||||
|
@ -1968,7 +1968,7 @@ hal_EfusePgPacketWrite1ByteHeader(
|
|||
PPGPKT_STRUCT pTargetPkt,
|
||||
bool bPseudoTest)
|
||||
{
|
||||
bool bRet = _FALSE;
|
||||
bool bRet = false;
|
||||
u8 pg_header = 0, tmp_header = 0;
|
||||
u16 efuse_addr = *pAddr;
|
||||
u8 repeatcnt = 0;
|
||||
|
@ -1985,13 +1985,13 @@ hal_EfusePgPacketWrite1ByteHeader(
|
|||
|
||||
while (tmp_header == 0xFF || pg_header != tmp_header) {
|
||||
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);
|
||||
}
|
||||
|
||||
if (pg_header == tmp_header)
|
||||
bRet = _TRUE;
|
||||
bRet = true;
|
||||
else {
|
||||
PGPKT_STRUCT fixPkt;
|
||||
/* RTPRINT(FEEPROM, EFUSE_PG, ("Error condition for fixed PG packet, need to cover the existed data\n")); */
|
||||
|
@ -1999,7 +1999,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;
|
||||
|
@ -2014,7 +2014,7 @@ hal_EfusePgPacketWriteData(
|
|||
PPGPKT_STRUCT pTargetPkt,
|
||||
bool bPseudoTest)
|
||||
{
|
||||
bool bRet = _FALSE;
|
||||
bool bRet = false;
|
||||
u16 efuse_addr = *pAddr;
|
||||
u8 badworden = 0;
|
||||
u32 PgWriteSuccess = 0;
|
||||
|
@ -2024,7 +2024,7 @@ hal_EfusePgPacketWriteData(
|
|||
if (badworden == 0x0F) {
|
||||
/* write ok */
|
||||
/* RTPRINT(FEEPROM, EFUSE_PG, ("hal_EfusePgPacketWriteData ok!!\n")); */
|
||||
return _TRUE;
|
||||
return true;
|
||||
} else {
|
||||
/* RTPRINT(FEEPROM, EFUSE_PG, ("hal_EfusePgPacketWriteData Fail!!\n")); */
|
||||
/* reorganize other pg packet */
|
||||
|
@ -2032,9 +2032,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;
|
||||
|
@ -2048,7 +2048,7 @@ hal_EfusePgPacketWriteHeader(
|
|||
PPGPKT_STRUCT pTargetPkt,
|
||||
bool bPseudoTest)
|
||||
{
|
||||
bool bRet = _FALSE;
|
||||
bool bRet = false;
|
||||
|
||||
if (pTargetPkt->offset >= EFUSE_MAX_SECTION_BASE)
|
||||
bRet = hal_EfusePgPacketWrite2ByteHeader(pAdapter, efuseType, pAddr, pTargetPkt, bPseudoTest);
|
||||
|
@ -2089,9 +2089,9 @@ wordEnMatched(
|
|||
*pWden = match_word_en;
|
||||
|
||||
if (match_word_en != 0xf)
|
||||
return _TRUE;
|
||||
return true;
|
||||
else
|
||||
return _FALSE;
|
||||
return false;
|
||||
}
|
||||
|
||||
static bool
|
||||
|
@ -2102,12 +2102,12 @@ hal_EfuseCheckIfDatafollowed(
|
|||
bool bPseudoTest
|
||||
)
|
||||
{
|
||||
bool bRet = _FALSE;
|
||||
bool 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;
|
||||
|
@ -2122,7 +2122,7 @@ hal_EfusePartialWriteCheck(
|
|||
bool bPseudoTest
|
||||
)
|
||||
{
|
||||
bool 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;
|
||||
|
@ -2148,7 +2148,7 @@ hal_EfusePartialWriteCheck(
|
|||
|
||||
while (1) {
|
||||
if (startAddr >= efuse_max_available_len) {
|
||||
bRet = _FALSE;
|
||||
bRet = false;
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -2159,7 +2159,7 @@ hal_EfusePartialWriteCheck(
|
|||
efuse_OneByteRead(pAdapter, startAddr, &efuse_data, bPseudoTest);
|
||||
if (ALL_WORDS_DISABLED(efuse_data)) {
|
||||
/* RTPRINT(FEEPROM, EFUSE_PG, ("Error condition, all words disabled")); */
|
||||
bRet = _FALSE;
|
||||
bRet = false;
|
||||
break;
|
||||
} else {
|
||||
curPkt.offset = ((cur_header & 0xE0) >> 5) | ((efuse_data & 0xF0) >> 1);
|
||||
|
@ -2187,7 +2187,7 @@ hal_EfusePartialWriteCheck(
|
|||
PgWriteSuccess = Efuse_PgPacketWrite(pAdapter, pTargetPkt->offset, badworden, pTargetPkt->data, bPseudoTest);
|
||||
|
||||
if (!PgWriteSuccess) {
|
||||
bRet = _FALSE; /* write fail, return */
|
||||
bRet = false; /* write fail, return */
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -2205,7 +2205,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;
|
||||
}
|
||||
}
|
||||
|
@ -2222,16 +2222,16 @@ 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)); */
|
||||
|
||||
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
|
||||
|
@ -2266,20 +2266,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 bool
|
||||
|
@ -2296,20 +2296,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;
|
||||
}
|
||||
|
||||
|
||||
|
@ -2405,7 +2405,7 @@ static void update_ra_mask_8188e(_adapter *padapter, struct sta_info *psta, stru
|
|||
{
|
||||
HAL_DATA_TYPE *hal_data = GET_HAL_DATA(padapter);
|
||||
|
||||
if (hal_data->fw_ractrl == _TRUE) {
|
||||
if (hal_data->fw_ractrl == true) {
|
||||
u8 arg[4] = {0};
|
||||
|
||||
arg[0] = h2c_macid_cfg->mac_id;/* MACID */
|
||||
|
@ -2461,7 +2461,7 @@ bool rtl8188e_gpio_radio_on_off_check(_adapter *adapter, u8 *valid)
|
|||
bool ret;
|
||||
|
||||
*valid = 0;
|
||||
return _FALSE; /* unblock */
|
||||
return false; /* unblock */
|
||||
}
|
||||
#endif
|
||||
|
||||
|
@ -2653,7 +2653,7 @@ Hal_InitPGData88E(PADAPTER padapter)
|
|||
u32 i;
|
||||
u16 value16;
|
||||
|
||||
if (_FALSE == pHalData->bautoload_fail_flag) {
|
||||
if (false == pHalData->bautoload_fail_flag) {
|
||||
/* autoload OK. */
|
||||
if (is_boot_from_eeprom(padapter)) {
|
||||
/* Read all Content from EEPROM or EFUSE. */
|
||||
|
@ -2663,18 +2663,18 @@ Hal_InitPGData88E(PADAPTER padapter)
|
|||
}
|
||||
} else {
|
||||
/* Read EFUSE real map to shadow. */
|
||||
EFUSE_ShadowMapUpdate(padapter, EFUSE_WIFI, _FALSE);
|
||||
EFUSE_ShadowMapUpdate(padapter, EFUSE_WIFI, false);
|
||||
}
|
||||
} else {
|
||||
/* autoload fail */
|
||||
/* 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);
|
||||
}
|
||||
|
||||
#ifdef CONFIG_EFUSE_CONFIG_FILE
|
||||
if (check_phy_efuse_tx_power_info_valid(padapter) == _FALSE) {
|
||||
if (check_phy_efuse_tx_power_info_valid(padapter) == false) {
|
||||
if (Hal_readPGDataFromConfigFile(padapter) != _SUCCESS)
|
||||
RTW_ERR("invalid phy efuse and read from file fail, will use driver default!!\n");
|
||||
}
|
||||
|
@ -2695,9 +2695,9 @@ Hal_EfuseParseIDCode88E(
|
|||
EEPROMId = le16_to_cpu(*((__le16 *)hwinfo));
|
||||
if (EEPROMId != RTL_EEPROM_ID) {
|
||||
RTW_INFO("EEPROM ID(%#x) is invalid!!\n", EEPROMId);
|
||||
pHalData->bautoload_fail_flag = _TRUE;
|
||||
pHalData->bautoload_fail_flag = true;
|
||||
} else
|
||||
pHalData->bautoload_fail_flag = _FALSE;
|
||||
pHalData->bautoload_fail_flag = false;
|
||||
|
||||
RTW_INFO("EEPROM ID=0x%04x\n", EEPROMId);
|
||||
}
|
||||
|
@ -2713,8 +2713,8 @@ 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 */
|
||||
|
@ -2726,7 +2726,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;
|
||||
|
||||
RTW_INFO("%s...bHWPwrPindetect(%x)-bHWPowerdown(%x) ,bSupportRemoteWakeup(%x)\n", __func__,
|
||||
pwrctl->bHWPwrPindetect, pwrctl->bHWPowerdown, pwrctl->bSupportRemoteWakeup);
|
||||
|
@ -3057,7 +3057,7 @@ Hal_ReadThermalMeter_88E(
|
|||
/* pHalData->eeprom_thermal_meter = (tempval&0x1f); */ /* [4:0] */
|
||||
|
||||
if (pHalData->eeprom_thermal_meter == 0xff || AutoloadFail) {
|
||||
pHalData->odmpriv.rf_calibrate_info.is_apk_thermal_meter_ignore = _TRUE;
|
||||
pHalData->odmpriv.rf_calibrate_info.is_apk_thermal_meter_ignore = true;
|
||||
pHalData->eeprom_thermal_meter = EEPROM_Default_ThermalMeter_88E;
|
||||
}
|
||||
|
||||
|
@ -3083,7 +3083,7 @@ void Hal_ReadRFGainOffset(
|
|||
|
||||
if ((pHalData->EEPROMRFGainOffset != 0xFF) &&
|
||||
(pHalData->EEPROMRFGainOffset & BIT4))
|
||||
efuse_OneByteRead(Adapter, EEPROM_RF_GAIN_VAL, &pHalData->EEPROMRFGainVal, _FALSE);
|
||||
efuse_OneByteRead(Adapter, EEPROM_RF_GAIN_VAL, &pHalData->EEPROMRFGainVal, false);
|
||||
else {
|
||||
pHalData->EEPROMRFGainOffset = 0;
|
||||
pHalData->EEPROMRFGainVal = 0;
|
||||
|
@ -3091,7 +3091,7 @@ void Hal_ReadRFGainOffset(
|
|||
|
||||
RTW_INFO("pHalData->EEPROMRFGainVal=%x\n", pHalData->EEPROMRFGainVal);
|
||||
} else {
|
||||
efuse_OneByteRead(Adapter, EEPROM_RF_GAIN_VAL, &pHalData->EEPROMRFGainVal, _FALSE);
|
||||
efuse_OneByteRead(Adapter, EEPROM_RF_GAIN_VAL, &pHalData->EEPROMRFGainVal, false);
|
||||
|
||||
if (pHalData->EEPROMRFGainVal != 0xFF)
|
||||
pHalData->EEPROMRFGainOffset = BIT4;
|
||||
|
@ -3101,7 +3101,7 @@ void Hal_ReadRFGainOffset(
|
|||
}
|
||||
|
||||
if (Adapter->registrypriv.RegPwrTrimEnable == 1) {
|
||||
efuse_OneByteRead(Adapter, EEPROM_RF_GAIN_VAL, &pHalData->EEPROMRFGainVal, _FALSE);
|
||||
efuse_OneByteRead(Adapter, EEPROM_RF_GAIN_VAL, &pHalData->EEPROMRFGainVal, false);
|
||||
RTW_INFO("pHalData->EEPROMRFGainVal=%x\n", pHalData->EEPROMRFGainVal);
|
||||
|
||||
}
|
||||
|
@ -3110,7 +3110,7 @@ void Hal_ReadRFGainOffset(
|
|||
/* */
|
||||
if (((pHalData->EEPROMRFGainOffset != 0xFF) && (pHalData->EEPROMRFGainOffset & BIT4)) || (Adapter->registrypriv.RegPwrTrimEnable == 1)) {
|
||||
|
||||
efuse_OneByteRead(Adapter, EEPROM_THERMAL_OFFSET, &thermal_offset, _FALSE);
|
||||
efuse_OneByteRead(Adapter, EEPROM_THERMAL_OFFSET, &thermal_offset, false);
|
||||
if (thermal_offset != 0xFF) {
|
||||
if (thermal_offset & BIT0)
|
||||
pHalData->eeprom_thermal_meter += ((thermal_offset >> 1) & 0x0F);
|
||||
|
@ -3138,9 +3138,9 @@ bool HalDetectPwrDownMode88E(PADAPTER 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;
|
||||
|
||||
RTW_INFO("HalDetectPwrDownMode(): PDN=%d\n", pHalData->pwrdown);
|
||||
|
||||
|
@ -3150,7 +3150,7 @@ bool HalDetectPwrDownMode88E(PADAPTER Adapter)
|
|||
#if defined(CONFIG_WOWLAN) || defined(CONFIG_AP_WOWLAN)
|
||||
void Hal_DetectWoWMode(PADAPTER pAdapter)
|
||||
{
|
||||
adapter_to_pwrctl(pAdapter)->bSupportRemoteWakeup = _TRUE;
|
||||
adapter_to_pwrctl(pAdapter)->bSupportRemoteWakeup = true;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
@ -3220,21 +3220,21 @@ static void hw_var_set_opmode(PADAPTER Adapter, u8 variable, u8 *val)
|
|||
{
|
||||
u8 val8;
|
||||
u8 mode = *((u8 *)val);
|
||||
static u8 isMonitor = _FALSE;
|
||||
static u8 isMonitor = false;
|
||||
|
||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
||||
|
||||
if (isMonitor == _TRUE) {
|
||||
if (isMonitor == true) {
|
||||
/* reset RCR */
|
||||
rtw_write32(Adapter, REG_RCR, pHalData->ReceiveConfig);
|
||||
isMonitor = _FALSE;
|
||||
isMonitor = false;
|
||||
}
|
||||
|
||||
RTW_INFO(ADPT_FMT "- Port-%d set opmode = %d\n", ADPT_ARG(Adapter),
|
||||
get_hw_port(Adapter), mode);
|
||||
|
||||
if (mode == _HW_STATE_MONITOR_) {
|
||||
isMonitor = _TRUE;
|
||||
isMonitor = true;
|
||||
/* set net_type */
|
||||
Set_MSR(Adapter, _HW_STATE_NOLINK_);
|
||||
|
||||
|
@ -3258,12 +3258,12 @@ static void hw_var_set_opmode(PADAPTER 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 */
|
||||
|
@ -3284,11 +3284,11 @@ static void hw_var_set_opmode(PADAPTER Adapter, u8 variable, u8 *val)
|
|||
} else if (mode == _HW_STATE_AP_) {
|
||||
#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 */
|
||||
|
@ -3355,7 +3355,7 @@ static void hw_var_set_opmode(PADAPTER Adapter, u8 variable, u8 *val)
|
|||
#ifdef CONFIG_TSF_RESET_OFFLOAD
|
||||
/* Reset TSF for STA+AP concurrent mode */
|
||||
if (rtw_mi_buddy_check_fwstate(Adapter, (WIFI_STATION_STATE | WIFI_ASOC_STATE))) {
|
||||
if (reset_tsf(Adapter, HW_PORT1) == _FALSE)
|
||||
if (reset_tsf(Adapter, HW_PORT1) == false)
|
||||
RTW_INFO("ERROR! %s()-%d: Reset port1 TSF fail\n",
|
||||
__func__, __LINE__);
|
||||
}
|
||||
|
@ -3381,11 +3381,11 @@ static void hw_var_set_opmode(PADAPTER 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 */
|
||||
|
@ -3405,11 +3405,11 @@ static void hw_var_set_opmode(PADAPTER Adapter, u8 variable, u8 *val)
|
|||
} else if (mode == _HW_STATE_AP_) {
|
||||
#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 */
|
||||
|
@ -3476,7 +3476,7 @@ static void hw_var_set_opmode(PADAPTER Adapter, u8 variable, u8 *val)
|
|||
#ifdef CONFIG_TSF_RESET_OFFLOAD
|
||||
/* Reset TSF for STA+AP concurrent mode */
|
||||
if (rtw_mi_buddy_check_fwstate(Adapter, (WIFI_STATION_STATE | WIFI_ASOC_STATE))) {
|
||||
if (reset_tsf(Adapter, HW_PORT0) == _FALSE)
|
||||
if (reset_tsf(Adapter, HW_PORT0) == false)
|
||||
RTW_INFO("ERROR! %s()-%d: Reset port0 TSF fail\n",
|
||||
__func__, __LINE__);
|
||||
}
|
||||
|
@ -3542,12 +3542,12 @@ static void hw_var_set_correct_tsf(PADAPTER Adapter, u8 variable, u8 *val)
|
|||
if (iface == Adapter)
|
||||
continue;
|
||||
|
||||
if (check_fwstate(&iface->mlmepriv, WIFI_AP_STATE) == _TRUE
|
||||
&& check_fwstate(&iface->mlmepriv, WIFI_ASOC_STATE) == _TRUE
|
||||
if (check_fwstate(&iface->mlmepriv, WIFI_AP_STATE) == true
|
||||
&& check_fwstate(&iface->mlmepriv, WIFI_ASOC_STATE) == true
|
||||
) {
|
||||
rtw_hal_correct_tsf(iface, iface->hw_port, tsf);
|
||||
#ifdef CONFIG_TSF_RESET_OFFLOAD
|
||||
if (reset_tsf(iface, iface->hw_port) == _FALSE)
|
||||
if (reset_tsf(iface, iface->hw_port) == false)
|
||||
RTW_INFO("%s-[ERROR] "ADPT_FMT" Reset port%d TSF fail\n", __func__, ADPT_ARG(iface), iface->hw_port);
|
||||
#endif /* CONFIG_TSF_RESET_OFFLOAD*/
|
||||
}
|
||||
|
@ -3568,7 +3568,7 @@ static void hw_var_set_mlme_disconnect(PADAPTER Adapter, u8 variable, u8 *val)
|
|||
rtw_write32(Adapter, REG_RCR, rtw_read32(padapter, REG_RCR) & ~RCR_ADF);
|
||||
reject all data frames */
|
||||
#ifdef CONFIG_CONCURRENT_MODE
|
||||
if (rtw_mi_check_status(Adapter, MI_LINKED) == _FALSE)
|
||||
if (rtw_mi_check_status(Adapter, MI_LINKED) == false)
|
||||
#endif
|
||||
rtw_write16(Adapter, REG_RXFLTMAP2, 0x00);
|
||||
|
||||
|
@ -3630,7 +3630,7 @@ static void hw_var_set_mlme_sitesurvey(PADAPTER Adapter, u8 variable, u8 *val)
|
|||
|
||||
#ifdef CONFIG_TDLS
|
||||
/* TDLS will clear RCR_CBSSID_DATA bit for connection.*/
|
||||
else if (Adapter->tdlsinfo.link_established == _TRUE)
|
||||
else if (Adapter->tdlsinfo.link_established == true)
|
||||
rcr_clear_bit = RCR_CBSSID_BCN;
|
||||
#endif /*CONFIG_TDLS*/
|
||||
|
||||
|
@ -3656,13 +3656,13 @@ static void hw_var_set_mlme_sitesurvey(PADAPTER Adapter, u8 variable, u8 *val)
|
|||
continue;
|
||||
|
||||
if (rtw_linked_check(iface) &&
|
||||
check_fwstate(&(iface->mlmepriv), WIFI_AP_STATE) != _TRUE) {
|
||||
check_fwstate(&(iface->mlmepriv), WIFI_AP_STATE) != true) {
|
||||
if (iface->hw_port == HW_PORT1)
|
||||
rtw_write8(iface, REG_BCN_CTRL_1, rtw_read8(iface, REG_BCN_CTRL_1) | DIS_TSF_UDT);
|
||||
else
|
||||
rtw_write8(iface, REG_BCN_CTRL, rtw_read8(iface, REG_BCN_CTRL) | DIS_TSF_UDT);
|
||||
|
||||
iface->mlmeextpriv.en_hw_update_tsf = _FALSE;
|
||||
iface->mlmeextpriv.en_hw_update_tsf = false;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -3708,14 +3708,14 @@ static void hw_var_set_mlme_sitesurvey(PADAPTER Adapter, u8 variable, u8 *val)
|
|||
if (!iface)
|
||||
continue;
|
||||
if (rtw_linked_check(iface) &&
|
||||
check_fwstate(&(iface->mlmepriv), WIFI_AP_STATE) != _TRUE) {
|
||||
check_fwstate(&(iface->mlmepriv), WIFI_AP_STATE) != true) {
|
||||
/* enable HW TSF update when recive beacon*/
|
||||
/*if (iface->hw_port == HW_PORT1)
|
||||
rtw_write8(iface, REG_BCN_CTRL_1, rtw_read8(iface, REG_BCN_CTRL_1)&(~(DIS_TSF_UDT)));
|
||||
else
|
||||
rtw_write8(iface, REG_BCN_CTRL, rtw_read8(iface, REG_BCN_CTRL)&(~(DIS_TSF_UDT)));
|
||||
*/
|
||||
iface->mlmeextpriv.en_hw_update_tsf = _TRUE;
|
||||
iface->mlmeextpriv.en_hw_update_tsf = true;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
@ -3759,12 +3759,12 @@ static void hw_var_set_mlme_join(PADAPTER Adapter, u8 variable, u8 *val)
|
|||
else
|
||||
rtw_write32(Adapter, REG_RCR, rtw_read32(Adapter, REG_RCR) | RCR_CBSSID_DATA | RCR_CBSSID_BCN);
|
||||
#endif
|
||||
if (check_fwstate(pmlmepriv, WIFI_STATION_STATE) == _TRUE)
|
||||
if (check_fwstate(pmlmepriv, WIFI_STATION_STATE) == true)
|
||||
RetryLimit = (pHalData->CustomerID == RT_CID_CCX) ? 7 : 48;
|
||||
else /* Ad-hoc Mode */
|
||||
RetryLimit = 0x7;
|
||||
} else if (type == 1) { /* joinbss_event call back when join res < 0 */
|
||||
if (rtw_mi_check_status(Adapter, MI_LINKED) == _FALSE)
|
||||
if (rtw_mi_check_status(Adapter, MI_LINKED) == false)
|
||||
rtw_write16(Adapter, REG_RXFLTMAP2, 0x00);
|
||||
|
||||
if (rtw_mi_check_status(Adapter, MI_AP_MODE)) {
|
||||
|
@ -3906,7 +3906,7 @@ void SetHwReg8188E(_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;
|
||||
else /* Ad-hoc Mode */
|
||||
RetryLimit = 0x7;
|
||||
|
@ -4072,7 +4072,7 @@ void SetHwReg8188E(_adapter *adapter, u8 variable, u8 *val)
|
|||
/* Forece leave RF low power mode for 1T1R to prevent conficting setting in Fw power */
|
||||
/* saving sequence. 2010.06.07. Added by tynli. Suggested by SD3 yschang. */
|
||||
if (psmode != PS_MODE_ACTIVE)
|
||||
odm_rf_saving(podmpriv, _TRUE);
|
||||
odm_rf_saving(podmpriv, true);
|
||||
rtl8188e_set_FwPwrMode_cmd(adapter, psmode);
|
||||
}
|
||||
break;
|
||||
|
@ -4130,7 +4130,7 @@ void SetHwReg8188E(_adapter *adapter, u8 variable, u8 *val)
|
|||
/* 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));
|
||||
do {
|
||||
|
@ -4451,22 +4451,22 @@ void GetHwReg8188E(_adapter *adapter, u8 variable, u8 *val)
|
|||
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_FWLPS_RF_ON: {
|
||||
/* When we halt NIC, we should check if FW LPS is leave. */
|
||||
if (adapter_to_pwrctl(adapter)->rf_pwrstate == rf_off) {
|
||||
/* 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 {
|
||||
u32 valRCR;
|
||||
valRCR = rtw_read32(adapter, REG_RCR);
|
||||
valRCR &= 0x00070000;
|
||||
if (valRCR)
|
||||
val[0] = _FALSE;
|
||||
val[0] = false;
|
||||
else
|
||||
val[0] = _TRUE;
|
||||
val[0] = true;
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
@ -4474,7 +4474,7 @@ void GetHwReg8188E(_adapter *adapter, u8 variable, u8 *val)
|
|||
*((u16 *)(val)) = pHalData->EfuseUsedBytes;
|
||||
break;
|
||||
case HW_VAR_CHK_HI_QUEUE_EMPTY:
|
||||
*val = ((rtw_read32(adapter, REG_HGQ_INFO) & 0x0000ff00) == 0) ? _TRUE : _FALSE;
|
||||
*val = ((rtw_read32(adapter, REG_HGQ_INFO) & 0x0000ff00) == 0) ? true : false;
|
||||
break;
|
||||
case HW_VAR_DUMP_MAC_QUEUE_INFO:
|
||||
dump_mac_qinfo_88e(val, adapter);
|
||||
|
@ -4490,7 +4490,7 @@ static void hal_ra_info_dump(_adapter *padapter , void *sel)
|
|||
{
|
||||
int i;
|
||||
u8 mac_id;
|
||||
u8 bLinked = _FALSE;
|
||||
u8 bLinked = false;
|
||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(padapter);
|
||||
struct dvobj_priv *dvobj = adapter_to_dvobj(padapter);
|
||||
struct macid_ctl_t *macid_ctl = dvobj_to_macidctl(dvobj);
|
||||
|
@ -4500,7 +4500,7 @@ static void hal_ra_info_dump(_adapter *padapter , void *sel)
|
|||
iface = dvobj->padapters[i];
|
||||
if ((iface) && rtw_is_adapter_up(iface)) {
|
||||
if (rtw_linked_check(iface)) {
|
||||
bLinked = _TRUE;
|
||||
bLinked = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -4514,7 +4514,7 @@ static void hal_ra_info_dump(_adapter *padapter , void *sel)
|
|||
|
||||
if (bLinked) {
|
||||
_RTW_PRINT_SEL(sel , "============ RA status - Mac_id:%d ===================\n", mac_id);
|
||||
if (pHalData->fw_ractrl == _FALSE) {
|
||||
if (pHalData->fw_ractrl == false) {
|
||||
#if (RATE_ADAPTIVE_SUPPORT == 1)
|
||||
_RTW_PRINT_SEL(sel , "Mac_id:%d ,RSSI:%d(%%)\n", mac_id, pHalData->odmpriv.ra_info[mac_id].rssi_sta_ra);
|
||||
|
||||
|
@ -4528,7 +4528,7 @@ static void hal_ra_info_dump(_adapter *padapter , void *sel)
|
|||
#endif /* (RATE_ADAPTIVE_SUPPORT == 1)*/
|
||||
} else {
|
||||
u8 cur_rate = rtw_read8(padapter, REG_ADAPTIVE_DATA_RATE_0 + mac_id);
|
||||
u8 sgi = (cur_rate & BIT7) ? _TRUE : _FALSE;
|
||||
u8 sgi = (cur_rate & BIT7) ? true : false;
|
||||
|
||||
cur_rate &= 0x7f;
|
||||
|
||||
|
@ -4552,7 +4552,7 @@ GetHalDefVar8188E(
|
|||
switch (eVariable) {
|
||||
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_DRVINFO_SZ:
|
||||
|
@ -4589,7 +4589,7 @@ GetHalDefVar8188E(
|
|||
break;
|
||||
case HAL_DEF_EXPLICIT_BEAMFORMEE:
|
||||
case HAL_DEF_EXPLICIT_BEAMFORMER:
|
||||
*((u8 *)pValue) = _FALSE;
|
||||
*((u8 *)pValue) = false;
|
||||
break;
|
||||
|
||||
case HW_DEF_RA_INFO_DUMP:
|
||||
|
@ -4606,7 +4606,7 @@ GetHalDefVar8188E(
|
|||
*(u8 *)pValue = WMM_NORMAL_TX_PAGE_BOUNDARY_88E(Adapter);
|
||||
break;
|
||||
case HAL_DEF_MACID_SLEEP:
|
||||
*(u8 *)pValue = _TRUE; /* support macid sleep */
|
||||
*(u8 *)pValue = true; /* support macid sleep */
|
||||
break;
|
||||
case HAL_DEF_RX_DMA_SZ_WOW:
|
||||
*(u32 *)pValue = RX_DMA_SIZE_88E(Adapter) - RESV_FMWF;
|
||||
|
|
|
@ -54,18 +54,18 @@ sic_IsSICReady(
|
|||
PADAPTER Adapter
|
||||
)
|
||||
{
|
||||
bool bRet = _FALSE;
|
||||
bool bRet = false;
|
||||
u32 retryCnt = 0;
|
||||
u8 sic_cmd = 0xff;
|
||||
|
||||
while (1) {
|
||||
if (retryCnt++ >= SIC_MAX_POLL_CNT) {
|
||||
/* RTPRINT(FPHY, (PHY_SICR|PHY_SICW), ("[SIC], sic_IsSICReady() return FALSE\n")); */
|
||||
return _FALSE;
|
||||
/* RTPRINT(FPHY, (PHY_SICR|PHY_SICW), ("[SIC], sic_IsSICReady() return false\n")); */
|
||||
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); */
|
||||
|
@ -74,7 +74,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);
|
||||
/* delay_ms(1); */
|
||||
|
@ -271,7 +271,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
|
||||
|
||||
|
@ -758,7 +758,7 @@ phy_BB8190_Config_HardCode(
|
|||
PADAPTER Adapter
|
||||
)
|
||||
{
|
||||
/* RT_ASSERT(FALSE, ("This function is not implement yet!!\n")); */
|
||||
/* RT_ASSERT(false, ("This function is not implement yet!!\n")); */
|
||||
return _SUCCESS;
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
bool bIn24G = _FALSE;
|
||||
bool bIn24G = false;
|
||||
|
||||
base_idx = PHY_GetTxPowerIndexBase(pAdapter, RFPath, Rate, BandWidth, Channel, &bIn24G);
|
||||
|
||||
|
@ -1280,7 +1280,7 @@ PHY_UpdateTxPowerDbm8188E(
|
|||
int powerInDbm
|
||||
)
|
||||
{
|
||||
return _TRUE;
|
||||
return true;
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -1347,7 +1347,7 @@ _PHY_SetBWMode88E(
|
|||
/* u64 BeginTime, EndTime; */
|
||||
|
||||
if (pHalData->rf_chip == RF_PSEUDO_11N) {
|
||||
/* pHalData->SetBWModeInProgress= _FALSE; */
|
||||
/* pHalData->SetBWModeInProgress= false; */
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -1457,11 +1457,11 @@ _PHY_SetBWMode88E(
|
|||
break;
|
||||
|
||||
default:
|
||||
/* RT_ASSERT(FALSE, ("Unknown RFChipID: %d\n", pHalData->RFChipID)); */
|
||||
/* RT_ASSERT(false, ("Unknown RFChipID: %d\n", pHalData->RFChipID)); */
|
||||
break;
|
||||
}
|
||||
|
||||
/* pHalData->SetBWModeInProgress= FALSE; */
|
||||
/* pHalData->SetBWModeInProgress= false; */
|
||||
|
||||
}
|
||||
|
||||
|
@ -1495,7 +1495,7 @@ PHY_SetBWMode8188E(
|
|||
/* if(pHalData->SetBWModeInProgress) */
|
||||
/* return; */
|
||||
|
||||
/* pHalData->SetBWModeInProgress= TRUE; */
|
||||
/* pHalData->SetBWModeInProgress= true; */
|
||||
|
||||
pHalData->current_channel_bw = Bandwidth;
|
||||
|
||||
|
@ -1506,7 +1506,7 @@ PHY_SetBWMode8188E(
|
|||
if (IS_VENDOR_8188E_I_CUT_SERIES(Adapter))
|
||||
phy_SpurCalibration_8188E(Adapter);
|
||||
} else {
|
||||
/* pHalData->SetBWModeInProgress= FALSE; */
|
||||
/* pHalData->SetBWModeInProgress= false; */
|
||||
pHalData->current_channel_bw = tmpBW;
|
||||
}
|
||||
|
||||
|
@ -1545,7 +1545,7 @@ PHY_SwChnl8188E(/* Call after initialization */
|
|||
{
|
||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
||||
u8 tmpchannel = pHalData->current_channel;
|
||||
bool bResult = _TRUE;
|
||||
bool bResult = true;
|
||||
|
||||
if (pHalData->rf_chip == RF_PSEUDO_11N)
|
||||
return; /* return immediately if it is peudo-phy */
|
||||
|
@ -1635,7 +1635,7 @@ static void _PHY_SetRFPathSwitch(
|
|||
|
||||
}
|
||||
|
||||
/* return value TRUE => Main; FALSE => Aux */
|
||||
/* return value true => Main; false => Aux */
|
||||
|
||||
static bool _PHY_QueryRFPathSwitch(
|
||||
PADAPTER pAdapter,
|
||||
|
@ -1643,7 +1643,7 @@ static bool _PHY_QueryRFPathSwitch(
|
|||
)
|
||||
{
|
||||
/* if(is2T)
|
||||
* return _TRUE; */
|
||||
* return true; */
|
||||
|
||||
if (!rtw_is_hw_init_completed(pAdapter)) {
|
||||
phy_set_bb_reg(pAdapter, REG_LEDCFG0, BIT23, 0x01);
|
||||
|
@ -1652,14 +1652,14 @@ static bool _PHY_QueryRFPathSwitch(
|
|||
|
||||
if (is2T) {
|
||||
if (phy_query_bb_reg(pAdapter, rFPGA0_XB_RFInterfaceOE, BIT5 | BIT6) == 0x01)
|
||||
return _TRUE;
|
||||
return true;
|
||||
else
|
||||
return _FALSE;
|
||||
return false;
|
||||
} else {
|
||||
if (phy_query_bb_reg(pAdapter, rFPGA0_XA_RFInterfaceOE, 0x300) == 0x02)
|
||||
return _TRUE;
|
||||
return true;
|
||||
else
|
||||
return _FALSE;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -64,17 +64,17 @@ void handle_txrpt_ccx_88e(_adapter *adapter, u8 *buf)
|
|||
void _dbg_dump_tx_info(_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 */
|
||||
RTW_INFO("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 */
|
||||
RTW_INFO("dump tx_desc for mgnt frame\n");
|
||||
if ((frame_tag & 0x0f) == MGNT_FRAMETAG)
|
||||
bDumpTxDesc = _TRUE;
|
||||
bDumpTxDesc = true;
|
||||
} else if (bDumpTxPkt == 3) { /* dump early info */
|
||||
}
|
||||
|
||||
|
|
|
@ -65,7 +65,7 @@ SwLedOn_8188EU(
|
|||
break;
|
||||
}
|
||||
|
||||
pLed->bLedOn = _TRUE;
|
||||
pLed->bLedOn = true;
|
||||
}
|
||||
|
||||
|
||||
|
@ -90,7 +90,7 @@ SwLedOff_8188EU(
|
|||
|
||||
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));
|
||||
LedCfg = rtw_read8(padapter, REG_MAC_PINMUX_CFG);
|
||||
|
@ -109,7 +109,7 @@ SwLedOff_8188EU(
|
|||
break;
|
||||
}
|
||||
exit:
|
||||
pLed->bLedOn = _FALSE;
|
||||
pLed->bLedOn = false;
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -105,7 +105,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 */
|
||||
}
|
||||
|
||||
|
@ -115,7 +115,7 @@ void rtl8188e_fill_fake_txdesc(
|
|||
/* */
|
||||
/* Encrypt the data frame if under security mode excepct null data. Suggested by CCW. */
|
||||
/* */
|
||||
if (_TRUE == bDataFrame) {
|
||||
if (true == bDataFrame) {
|
||||
u32 EncAlg;
|
||||
|
||||
EncAlg = padapter->securitypriv.dot11PrivacyAlgrthm;
|
||||
|
@ -255,7 +255,7 @@ static s32 update_txdesc(struct xmit_frame *pxmitframe, u8 *pmem, s32 sz , u8 ba
|
|||
#ifndef CONFIG_USE_USB_BUFFER_ALLOC_TX
|
||||
if (padapter->registrypriv.mp_mode == 0) {
|
||||
/* if((!bagg_pkt) &&(urb_zero_packet_chk(padapter, sz)==0)) */ /* (sz %512) != 0 */
|
||||
if ((PACKET_OFFSET_SZ != 0) && (!bagg_pkt) && (rtw_usb_bulk_size_boundary(padapter, TXDESC_SIZE + sz) == _FALSE)) {
|
||||
if ((PACKET_OFFSET_SZ != 0) && (!bagg_pkt) && (rtw_usb_bulk_size_boundary(padapter, TXDESC_SIZE + sz) == false)) {
|
||||
ptxdesc = (struct tx_desc *)(pmem + PACKET_OFFSET_SZ);
|
||||
/* RTW_INFO("==> non-agg-pkt,shift pointer...\n"); */
|
||||
pull = 1;
|
||||
|
@ -316,7 +316,7 @@ static s32 update_txdesc(struct xmit_frame *pxmitframe, u8 *pmem, s32 sz , u8 ba
|
|||
fill_txdesc_force_bmc_camid(pattrib, ptxdesc);
|
||||
#endif
|
||||
|
||||
if (pattrib->ampdu_en == _TRUE) {
|
||||
if (pattrib->ampdu_en == true) {
|
||||
ptxdesc->txdw2 |= cpu_to_le32(AGG_EN);/* AGG EN */
|
||||
ptxdesc->txdw2 |= cpu_to_le32((pattrib->ampdu_spacing <<
|
||||
AMPDU_DENSITY_SHT) & 0x00700000);
|
||||
|
@ -363,7 +363,7 @@ static s32 update_txdesc(struct xmit_frame *pxmitframe, u8 *pmem, s32 sz , u8 ba
|
|||
ptxdesc->txdw5 |= cpu_to_le32(0x0001ff00);/* DATA/RTS Rate FB LMT */
|
||||
|
||||
#if (RATE_ADAPTIVE_SUPPORT == 1)
|
||||
if (pHalData->fw_ractrl == _FALSE) {
|
||||
if (pHalData->fw_ractrl == false) {
|
||||
/* driver-based RA*/
|
||||
/* driver uses rate */
|
||||
ptxdesc->txdw4 |= cpu_to_le32(USERATE);/* rate control always by driver */
|
||||
|
@ -472,7 +472,7 @@ static s32 update_txdesc(struct xmit_frame *pxmitframe, u8 *pmem, s32 sz , u8 ba
|
|||
|
||||
/* 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 */
|
||||
|
@ -621,7 +621,7 @@ static s32 rtw_dump_xframe(_adapter *padapter, struct xmit_frame *pxmitframe)
|
|||
} else /* no frag */
|
||||
sz = pattrib->last_txcmdsz;
|
||||
|
||||
pull = update_txdesc(pxmitframe, mem_addr, sz, _FALSE);
|
||||
pull = update_txdesc(pxmitframe, mem_addr, sz, false);
|
||||
|
||||
if (pull) {
|
||||
mem_addr += PACKET_OFFSET_SZ; /* pull txdesc head */
|
||||
|
@ -710,7 +710,7 @@ s32 rtl8188eu_xmitframe_complete(_adapter *padapter, struct xmit_priv *pxmitpriv
|
|||
u32 ff_hwaddr;
|
||||
|
||||
_list *sta_plist, *sta_phead;
|
||||
u8 single_sta_in_queue = _FALSE;
|
||||
u8 single_sta_in_queue = false;
|
||||
|
||||
#ifndef IDEA_CONDITION
|
||||
int res = _SUCCESS;
|
||||
|
@ -723,7 +723,7 @@ s32 rtl8188eu_xmitframe_complete(_adapter *padapter, struct xmit_priv *pxmitpriv
|
|||
pxmitbuf = rtw_alloc_xmitbuf(pxmitpriv);
|
||||
if (pxmitbuf == NULL) {
|
||||
/* RTW_INFO("%s #1, connot alloc xmitbuf!!!!\n",__func__); */
|
||||
return _FALSE;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -737,7 +737,7 @@ s32 rtl8188eu_xmitframe_complete(_adapter *padapter, struct xmit_priv *pxmitpriv
|
|||
/* no more xmit frame, release xmit buffer */
|
||||
/* RTW_INFO("no more xmit frame ,return\n"); */
|
||||
rtw_free_xmitbuf(pxmitpriv, pxmitbuf);
|
||||
return _FALSE;
|
||||
return false;
|
||||
}
|
||||
|
||||
#ifndef IDEA_CONDITION
|
||||
|
@ -765,7 +765,7 @@ s32 rtl8188eu_xmitframe_complete(_adapter *padapter, struct xmit_priv *pxmitpriv
|
|||
pxmitframe->pkt_offset = (PACKET_OFFSET_SZ / 8); /* 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) {
|
||||
RTW_INFO("%s coalesce 1st xmitframe failed\n", __func__);
|
||||
continue;
|
||||
}
|
||||
|
@ -842,7 +842,7 @@ s32 rtl8188eu_xmitframe_complete(_adapter *padapter, struct xmit_priv *pxmitpriv
|
|||
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);
|
||||
|
||||
|
@ -888,7 +888,7 @@ s32 rtl8188eu_xmitframe_complete(_adapter *padapter, struct xmit_priv *pxmitpriv
|
|||
/* 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) {
|
||||
RTW_INFO("%s coalesce failed\n", __func__);
|
||||
rtw_free_xmitframe(pxmitpriv, pxmitframe);
|
||||
continue;
|
||||
|
@ -899,7 +899,7 @@ s32 rtl8188eu_xmitframe_complete(_adapter *padapter, struct xmit_priv *pxmitpriv
|
|||
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);
|
||||
|
@ -926,9 +926,9 @@ s32 rtl8188eu_xmitframe_complete(_adapter *padapter, struct xmit_priv *pxmitpriv
|
|||
bulkPtr = ((pbuf / bulkSize) + 1) * bulkSize;
|
||||
}
|
||||
} /* 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);
|
||||
else if (single_sta_in_queue == _FALSE) {
|
||||
else if (single_sta_in_queue == false) {
|
||||
/* Re-arrange the order of stations in this ac queue to balance the service for these stations */
|
||||
rtw_list_delete(&ptxservq->tx_pending);
|
||||
rtw_list_insert_tail(&ptxservq->tx_pending, get_list_head(phwxmit->sta_queue));
|
||||
|
@ -954,7 +954,7 @@ agg_end:
|
|||
}
|
||||
#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 */
|
||||
|
@ -980,7 +980,7 @@ agg_end:
|
|||
|
||||
rtw_free_xmitframe(pxmitpriv, pfirstframe);
|
||||
|
||||
return _TRUE;
|
||||
return true;
|
||||
}
|
||||
|
||||
#else
|
||||
|
@ -1000,7 +1000,7 @@ s32 rtl8188eu_xmitframe_complete(_adapter *padapter, struct xmit_priv *pxmitpriv
|
|||
if (pxmitbuf == NULL) {
|
||||
pxmitbuf = rtw_alloc_xmitbuf(pxmitpriv);
|
||||
if (!pxmitbuf)
|
||||
return _FALSE;
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
|
@ -1035,14 +1035,14 @@ s32 rtl8188eu_xmitframe_complete(_adapter *padapter, struct xmit_priv *pxmitpriv
|
|||
|
||||
} else {
|
||||
rtw_free_xmitbuf(pxmitpriv, pxmitbuf);
|
||||
return _FALSE;
|
||||
return false;
|
||||
}
|
||||
|
||||
break;
|
||||
|
||||
} while (0/*xcnt < (NR_XMITFRAME >> 3)*/);
|
||||
|
||||
return _TRUE;
|
||||
return true;
|
||||
|
||||
}
|
||||
#endif
|
||||
|
@ -1065,8 +1065,8 @@ static s32 xmitframe_direct(_adapter *padapter, struct xmit_frame *pxmitframe)
|
|||
|
||||
/*
|
||||
* Return
|
||||
* _TRUE dump packet directly
|
||||
* _FALSE enqueue packet
|
||||
* true dump packet directly
|
||||
* false enqueue packet
|
||||
*/
|
||||
static s32 pre_xmitframe(_adapter *padapter, struct xmit_frame *pxmitframe)
|
||||
{
|
||||
|
@ -1086,7 +1086,7 @@ static s32 pre_xmitframe(_adapter *padapter, struct xmit_frame *pxmitframe)
|
|||
goto enqueue;
|
||||
}
|
||||
|
||||
if (rtw_xmit_ac_blocked(padapter) == _TRUE)
|
||||
if (rtw_xmit_ac_blocked(padapter) == true)
|
||||
goto enqueue;
|
||||
|
||||
if (DEV_STA_LG_NUM(padapter->dvobj))
|
||||
|
@ -1107,7 +1107,7 @@ static s32 pre_xmitframe(_adapter *padapter, struct xmit_frame *pxmitframe)
|
|||
rtw_free_xmitframe(pxmitpriv, pxmitframe);
|
||||
}
|
||||
|
||||
return _TRUE;
|
||||
return true;
|
||||
|
||||
enqueue:
|
||||
res = rtw_xmitframe_enqueue(padapter, pxmitframe);
|
||||
|
@ -1117,10 +1117,10 @@ enqueue:
|
|||
rtw_free_xmitframe(pxmitpriv, pxmitframe);
|
||||
|
||||
pxmitpriv->tx_drop++;
|
||||
return _TRUE;
|
||||
return true;
|
||||
}
|
||||
|
||||
return _FALSE;
|
||||
return false;
|
||||
}
|
||||
|
||||
s32 rtl8188eu_mgnt_xmit(_adapter *padapter, struct xmit_frame *pmgntframe)
|
||||
|
@ -1130,8 +1130,8 @@ s32 rtl8188eu_mgnt_xmit(_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(_adapter *padapter, struct xmit_frame *pxmitframe)
|
||||
{
|
||||
|
|
|
@ -59,7 +59,7 @@ static bool HalUsbSetQueuePipeMapping8188EUsb(
|
|||
)
|
||||
{
|
||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(pAdapter);
|
||||
bool result = _FALSE;
|
||||
bool result = false;
|
||||
|
||||
_ConfigNormalChipOutEP_8188E(pAdapter, NumOutPipe);
|
||||
|
||||
|
@ -123,10 +123,10 @@ static u32 _InitPowerOn_8188EU(_adapter *padapter)
|
|||
{
|
||||
u16 value16;
|
||||
/* HW Power on sequence */
|
||||
u8 bMacPwrCtrlOn = _FALSE;
|
||||
u8 bMacPwrCtrlOn = false;
|
||||
|
||||
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)) {
|
||||
|
@ -146,7 +146,7 @@ static u32 _InitPowerOn_8188EU(_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;
|
||||
|
@ -172,7 +172,7 @@ static void _InitPABias(_adapter *padapter)
|
|||
|
||||
/* FIXED PA current issue */
|
||||
/* efuse_one_byte_read(padapter, 0x1FA, &pa_setting); */
|
||||
efuse_OneByteRead(padapter, 0x1FA, &pa_setting, _FALSE);
|
||||
efuse_OneByteRead(padapter, 0x1FA, &pa_setting, false);
|
||||
|
||||
if (!(pa_setting & BIT0)) {
|
||||
phy_set_rf_reg(padapter, RF_PATH_A, 0x15, 0x0FFFFF, 0x0F406);
|
||||
|
@ -408,7 +408,7 @@ _InitNormalChipOneOutEpPriority(
|
|||
value = QUEUE_NORMAL;
|
||||
break;
|
||||
default:
|
||||
/* RT_ASSERT(FALSE,("Shall not reach here!\n")); */
|
||||
/* RT_ASSERT(false,("Shall not reach here!\n")); */
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -449,7 +449,7 @@ _InitNormalChipTwoOutEpPriority(
|
|||
valueLow = QUEUE_NORMAL;
|
||||
break;
|
||||
default:
|
||||
/* RT_ASSERT(FALSE,("Shall not reach here!\n")); */
|
||||
/* RT_ASSERT(false,("Shall not reach here!\n")); */
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -517,7 +517,7 @@ _InitQueuePriority(
|
|||
_InitNormalChipThreeOutEpPriority(Adapter);
|
||||
break;
|
||||
default:
|
||||
/* RT_ASSERT(FALSE,("Shall not reach here!\n")); */
|
||||
/* RT_ASSERT(false,("Shall not reach here!\n")); */
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -741,7 +741,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);
|
||||
|
@ -846,7 +846,7 @@ usb_AggSettingRxUpdate(
|
|||
pHalData->HwRxPageSize = 1024;
|
||||
break;
|
||||
default:
|
||||
/* RT_ASSERT(FALSE, ("RX_PAGE_SIZE_REG_VALUE definition is incorrect!\n")); */
|
||||
/* RT_ASSERT(false, ("RX_PAGE_SIZE_REG_VALUE definition is incorrect!\n")); */
|
||||
break;
|
||||
}
|
||||
#endif
|
||||
|
@ -866,7 +866,7 @@ InitUsbAggregationSetting(
|
|||
usb_AggSettingRxUpdate(Adapter);
|
||||
|
||||
/* 201/12/10 MH Add for USB agg mode dynamic switch. */
|
||||
pHalData->UsbRxHighSpeedMode = _FALSE;
|
||||
pHalData->UsbRxHighSpeedMode = false;
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -1144,12 +1144,12 @@ static u32 rtl8188eu_hal_init(PADAPTER Adapter)
|
|||
_ps_open_RF(Adapter);
|
||||
|
||||
if (pHalData->bIQKInitialized) {
|
||||
/* PHY_IQCalibrate(padapter, _TRUE); */
|
||||
phy_iq_calibrate_8188e(Adapter, _TRUE);
|
||||
/* PHY_IQCalibrate(padapter, true); */
|
||||
phy_iq_calibrate_8188e(Adapter, true);
|
||||
} else {
|
||||
/* PHY_IQCalibrate(padapter, _FALSE); */
|
||||
phy_iq_calibrate_8188e(Adapter, _FALSE);
|
||||
pHalData->bIQKInitialized = _TRUE;
|
||||
/* PHY_IQCalibrate(padapter, false); */
|
||||
phy_iq_calibrate_8188e(Adapter, false);
|
||||
pHalData->bIQKInitialized = true;
|
||||
}
|
||||
|
||||
/* dm_check_txpowertracking(padapter);
|
||||
|
@ -1172,7 +1172,7 @@ static u32 rtl8188eu_hal_init(PADAPTER Adapter)
|
|||
/* Save target channel */
|
||||
/* <Roger_Notes> Current Channel will be updated again later. */
|
||||
pHalData->current_channel = 6;/* default set to 6 */
|
||||
if (pwrctrlpriv->reg_rfoff == _TRUE)
|
||||
if (pwrctrlpriv->reg_rfoff == true)
|
||||
pwrctrlpriv->rf_pwrstate = rf_off;
|
||||
|
||||
/* 2010/08/09 MH We need to check if we need to turnon or off RF after detecting */
|
||||
|
@ -1200,18 +1200,18 @@ static u32 rtl8188eu_hal_init(PADAPTER Adapter)
|
|||
|
||||
HAL_INIT_PROFILE_TAG(HAL_INIT_STAGES_DOWNLOAD_FW);
|
||||
if (Adapter->registrypriv.mp_mode == 0) {
|
||||
status = rtl8188e_FirmwareDownload(Adapter, _FALSE);
|
||||
status = rtl8188e_FirmwareDownload(Adapter, false);
|
||||
if (status != _SUCCESS) {
|
||||
RTW_INFO("%s: Download Firmware failed!!\n", __func__);
|
||||
Adapter->bFWReady = _FALSE;
|
||||
pHalData->fw_ractrl = _FALSE;
|
||||
Adapter->bFWReady = false;
|
||||
pHalData->fw_ractrl = false;
|
||||
return status;
|
||||
} else {
|
||||
Adapter->bFWReady = _TRUE;
|
||||
Adapter->bFWReady = true;
|
||||
#ifdef CONFIG_SFW_SUPPORTED
|
||||
pHalData->fw_ractrl = IS_VENDOR_8188E_I_CUT_SERIES(Adapter) ? _TRUE : _FALSE;
|
||||
pHalData->fw_ractrl = IS_VENDOR_8188E_I_CUT_SERIES(Adapter) ? true : false;
|
||||
#else
|
||||
pHalData->fw_ractrl = _FALSE;
|
||||
pHalData->fw_ractrl = false;
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
@ -1277,7 +1277,7 @@ static u32 rtl8188eu_hal_init(PADAPTER Adapter)
|
|||
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 */
|
||||
|
@ -1433,10 +1433,10 @@ static u32 rtl8188eu_hal_init(PADAPTER Adapter)
|
|||
/* 2010/08/26 MH Merge from 8192CE. */
|
||||
if (pwrctrlpriv->rf_pwrstate == rf_on) {
|
||||
if (pHalData->bIQKInitialized)
|
||||
phy_iq_calibrate_8188e(Adapter, _TRUE);
|
||||
phy_iq_calibrate_8188e(Adapter, true);
|
||||
else {
|
||||
phy_iq_calibrate_8188e(Adapter, _FALSE);
|
||||
pHalData->bIQKInitialized = _TRUE;
|
||||
phy_iq_calibrate_8188e(Adapter, false);
|
||||
pHalData->bIQKInitialized = true;
|
||||
}
|
||||
|
||||
HAL_INIT_PROFILE_TAG(HAL_INIT_STAGES_PW_TRACK);
|
||||
|
@ -1499,10 +1499,10 @@ hal_poweroff_8188eu(
|
|||
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 ;
|
||||
|
||||
/* Stop Tx Report Timer. 0x4EC[Bit1]=b'0 */
|
||||
|
@ -1562,9 +1562,9 @@ hal_poweroff_8188eu(
|
|||
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 */
|
||||
|
||||
Adapter->bFWReady = _FALSE;
|
||||
Adapter->bFWReady = false;
|
||||
|
||||
bMacPwrCtrlOn = _FALSE;
|
||||
bMacPwrCtrlOn = false;
|
||||
rtw_hal_set_hwreg(Adapter, HW_VAR_APFM_ON_MAC, &bMacPwrCtrlOn);
|
||||
}
|
||||
static void rtl8188eu_hw_power_down(_adapter *padapter)
|
||||
|
@ -1631,7 +1631,7 @@ static unsigned int rtl8188eu_inirp_init(PADAPTER Adapter)
|
|||
/* issue Rx irp to receive data */
|
||||
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) {
|
||||
status = _FAIL;
|
||||
goto exit;
|
||||
}
|
||||
|
@ -1647,7 +1647,7 @@ static unsigned int rtl8188eu_inirp_init(PADAPTER Adapter)
|
|||
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) {
|
||||
status = _FAIL;
|
||||
}
|
||||
#endif
|
||||
|
@ -1688,14 +1688,14 @@ _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) {
|
||||
default:
|
||||
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 */
|
||||
|
@ -1798,8 +1798,8 @@ static void _ReadPROMContent(
|
|||
|
||||
/* check system boot selection */
|
||||
eeValue = rtw_read8(Adapter, REG_9346CR);
|
||||
pHalData->EepromOrEfuse = (eeValue & BOOT_FROM_EEPROM) ? _TRUE : _FALSE;
|
||||
pHalData->bautoload_fail_flag = (eeValue & EEPROM_EN) ? _FALSE : _TRUE;
|
||||
pHalData->EepromOrEfuse = (eeValue & BOOT_FROM_EEPROM) ? true : false;
|
||||
pHalData->bautoload_fail_flag = (eeValue & EEPROM_EN) ? false : true;
|
||||
|
||||
RTW_INFO("Boot from %s, Autoload %s !\n", (pHalData->EepromOrEfuse ? "EEPROM" : "EFUSE"),
|
||||
(pHalData->bautoload_fail_flag ? "Fail" : "OK"));
|
||||
|
@ -1933,7 +1933,7 @@ GetHalDefVar8188EUsb(
|
|||
|
||||
case HAL_DEF_TX_LDPC:
|
||||
case HAL_DEF_RX_LDPC:
|
||||
*((u8 *)pValue) = _FALSE;
|
||||
*((u8 *)pValue) = false;
|
||||
break;
|
||||
case HAL_DEF_TX_STBC:
|
||||
*((u8 *)pValue) = 0;
|
||||
|
@ -2029,7 +2029,7 @@ static void SetBeaconRelatedRegisters8188EUsb(PADAPTER 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);
|
||||
|
||||
|
@ -2055,14 +2055,14 @@ static void rtl8188eu_init_default_value(_adapter *padapter)
|
|||
rtl8188e_init_default_value(padapter);
|
||||
|
||||
/* init default value */
|
||||
pHalData->fw_ractrl = _FALSE;
|
||||
pHalData->fw_ractrl = false;
|
||||
if (!pwrctrlpriv->bkeepfwalive)
|
||||
pHalData->LastHMEBoxNum = 0;
|
||||
|
||||
/* init dm default value */
|
||||
pHalData->bIQKInitialized = _FALSE;
|
||||
pHalData->bIQKInitialized = false;
|
||||
pHalData->odmpriv.rf_calibrate_info.tm_trigger = 0;/* for IQK */
|
||||
/* pdmpriv->binitialized = _FALSE;
|
||||
/* pdmpriv->binitialized = false;
|
||||
* pdmpriv->prv_traffic_idx = 3;
|
||||
* pdmpriv->initialize = 0; */
|
||||
pHalData->odmpriv.rf_calibrate_info.thermal_value_hp_index = 0;
|
||||
|
@ -2078,7 +2078,7 @@ static void rtl8188eu_init_default_value(_adapter *padapter)
|
|||
|
||||
static u8 rtl8188eu_ps_func(PADAPTER 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)
|
||||
|
|
|
@ -147,7 +147,7 @@ int recvbuf2recvframe(PADAPTER padapter, void *ptr)
|
|||
}
|
||||
|
||||
#ifdef CONFIG_RX_PACKET_APPEND_FCS
|
||||
if (check_fwstate(&padapter->mlmepriv, WIFI_MONITOR_STATE) == _FALSE)
|
||||
if (check_fwstate(&padapter->mlmepriv, WIFI_MONITOR_STATE) == false)
|
||||
if ((pattrib->pkt_rpt_type == NORMAL_RX) && (pHalData->ReceiveConfig & RCR_APPFCS))
|
||||
pattrib->pkt_len -= IEEE80211_FCS_LEN;
|
||||
#endif
|
||||
|
@ -234,7 +234,7 @@ _exit_recvbuf2recvframe:
|
|||
|
||||
void rtl8188eu_xmit_tasklet(void *priv)
|
||||
{
|
||||
int ret = _FALSE;
|
||||
int ret = false;
|
||||
_adapter *padapter = (_adapter *)priv;
|
||||
struct xmit_priv *pxmitpriv = &padapter->xmitpriv;
|
||||
|
||||
|
@ -244,12 +244,12 @@ void rtl8188eu_xmit_tasklet(void *priv)
|
|||
break;
|
||||
}
|
||||
|
||||
if (rtw_xmit_ac_blocked(padapter) == _TRUE)
|
||||
if (rtw_xmit_ac_blocked(padapter) == true)
|
||||
break;
|
||||
|
||||
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