Lines Matching refs:pBtCoexist

257 static u8 halbtcoutsrc_IsBtCoexistAvailable(PBTC_COEXIST pBtCoexist)  in halbtcoutsrc_IsBtCoexistAvailable()  argument
259 if (!pBtCoexist->bBinded || in halbtcoutsrc_IsBtCoexistAvailable()
260 NULL == pBtCoexist->Adapter) in halbtcoutsrc_IsBtCoexistAvailable()
273 static void halbtcoutsrc_EnterPwrLock(PBTC_COEXIST pBtCoexist) in halbtcoutsrc_EnterPwrLock() argument
275 struct dvobj_priv *dvobj = adapter_to_dvobj((PADAPTER)pBtCoexist->Adapter); in halbtcoutsrc_EnterPwrLock()
281 static void halbtcoutsrc_ExitPwrLock(PBTC_COEXIST pBtCoexist) in halbtcoutsrc_ExitPwrLock() argument
283 struct dvobj_priv *dvobj = adapter_to_dvobj((PADAPTER)pBtCoexist->Adapter); in halbtcoutsrc_ExitPwrLock()
289 static u8 halbtcoutsrc_IsHwMailboxExist(PBTC_COEXIST pBtCoexist) in halbtcoutsrc_IsHwMailboxExist() argument
291 if (pBtCoexist->board_info.bt_chip_type == BTC_CHIP_CSR_BC4 in halbtcoutsrc_IsHwMailboxExist()
292 || pBtCoexist->board_info.bt_chip_type == BTC_CHIP_CSR_BC8 in halbtcoutsrc_IsHwMailboxExist()
295 else if (IS_HARDWARE_TYPE_8812(pBtCoexist->Adapter)) in halbtcoutsrc_IsHwMailboxExist()
301 static u8 halbtcoutsrc_LeaveLps(PBTC_COEXIST pBtCoexist) in halbtcoutsrc_LeaveLps() argument
306 padapter = pBtCoexist->Adapter; in halbtcoutsrc_LeaveLps()
308 pBtCoexist->bt_info.bt_ctrl_lps = _TRUE; in halbtcoutsrc_LeaveLps()
309 pBtCoexist->bt_info.bt_lps_on = _FALSE; in halbtcoutsrc_LeaveLps()
314 void halbtcoutsrc_EnterLps(PBTC_COEXIST pBtCoexist) in halbtcoutsrc_EnterLps() argument
319 padapter = pBtCoexist->Adapter; in halbtcoutsrc_EnterLps()
321 if (pBtCoexist->bdontenterLPS == _FALSE) { in halbtcoutsrc_EnterLps()
322 pBtCoexist->bt_info.bt_ctrl_lps = _TRUE; in halbtcoutsrc_EnterLps()
323 pBtCoexist->bt_info.bt_lps_on = _TRUE; in halbtcoutsrc_EnterLps()
329 void halbtcoutsrc_NormalLps(PBTC_COEXIST pBtCoexist) in halbtcoutsrc_NormalLps() argument
335 padapter = pBtCoexist->Adapter; in halbtcoutsrc_NormalLps()
337 if (pBtCoexist->bt_info.bt_ctrl_lps) { in halbtcoutsrc_NormalLps()
338 pBtCoexist->bt_info.bt_lps_on = _FALSE; in halbtcoutsrc_NormalLps()
340 pBtCoexist->bt_info.bt_ctrl_lps = _FALSE; in halbtcoutsrc_NormalLps()
352 void halbtcoutsrc_Pre_NormalLps(PBTC_COEXIST pBtCoexist) in halbtcoutsrc_Pre_NormalLps() argument
356 padapter = pBtCoexist->Adapter; in halbtcoutsrc_Pre_NormalLps()
358 if (pBtCoexist->bt_info.bt_ctrl_lps) { in halbtcoutsrc_Pre_NormalLps()
359 pBtCoexist->bt_info.bt_lps_on = _FALSE; in halbtcoutsrc_Pre_NormalLps()
364 void halbtcoutsrc_Post_NormalLps(PBTC_COEXIST pBtCoexist) in halbtcoutsrc_Post_NormalLps() argument
366 if (pBtCoexist->bt_info.bt_ctrl_lps) in halbtcoutsrc_Post_NormalLps()
367 pBtCoexist->bt_info.bt_ctrl_lps = _FALSE; in halbtcoutsrc_Post_NormalLps()
374 void halbtcoutsrc_LeaveLowPower(PBTC_COEXIST pBtCoexist) in halbtcoutsrc_LeaveLowPower() argument
386 padapter = pBtCoexist->Adapter; in halbtcoutsrc_LeaveLowPower()
420 void halbtcoutsrc_NormalLowPower(PBTC_COEXIST pBtCoexist) in halbtcoutsrc_NormalLowPower() argument
428 padapter = pBtCoexist->Adapter; in halbtcoutsrc_NormalLowPower()
435 void halbtcoutsrc_DisableLowPower(PBTC_COEXIST pBtCoexist, u8 bLowPwrDisable) in halbtcoutsrc_DisableLowPower() argument
437 pBtCoexist->bt_info.bt_disable_low_pwr = bLowPwrDisable; in halbtcoutsrc_DisableLowPower()
439 halbtcoutsrc_LeaveLowPower(pBtCoexist); /* leave 32k low power. */ in halbtcoutsrc_DisableLowPower()
441 halbtcoutsrc_NormalLowPower(pBtCoexist); /* original 32k low power behavior. */ in halbtcoutsrc_DisableLowPower()
444 void halbtcoutsrc_AggregationCheck(PBTC_COEXIST pBtCoexist) in halbtcoutsrc_AggregationCheck() argument
451 padapter = pBtCoexist->Adapter; in halbtcoutsrc_AggregationCheck()
465 if (pBtCoexist->bt_info.reject_agg_pkt) { in halbtcoutsrc_AggregationCheck()
467 pBtCoexist->bt_info.pre_reject_agg_pkt = pBtCoexist->bt_info.reject_agg_pkt; in halbtcoutsrc_AggregationCheck()
469 if (pBtCoexist->bt_info.pre_reject_agg_pkt) { in halbtcoutsrc_AggregationCheck()
471 pBtCoexist->bt_info.pre_reject_agg_pkt = pBtCoexist->bt_info.reject_agg_pkt; in halbtcoutsrc_AggregationCheck()
474 if (pBtCoexist->bt_info.pre_bt_ctrl_agg_buf_size != in halbtcoutsrc_AggregationCheck()
475 pBtCoexist->bt_info.bt_ctrl_agg_buf_size) { in halbtcoutsrc_AggregationCheck()
477 pBtCoexist->bt_info.pre_bt_ctrl_agg_buf_size = pBtCoexist->bt_info.bt_ctrl_agg_buf_size; in halbtcoutsrc_AggregationCheck()
480 if (pBtCoexist->bt_info.bt_ctrl_agg_buf_size) { in halbtcoutsrc_AggregationCheck()
481 if (pBtCoexist->bt_info.pre_agg_buf_size != in halbtcoutsrc_AggregationCheck()
482 pBtCoexist->bt_info.agg_buf_size) in halbtcoutsrc_AggregationCheck()
484 pBtCoexist->bt_info.pre_agg_buf_size = pBtCoexist->bt_info.agg_buf_size; in halbtcoutsrc_AggregationCheck()
492 u8 halbtcoutsrc_is_autoload_fail(PBTC_COEXIST pBtCoexist) in halbtcoutsrc_is_autoload_fail() argument
497 padapter = pBtCoexist->Adapter; in halbtcoutsrc_is_autoload_fail()
503 u8 halbtcoutsrc_is_fw_ready(PBTC_COEXIST pBtCoexist) in halbtcoutsrc_is_fw_ready() argument
507 padapter = pBtCoexist->Adapter; in halbtcoutsrc_is_fw_ready()
576 u32 halbtcoutsrc_GetWifiLinkStatus(PBTC_COEXIST pBtCoexist) in halbtcoutsrc_GetWifiLinkStatus() argument
591 padapter = pBtCoexist->Adapter; in halbtcoutsrc_GetWifiLinkStatus()
612 struct btc_wifi_link_info halbtcoutsrc_getwifilinkinfo(PBTC_COEXIST pBtCoexist) in halbtcoutsrc_getwifilinkinfo() argument
623 adapter = (PADAPTER)pBtCoexist->Adapter; in halbtcoutsrc_getwifilinkinfo()
754 if (pBtCoexist->board_info.btdm_ant_num == 1) in halbtcoutsrc_getwifilinkinfo()
775 static u8 _btmpoper_cmd(PBTC_COEXIST pBtCoexist, u8 opcode, u8 opcodever, u8 *cmd, u8 size) in _btmpoper_cmd() argument
802 padapter = pBtCoexist->Adapter; in _btmpoper_cmd()
859 u32 halbtcoutsrc_GetBtPatchVer(PBTC_COEXIST pBtCoexist) in halbtcoutsrc_GetBtPatchVer() argument
861 if (pBtCoexist->bt_info.get_bt_fw_ver_cnt <= 5) { in halbtcoutsrc_GetBtPatchVer()
862 if (halbtcoutsrc_IsHwMailboxExist(pBtCoexist) == _TRUE) { in halbtcoutsrc_GetBtPatchVer()
868 ret = _btmpoper_cmd(pBtCoexist, BT_OP_GET_BT_VERSION, 0, NULL, 0); in halbtcoutsrc_GetBtPatchVer()
870 pBtCoexist->bt_info.bt_real_fw_ver = le32_to_cpu(*(u32 *)GLBtcBtMpRptRsp); in halbtcoutsrc_GetBtPatchVer()
871 pBtCoexist->bt_info.get_bt_fw_ver_cnt++; in halbtcoutsrc_GetBtPatchVer()
882 BT_SendEventExtBtCoexControl(pBtCoexist->Adapter, _FALSE, dataLen, &buf[0]); in halbtcoutsrc_GetBtPatchVer()
887 return pBtCoexist->bt_info.bt_real_fw_ver; in halbtcoutsrc_GetBtPatchVer()
897 PBTC_COEXIST pBtCoexist; in halbtcoutsrc_GetBtCoexSupportedFeature() local
901 pBtCoexist = (PBTC_COEXIST)pBtcContext; in halbtcoutsrc_GetBtCoexSupportedFeature()
903 if (halbtcoutsrc_IsHwMailboxExist(pBtCoexist) == _TRUE) { in halbtcoutsrc_GetBtCoexSupportedFeature()
912 status = _btmpoper_cmd(pBtCoexist, op_code, 0, buf, 0); in halbtcoutsrc_GetBtCoexSupportedFeature()
928 PBTC_COEXIST pBtCoexist; in halbtcoutsrc_GetBtCoexSupportedVersion() local
932 pBtCoexist = (PBTC_COEXIST)pBtcContext; in halbtcoutsrc_GetBtCoexSupportedVersion()
934 if (halbtcoutsrc_IsHwMailboxExist(pBtCoexist) == _TRUE) { in halbtcoutsrc_GetBtCoexSupportedVersion()
943 status = _btmpoper_cmd(pBtCoexist, op_code, 0, buf, 0); in halbtcoutsrc_GetBtCoexSupportedVersion()
959 PBTC_COEXIST pBtCoexist; in halbtcoutsrc_GetBtDeviceInfo() local
963 pBtCoexist = (PBTC_COEXIST)pBtcContext; in halbtcoutsrc_GetBtDeviceInfo()
965 if (halbtcoutsrc_IsHwMailboxExist(pBtCoexist) == _TRUE) { in halbtcoutsrc_GetBtDeviceInfo()
974 status = _btmpoper_cmd(pBtCoexist, op_code, 0, buf, 0); in halbtcoutsrc_GetBtDeviceInfo()
990 PBTC_COEXIST pBtCoexist; in halbtcoutsrc_GetBtForbiddenSlotVal() local
994 pBtCoexist = (PBTC_COEXIST)pBtcContext; in halbtcoutsrc_GetBtForbiddenSlotVal()
996 if (halbtcoutsrc_IsHwMailboxExist(pBtCoexist) == _TRUE) { in halbtcoutsrc_GetBtForbiddenSlotVal()
1005 status = _btmpoper_cmd(pBtCoexist, op_code, 0, buf, 0); in halbtcoutsrc_GetBtForbiddenSlotVal()
1041 struct btc_coexist *pBtCoexist = (struct btc_coexist *)pBtcContext; in halbtcoutsrc_GetPhydmVersion() local
1042 PADAPTER Adapter = pBtCoexist->Adapter; in halbtcoutsrc_GetPhydmVersion()
1100 PBTC_COEXIST pBtCoexist; in halbtcoutsrc_Get() local
1114 pBtCoexist = (PBTC_COEXIST)pBtcContext; in halbtcoutsrc_Get()
1115 if (!halbtcoutsrc_IsBtCoexistAvailable(pBtCoexist)) in halbtcoutsrc_Get()
1118 padapter = pBtCoexist->Adapter; in halbtcoutsrc_Get()
1143 *pu8 = halbtcoutsrc_is_fw_ready(pBtCoexist); in halbtcoutsrc_Get()
1288 *pU4Tmp = halbtcoutsrc_GetPhydmVersion(pBtCoexist); in halbtcoutsrc_Get()
1292 *pU4Tmp = halbtcoutsrc_GetWifiLinkStatus(pBtCoexist); in halbtcoutsrc_Get()
1295 *wifi_link_info = halbtcoutsrc_getwifilinkinfo(pBtCoexist); in halbtcoutsrc_Get()
1298 *pU4Tmp = halbtcoutsrc_GetBtPatchVer(pBtCoexist); in halbtcoutsrc_Get()
1306 *pU4Tmp = halbtcoutsrc_GetBtCoexSupportedVersion(pBtCoexist); in halbtcoutsrc_Get()
1309 *pU4Tmp = halbtcoutsrc_GetBtCoexSupportedFeature(pBtCoexist); in halbtcoutsrc_Get()
1313 *pU4Tmp = halbtcoutsrc_GetBtDeviceInfo(pBtCoexist); in halbtcoutsrc_Get()
1318 *pU4Tmp = halbtcoutsrc_GetBtForbiddenSlotVal(pBtCoexist); in halbtcoutsrc_Get()
1372 pBtCoexist->board_info.ant_type = (u8)BTC_ANT_TYPE_0; in halbtcoutsrc_Get()
1376 pBtCoexist->board_info.ant_type = (u8)BTC_ANT_TYPE_1; in halbtcoutsrc_Get()
1380 pBtCoexist->board_info.ant_type = (u8)BTC_ANT_TYPE_2; in halbtcoutsrc_Get()
1384 pBtCoexist->board_info.ant_type = (u8)BTC_ANT_TYPE_3; in halbtcoutsrc_Get()
1388 pBtCoexist->board_info.ant_type = (u8)BTC_ANT_TYPE_4; in halbtcoutsrc_Get()
1415 PBTC_COEXIST pBtCoexist; in halbtcoutsrc_LnaConstrainLvl() local
1418 pBtCoexist = (PBTC_COEXIST)pBtcContext; in halbtcoutsrc_LnaConstrainLvl()
1420 if (halbtcoutsrc_IsHwMailboxExist(pBtCoexist) == _TRUE) { in halbtcoutsrc_LnaConstrainLvl()
1426 ret = _btmpoper_cmd(pBtCoexist, BT_OP_SET_BT_LANCONSTRAIN_LEVEL, 0, lna_constrain_level, 1); in halbtcoutsrc_LnaConstrainLvl()
1446 PBTC_COEXIST pBtCoexist; in halbtcoutsrc_Set() local
1457 pBtCoexist = (PBTC_COEXIST)pBtcContext; in halbtcoutsrc_Set()
1458 if (!halbtcoutsrc_IsBtCoexistAvailable(pBtCoexist)) in halbtcoutsrc_Set()
1461 padapter = pBtCoexist->Adapter; in halbtcoutsrc_Set()
1472 pBtCoexist->bt_info.bt_disabled = *pu8; in halbtcoutsrc_Set()
1476 pBtCoexist->bt_info.bt_enable_disable_change = *pu8; in halbtcoutsrc_Set()
1480 pBtCoexist->bt_info.bt_busy = *pu8; in halbtcoutsrc_Set()
1484 pBtCoexist->bt_info.limited_dig = *pu8; in halbtcoutsrc_Set()
1488 pBtCoexist->bt_info.force_to_roam = *pu8; in halbtcoutsrc_Set()
1492 pBtCoexist->bt_info.reject_agg_pkt = *pu8; in halbtcoutsrc_Set()
1496 pBtCoexist->bt_info.bt_ctrl_agg_buf_size = *pu8; in halbtcoutsrc_Set()
1500 pBtCoexist->bt_info.increase_scan_dev_num = *pu8; in halbtcoutsrc_Set()
1504 pBtCoexist->bt_info.bt_tx_rx_mask = *pu8; in halbtcoutsrc_Set()
1508 pBtCoexist->bt_info.miracast_plus_bt = *pu8; in halbtcoutsrc_Set()
1513 pBtCoexist->bt_info.rssi_adjust_for_agc_table_on = *pU1Tmp; in halbtcoutsrc_Set()
1517 pBtCoexist->bt_info.agg_buf_size = *pU1Tmp; in halbtcoutsrc_Set()
1530 halbtcoutsrc_AggregationCheck(pBtCoexist); in halbtcoutsrc_Set()
1536 pBtCoexist->bt_info.rssi_adjust_for_1ant_coex_type = *pU1Tmp; in halbtcoutsrc_Set()
1540 pBtCoexist->bt_info.lps_val = *pU1Tmp; in halbtcoutsrc_Set()
1544 pBtCoexist->bt_info.rpwm_val = *pU1Tmp; in halbtcoutsrc_Set()
1549 result = halbtcoutsrc_LeaveLps(pBtCoexist); in halbtcoutsrc_Set()
1553 halbtcoutsrc_EnterLps(pBtCoexist); in halbtcoutsrc_Set()
1557 halbtcoutsrc_NormalLps(pBtCoexist); in halbtcoutsrc_Set()
1561 halbtcoutsrc_Pre_NormalLps(pBtCoexist); in halbtcoutsrc_Set()
1565 halbtcoutsrc_Post_NormalLps(pBtCoexist); in halbtcoutsrc_Set()
1569 halbtcoutsrc_DisableLowPower(pBtCoexist, *pu8); in halbtcoutsrc_Set()
1647 halbtcoutsrc_LnaConstrainLvl(pBtCoexist, pu8); in halbtcoutsrc_Set()
1650 halbtcoutsrc_SetBtGoldenRxRange(pBtCoexist, (*pU2Tmp & 0xff00) >> 8, (*pU2Tmp & 0xff)); in halbtcoutsrc_Set()
1653 _rtw_memset(&pBtCoexist->coex_dm, 0x00, sizeof(pBtCoexist->coex_dm)); in halbtcoutsrc_Set()
1654 _rtw_memset(&pBtCoexist->coex_sta, 0x00, sizeof(pBtCoexist->coex_sta)); in halbtcoutsrc_Set()
1656 switch(pBtCoexist->chip_type) { in halbtcoutsrc_Set()
1659 _rtw_memset(&pBtCoexist->coex_dm_8822b_1ant, 0x00, sizeof(pBtCoexist->coex_dm_8822b_1ant)); in halbtcoutsrc_Set()
1660 _rtw_memset(&pBtCoexist->coex_dm_8822b_2ant, 0x00, sizeof(pBtCoexist->coex_dm_8822b_2ant)); in halbtcoutsrc_Set()
1661 _rtw_memset(&pBtCoexist->coex_sta_8822b_1ant, 0x00, sizeof(pBtCoexist->coex_sta_8822b_1ant)); in halbtcoutsrc_Set()
1662 _rtw_memset(&pBtCoexist->coex_sta_8822b_2ant, 0x00, sizeof(pBtCoexist->coex_sta_8822b_2ant)); in halbtcoutsrc_Set()
1667 _rtw_memset(&pBtCoexist->coex_dm_8821c_1ant, 0x00, sizeof(pBtCoexist->coex_dm_8821c_1ant)); in halbtcoutsrc_Set()
1668 _rtw_memset(&pBtCoexist->coex_dm_8821c_2ant, 0x00, sizeof(pBtCoexist->coex_dm_8821c_2ant)); in halbtcoutsrc_Set()
1669 _rtw_memset(&pBtCoexist->coex_sta_8821c_1ant, 0x00, sizeof(pBtCoexist->coex_sta_8821c_1ant)); in halbtcoutsrc_Set()
1670 _rtw_memset(&pBtCoexist->coex_sta_8821c_2ant, 0x00, sizeof(pBtCoexist->coex_sta_8821c_2ant)); in halbtcoutsrc_Set()
1675 _rtw_memset(&pBtCoexist->coex_dm_8723d_1ant, 0x00, sizeof(pBtCoexist->coex_dm_8723d_1ant)); in halbtcoutsrc_Set()
1676 _rtw_memset(&pBtCoexist->coex_dm_8723d_2ant, 0x00, sizeof(pBtCoexist->coex_dm_8723d_2ant)); in halbtcoutsrc_Set()
1677 _rtw_memset(&pBtCoexist->coex_sta_8723d_1ant, 0x00, sizeof(pBtCoexist->coex_sta_8723d_1ant)); in halbtcoutsrc_Set()
1678 _rtw_memset(&pBtCoexist->coex_sta_8723d_2ant, 0x00, sizeof(pBtCoexist->coex_sta_8723d_2ant)); in halbtcoutsrc_Set()
1692 u8 halbtcoutsrc_UnderIps(PBTC_COEXIST pBtCoexist) in halbtcoutsrc_UnderIps() argument
1698 padapter = pBtCoexist->Adapter; in halbtcoutsrc_UnderIps()
1717 u8 halbtcoutsrc_UnderLps(PBTC_COEXIST pBtCoexist) in halbtcoutsrc_UnderLps() argument
1722 u8 halbtcoutsrc_Under32K(PBTC_COEXIST pBtCoexist) in halbtcoutsrc_Under32K() argument
1728 void halbtcoutsrc_DisplayCoexStatistics(PBTC_COEXIST pBtCoexist) in halbtcoutsrc_DisplayCoexStatistics() argument
1731 PADAPTER padapter = (PADAPTER)pBtCoexist->Adapter; in halbtcoutsrc_DisplayCoexStatistics()
1734 u8 *cliBuf = pBtCoexist->cliBuf; in halbtcoutsrc_DisplayCoexStatistics()
1864 pBtCoexist->statistics.cntPeriodical, pBtCoexist->statistics.cntDbgCtrl); in halbtcoutsrc_DisplayCoexStatistics()
1867pBtCoexist->statistics.cntPowerOn, pBtCoexist->statistics.cntInitHwConfig, pBtCoexist->statistics.… in halbtcoutsrc_DisplayCoexStatistics()
1868 pBtCoexist->statistics.cntRfStatusNotify); in halbtcoutsrc_DisplayCoexStatistics()
1871 pBtCoexist->statistics.cntIpsNotify, pBtCoexist->statistics.cntLpsNotify, in halbtcoutsrc_DisplayCoexStatistics()
1872 pBtCoexist->statistics.cntScanNotify, pBtCoexist->statistics.cntConnectNotify, in halbtcoutsrc_DisplayCoexStatistics()
1873 pBtCoexist->statistics.cntMediaStatusNotify); in halbtcoutsrc_DisplayCoexStatistics()
1876 pBtCoexist->statistics.cntSpecialPacketNotify, pBtCoexist->statistics.cntBtInfoNotify, in halbtcoutsrc_DisplayCoexStatistics()
1877 pBtCoexist->statistics.cntBind); in halbtcoutsrc_DisplayCoexStatistics()
1880 PADAPTER padapter = pBtCoexist->Adapter; in halbtcoutsrc_DisplayCoexStatistics()
1882 u8 *cliBuf = pBtCoexist->cli_buf; in halbtcoutsrc_DisplayCoexStatistics()
1894 void halbtcoutsrc_DisplayBtLinkInfo(PBTC_COEXIST pBtCoexist) in halbtcoutsrc_DisplayBtLinkInfo() argument
1897 PADAPTER padapter = (PADAPTER)pBtCoexist->Adapter; in halbtcoutsrc_DisplayBtLinkInfo()
1899 u8 *cliBuf = pBtCoexist->cliBuf; in halbtcoutsrc_DisplayBtLinkInfo()
1903 if (pBtCoexist->stack_info.profile_notified) { in halbtcoutsrc_DisplayBtLinkInfo()
1922 void halbtcoutsrc_DisplayWifiStatus(PBTC_COEXIST pBtCoexist) in halbtcoutsrc_DisplayWifiStatus() argument
1924 PADAPTER padapter = pBtCoexist->Adapter; in halbtcoutsrc_DisplayWifiStatus()
1926 u8 *cliBuf = pBtCoexist->cli_buf; in halbtcoutsrc_DisplayWifiStatus()
1938 wifi_link_info = halbtcoutsrc_getwifilinkinfo(pBtCoexist); in halbtcoutsrc_DisplayWifiStatus()
2025 wifiLinkStatus = halbtcoutsrc_GetWifiLinkStatus(pBtCoexist); in halbtcoutsrc_DisplayWifiStatus()
2032 pBtCoexist->btc_get(pBtCoexist, BTC_GET_BL_WIFI_SCAN, &bScan); in halbtcoutsrc_DisplayWifiStatus()
2033 pBtCoexist->btc_get(pBtCoexist, BTC_GET_BL_WIFI_LINK, &bLink); in halbtcoutsrc_DisplayWifiStatus()
2034 pBtCoexist->btc_get(pBtCoexist, BTC_GET_BL_WIFI_ROAM, &bRoam); in halbtcoutsrc_DisplayWifiStatus()
2039 pBtCoexist->btc_get(pBtCoexist, BTC_GET_U4_WIFI_IQK_TOTAL, &iqk_cnt_total); in halbtcoutsrc_DisplayWifiStatus()
2040 pBtCoexist->btc_get(pBtCoexist, BTC_GET_U4_WIFI_IQK_OK, &iqk_cnt_ok); in halbtcoutsrc_DisplayWifiStatus()
2041 pBtCoexist->btc_get(pBtCoexist, BTC_GET_U4_WIFI_IQK_FAIL, &iqk_cnt_fail); in halbtcoutsrc_DisplayWifiStatus()
2044 …((halbtcoutsrc_is_autoload_fail(pBtCoexist) == _TRUE) ? "fail":"ok"), ((halbtcoutsrc_is_fw_ready(p… in halbtcoutsrc_DisplayWifiStatus()
2052 pBtCoexist->btc_get(pBtCoexist, BTC_GET_S4_WIFI_RSSI, &wifiRssi); in halbtcoutsrc_DisplayWifiStatus()
2053 pBtCoexist->btc_get(pBtCoexist, BTC_GET_U2_BEACON_PERIOD, &wifiBcnInterval); in halbtcoutsrc_DisplayWifiStatus()
2061 pBtCoexist->btc_get(pBtCoexist, BTC_GET_U4_WIFI_BW, &wifiBw); in halbtcoutsrc_DisplayWifiStatus()
2062 pBtCoexist->btc_get(pBtCoexist, BTC_GET_BL_WIFI_BUSY, &bWifiBusy); in halbtcoutsrc_DisplayWifiStatus()
2063 pBtCoexist->btc_get(pBtCoexist, BTC_GET_U4_WIFI_TRAFFIC_DIRECTION, &wifiTrafficDir); in halbtcoutsrc_DisplayWifiStatus()
2064 pBtCoexist->btc_get(pBtCoexist, BTC_GET_BL_WIFI_UNDER_B_MODE, &bWifiUnderBMode); in halbtcoutsrc_DisplayWifiStatus()
2065 pBtCoexist->btc_get(pBtCoexist, BTC_GET_U1_AP_NUM, &nScanAPNum); in halbtcoutsrc_DisplayWifiStatus()
2074 ((halbtcoutsrc_UnderIps(pBtCoexist) == _TRUE) ? "IPS ON" : "IPS OFF"), in halbtcoutsrc_DisplayWifiStatus()
2075 ((halbtcoutsrc_UnderLps(pBtCoexist) == _TRUE) ? ", LPS ON" : ", LPS OFF"), in halbtcoutsrc_DisplayWifiStatus()
2076 ((halbtcoutsrc_Under32K(pBtCoexist) == _TRUE) ? ", 32k" : "")); in halbtcoutsrc_DisplayWifiStatus()
2080 pBtCoexist->pwrModeVal[0], pBtCoexist->pwrModeVal[1], in halbtcoutsrc_DisplayWifiStatus()
2081 pBtCoexist->pwrModeVal[2], pBtCoexist->pwrModeVal[3], in halbtcoutsrc_DisplayWifiStatus()
2082 pBtCoexist->pwrModeVal[4], pBtCoexist->pwrModeVal[5], in halbtcoutsrc_DisplayWifiStatus()
2083 pBtCoexist->bt_info.lps_val, in halbtcoutsrc_DisplayWifiStatus()
2084 pBtCoexist->bt_info.rpwm_val); in halbtcoutsrc_DisplayWifiStatus()
2090 PBTC_COEXIST pBtCoexist; in halbtcoutsrc_DisplayDbgMsg() local
2093 pBtCoexist = (PBTC_COEXIST)pBtcContext; in halbtcoutsrc_DisplayDbgMsg()
2096 halbtcoutsrc_DisplayCoexStatistics(pBtCoexist); in halbtcoutsrc_DisplayDbgMsg()
2099 halbtcoutsrc_DisplayBtLinkInfo(pBtCoexist); in halbtcoutsrc_DisplayDbgMsg()
2102 halbtcoutsrc_DisplayWifiStatus(pBtCoexist); in halbtcoutsrc_DisplayDbgMsg()
2114 PBTC_COEXIST pBtCoexist; in halbtcoutsrc_Read1Byte() local
2118 pBtCoexist = (PBTC_COEXIST)pBtcContext; in halbtcoutsrc_Read1Byte()
2119 padapter = pBtCoexist->Adapter; in halbtcoutsrc_Read1Byte()
2126 PBTC_COEXIST pBtCoexist; in halbtcoutsrc_Read2Byte() local
2130 pBtCoexist = (PBTC_COEXIST)pBtcContext; in halbtcoutsrc_Read2Byte()
2131 padapter = pBtCoexist->Adapter; in halbtcoutsrc_Read2Byte()
2138 PBTC_COEXIST pBtCoexist; in halbtcoutsrc_Read4Byte() local
2142 pBtCoexist = (PBTC_COEXIST)pBtcContext; in halbtcoutsrc_Read4Byte()
2143 padapter = pBtCoexist->Adapter; in halbtcoutsrc_Read4Byte()
2150 PBTC_COEXIST pBtCoexist; in halbtcoutsrc_Write1Byte() local
2154 pBtCoexist = (PBTC_COEXIST)pBtcContext; in halbtcoutsrc_Write1Byte()
2155 padapter = pBtCoexist->Adapter; in halbtcoutsrc_Write1Byte()
2162 PBTC_COEXIST pBtCoexist; in halbtcoutsrc_BitMaskWrite1Byte() local
2168 pBtCoexist = (PBTC_COEXIST)pBtcContext; in halbtcoutsrc_BitMaskWrite1Byte()
2169 padapter = pBtCoexist->Adapter; in halbtcoutsrc_BitMaskWrite1Byte()
2190 PBTC_COEXIST pBtCoexist; in halbtcoutsrc_Write2Byte() local
2194 pBtCoexist = (PBTC_COEXIST)pBtcContext; in halbtcoutsrc_Write2Byte()
2195 padapter = pBtCoexist->Adapter; in halbtcoutsrc_Write2Byte()
2202 PBTC_COEXIST pBtCoexist; in halbtcoutsrc_Write4Byte() local
2206 pBtCoexist = (PBTC_COEXIST)pBtcContext; in halbtcoutsrc_Write4Byte()
2207 padapter = pBtCoexist->Adapter; in halbtcoutsrc_Write4Byte()
2214 PBTC_COEXIST pBtCoexist = (PBTC_COEXIST)pBtcContext; in halbtcoutsrc_WriteLocalReg1Byte() local
2215 PADAPTER Adapter = pBtCoexist->Adapter; in halbtcoutsrc_WriteLocalReg1Byte()
2217 if (BTC_INTF_SDIO == pBtCoexist->chip_interface) in halbtcoutsrc_WriteLocalReg1Byte()
2444 PBTC_COEXIST pBtCoexist; in halbtcoutsrc_SetBbReg() local
2448 pBtCoexist = (PBTC_COEXIST)pBtcContext; in halbtcoutsrc_SetBbReg()
2449 padapter = pBtCoexist->Adapter; in halbtcoutsrc_SetBbReg()
2457 PBTC_COEXIST pBtCoexist; in halbtcoutsrc_GetBbReg() local
2461 pBtCoexist = (PBTC_COEXIST)pBtcContext; in halbtcoutsrc_GetBbReg()
2462 padapter = pBtCoexist->Adapter; in halbtcoutsrc_GetBbReg()
2469 PBTC_COEXIST pBtCoexist; in halbtcoutsrc_SetRfReg() local
2473 pBtCoexist = (PBTC_COEXIST)pBtcContext; in halbtcoutsrc_SetRfReg()
2474 padapter = pBtCoexist->Adapter; in halbtcoutsrc_SetRfReg()
2481 PBTC_COEXIST pBtCoexist; in halbtcoutsrc_GetRfReg() local
2485 pBtCoexist = (PBTC_COEXIST)pBtcContext; in halbtcoutsrc_GetRfReg()
2486 padapter = pBtCoexist->Adapter; in halbtcoutsrc_GetRfReg()
2493 PBTC_COEXIST pBtCoexist; in halbtcoutsrc_SetBtReg() local
2496 pBtCoexist = (PBTC_COEXIST)pBtcContext; in halbtcoutsrc_SetBtReg()
2498 if (halbtcoutsrc_IsHwMailboxExist(pBtCoexist) == _TRUE) { in halbtcoutsrc_SetBtReg()
2508 status = _btmpoper_cmd(pBtCoexist, op_code, 0, (u8 *)&Data, 3); in halbtcoutsrc_SetBtReg()
2515 status = _btmpoper_cmd(pBtCoexist, op_code, 0, buf, 3); in halbtcoutsrc_SetBtReg()
2531 PBTC_COEXIST pBtCoexist = (PBTC_COEXIST)pBtcContext; in halbtcoutsrc_SetBtAntDetection()
2532 PADAPTER Adapter = pBtCoexist->Adapter; in halbtcoutsrc_SetBtAntDetection()
2548 PBTC_COEXIST pBtCoexist; in halbtcoutsrc_SetBtTRXMASK() local
2553 pBtCoexist = (PBTC_COEXIST)pBtcContext; in halbtcoutsrc_SetBtTRXMASK()
2555 if (IS_HARDWARE_TYPE_8723B(pBtCoexist->Adapter) || IS_HARDWARE_TYPE_8723D(pBtCoexist->Adapter) in halbtcoutsrc_SetBtTRXMASK()
2556 || IS_HARDWARE_TYPE_8821C(pBtCoexist->Adapter)) { in halbtcoutsrc_SetBtTRXMASK()
2558 if (halbtcoutsrc_IsHwMailboxExist(pBtCoexist) == _TRUE) { in halbtcoutsrc_SetBtTRXMASK()
2565 if (IS_HARDWARE_TYPE_8723B(pBtCoexist->Adapter)) { in halbtcoutsrc_SetBtTRXMASK()
2577 status = _btmpoper_cmd(pBtCoexist, op_code, 0, buf, len); in halbtcoutsrc_SetBtTRXMASK()
2594 PBTC_COEXIST pBtCoexist; in halbtcoutsrc_GetBtReg_with_status() local
2597 pBtCoexist = (PBTC_COEXIST)pBtcContext; in halbtcoutsrc_GetBtReg_with_status()
2599 if (halbtcoutsrc_IsHwMailboxExist(pBtCoexist) == _TRUE) { in halbtcoutsrc_GetBtReg_with_status()
2611 status = _btmpoper_cmd(pBtCoexist, op_code, 0, buf, 3); in halbtcoutsrc_GetBtReg_with_status()
2634 PBTC_COEXIST pBtCoexist; in halbtcoutsrc_setbttestmode() local
2637 pBtCoexist = (PBTC_COEXIST)pBtcContext; in halbtcoutsrc_setbttestmode()
2639 if (halbtcoutsrc_IsHwMailboxExist(pBtCoexist) == _TRUE) { in halbtcoutsrc_setbttestmode()
2648 status = _btmpoper_cmd(pBtCoexist, op_code, 0, (u8 *)&Type, 3); in halbtcoutsrc_setbttestmode()
2663 PBTC_COEXIST pBtCoexist; in halbtcoutsrc_FillH2cCmd() local
2668 pBtCoexist = (PBTC_COEXIST)pBtcContext; in halbtcoutsrc_FillH2cCmd()
2669 padapter = pBtCoexist->Adapter; in halbtcoutsrc_FillH2cCmd()
2757 COL_H2C_STATUS halbtcoutsrc_CoexH2cProcess(void *pBtCoexist, in halbtcoutsrc_CoexH2cProcess() argument
2760 PADAPTER Adapter = ((struct btc_coexist *)pBtCoexist)->Adapter; in halbtcoutsrc_CoexH2cProcess()
2808 struct btc_coexist *pBtCoexist = (struct btc_coexist *)pBtcContext; in halbtcoutsrc_GetAntDetValFromBt()
2809 PADAPTER Adapter = pBtCoexist->Adapter; in halbtcoutsrc_GetAntDetValFromBt()
2826 PBTC_COEXIST pBtCoexist; in halbtcoutsrc_GetBleScanTypeFromBt() local
2830 pBtCoexist = (PBTC_COEXIST)pBtcContext; in halbtcoutsrc_GetBleScanTypeFromBt()
2832 if (halbtcoutsrc_IsHwMailboxExist(pBtCoexist) == _TRUE) { in halbtcoutsrc_GetBleScanTypeFromBt()
2842 status = _btmpoper_cmd(pBtCoexist, op_code, 0, buf, 0); in halbtcoutsrc_GetBleScanTypeFromBt()
2858 PBTC_COEXIST pBtCoexist; in halbtcoutsrc_GetBleScanParaFromBt() local
2862 pBtCoexist = (PBTC_COEXIST)pBtcContext; in halbtcoutsrc_GetBleScanParaFromBt()
2864 if (halbtcoutsrc_IsHwMailboxExist(pBtCoexist) == _TRUE) { in halbtcoutsrc_GetBleScanParaFromBt()
2875 status = _btmpoper_cmd(pBtCoexist, op_code, 0, buf, 1); in halbtcoutsrc_GetBleScanParaFromBt()
2891 struct btc_coexist *pBtCoexist = (struct btc_coexist *)pBtcContext; in halbtcoutsrc_GetBtAFHMapFromBt() local
2901 if (halbtcoutsrc_IsHwMailboxExist(pBtCoexist) == _FALSE) in halbtcoutsrc_GetBtAFHMapFromBt()
2910 status = _btmpoper_cmd(pBtCoexist, op_code, 0, buf, 0); in halbtcoutsrc_GetBtAFHMapFromBt()
2919 status = _btmpoper_cmd(pBtCoexist, op_code, 0, buf, 0); in halbtcoutsrc_GetBtAFHMapFromBt()
2928 status = _btmpoper_cmd(pBtCoexist, op_code, 0, buf, 0); in halbtcoutsrc_GetBtAFHMapFromBt()
2945 struct btc_coexist *pBtCoexist=(struct btc_coexist *)pBtcContext; in halbtcoutsrc_SetTimer() local
2950 pBtCoexist->coex_sta.cnt_timer[type] = val; in halbtcoutsrc_SetTimer()
2970 struct btc_coexist *pBtCoexist = (struct btc_coexist *)pBtcContext; in halbtcoutsrc_phydm_modify_RA_PCR_threshold() local
2974 phydm_modify_RA_PCR_threshold(pBtCoexist->odm_priv, RA_offset_direction, RA_threshold_offset); in halbtcoutsrc_phydm_modify_RA_PCR_threshold()
2980 struct btc_coexist *pBtCoexist = (struct btc_coexist *)pBtcContext; in halbtcoutsrc_phydm_query_PHY_counter() local
2984 …return phydm_cmn_info_query((struct dm_struct *)pBtCoexist->odm_priv, (enum phydm_info_query)info_… in halbtcoutsrc_phydm_query_PHY_counter()
2992 struct btc_coexist *pBtCoexist = (struct btc_coexist *)pBtcContext; in halbtcoutsrc_reduce_wl_tx_power() local
2993 HAL_DATA_TYPE *pHalData = GET_HAL_DATA((PADAPTER)pBtCoexist->Adapter); in halbtcoutsrc_reduce_wl_tx_power()
2996 if (IS_HARDWARE_TYPE_8822C(pBtCoexist->Adapter) || IS_HARDWARE_TYPE_8723F(pBtCoexist->Adapter)) in halbtcoutsrc_reduce_wl_tx_power()
2997 rtw_hal_set_tx_power_level(pBtCoexist->Adapter, pHalData->current_channel); in halbtcoutsrc_reduce_wl_tx_power()
3228 PBTC_COEXIST pBtCoexist = &GLBtCoexist; in EXhalbtcoutsrc_BindBtCoexWithAdapter() local
3231 if (pBtCoexist->bBinded) in EXhalbtcoutsrc_BindBtCoexWithAdapter()
3234 pBtCoexist->bBinded = _TRUE; in EXhalbtcoutsrc_BindBtCoexWithAdapter()
3236 pBtCoexist->statistics.cnt_bind++; in EXhalbtcoutsrc_BindBtCoexWithAdapter()
3238 pBtCoexist->Adapter = padapter; in EXhalbtcoutsrc_BindBtCoexWithAdapter()
3239 pBtCoexist->odm_priv = (void *)&(pHalData->odmpriv); in EXhalbtcoutsrc_BindBtCoexWithAdapter()
3241 pBtCoexist->stack_info.profile_notified = _FALSE; in EXhalbtcoutsrc_BindBtCoexWithAdapter()
3243 pBtCoexist->bt_info.bt_ctrl_agg_buf_size = _FALSE; in EXhalbtcoutsrc_BindBtCoexWithAdapter()
3244 pBtCoexist->bt_info.agg_buf_size = 5; in EXhalbtcoutsrc_BindBtCoexWithAdapter()
3246 pBtCoexist->bt_info.increase_scan_dev_num = _FALSE; in EXhalbtcoutsrc_BindBtCoexWithAdapter()
3247 pBtCoexist->bt_info.miracast_plus_bt = _FALSE; in EXhalbtcoutsrc_BindBtCoexWithAdapter()
3252 pBtCoexist->chip_type = BTC_CHIP_RTL8822C; in EXhalbtcoutsrc_BindBtCoexWithAdapter()
3253 pBtCoexist->chip_para = &btc_chip_para_8822c; in EXhalbtcoutsrc_BindBtCoexWithAdapter()
3258 pBtCoexist->chip_type = BTC_CHIP_RTL8725A; in EXhalbtcoutsrc_BindBtCoexWithAdapter()
3259 pBtCoexist->chip_para = &btc_chip_para_8192f; in EXhalbtcoutsrc_BindBtCoexWithAdapter()
3265 pBtCoexist->chip_type = BTC_CHIP_RTL8723F; in EXhalbtcoutsrc_BindBtCoexWithAdapter()
3266 pBtCoexist->chip_para = &btc_chip_para_8723f; in EXhalbtcoutsrc_BindBtCoexWithAdapter()
3271 pBtCoexist->chip_type = BTC_CHIP_UNDEF; in EXhalbtcoutsrc_BindBtCoexWithAdapter()
3272 pBtCoexist->chip_para = NULL; in EXhalbtcoutsrc_BindBtCoexWithAdapter()
3280 PBTC_COEXIST pBtCoexist = &GLBtCoexist; in EXhalbtcoutsrc_AntInfoSetting() local
3291 pBtCoexist->board_info.customerID = RT_CID_DEFAULT; in EXhalbtcoutsrc_AntInfoSetting()
3292 pBtCoexist->board_info.customer_id = RT_CID_DEFAULT; in EXhalbtcoutsrc_AntInfoSetting()
3295 pBtCoexist->board_info.btdm_ant_pos = BTC_ANTENNA_AT_MAIN_PORT; in EXhalbtcoutsrc_AntInfoSetting()
3297 pBtCoexist->board_info.btdm_ant_det_finish = _FALSE; in EXhalbtcoutsrc_AntInfoSetting()
3298 pBtCoexist->board_info.btdm_ant_num_by_ant_det = 1; in EXhalbtcoutsrc_AntInfoSetting()
3300 pBtCoexist->board_info.tfbga_package = rtw_btcoex_is_tfbga_package_type((PADAPTER)padapter); in EXhalbtcoutsrc_AntInfoSetting()
3302 pBtCoexist->board_info.rfe_type = rtw_btcoex_get_pg_rfe_type((PADAPTER)padapter); in EXhalbtcoutsrc_AntInfoSetting()
3304 pBtCoexist->board_info.ant_div_cfg = rtw_btcoex_get_ant_div_cfg((PADAPTER)padapter); in EXhalbtcoutsrc_AntInfoSetting()
3306 pBtCoexist->board_info.ant_distance = 10; in EXhalbtcoutsrc_AntInfoSetting()
3311 PBTC_COEXIST pBtCoexist = &GLBtCoexist; in EXhalbtcoutsrc_InitlizeVariables() local
3320 pBtCoexist->chip_interface = BTC_INTF_PCI; in EXhalbtcoutsrc_InitlizeVariables()
3322 pBtCoexist->chip_interface = BTC_INTF_USB; in EXhalbtcoutsrc_InitlizeVariables()
3324 pBtCoexist->chip_interface = BTC_INTF_SDIO; in EXhalbtcoutsrc_InitlizeVariables()
3326 pBtCoexist->chip_interface = BTC_INTF_UNKNOWN; in EXhalbtcoutsrc_InitlizeVariables()
3331 pBtCoexist->btc_read_1byte = halbtcoutsrc_Read1Byte; in EXhalbtcoutsrc_InitlizeVariables()
3332 pBtCoexist->btc_write_1byte = halbtcoutsrc_Write1Byte; in EXhalbtcoutsrc_InitlizeVariables()
3333 pBtCoexist->btc_write_1byte_bitmask = halbtcoutsrc_BitMaskWrite1Byte; in EXhalbtcoutsrc_InitlizeVariables()
3334 pBtCoexist->btc_read_2byte = halbtcoutsrc_Read2Byte; in EXhalbtcoutsrc_InitlizeVariables()
3335 pBtCoexist->btc_write_2byte = halbtcoutsrc_Write2Byte; in EXhalbtcoutsrc_InitlizeVariables()
3336 pBtCoexist->btc_read_4byte = halbtcoutsrc_Read4Byte; in EXhalbtcoutsrc_InitlizeVariables()
3337 pBtCoexist->btc_write_4byte = halbtcoutsrc_Write4Byte; in EXhalbtcoutsrc_InitlizeVariables()
3338 pBtCoexist->btc_write_local_reg_1byte = halbtcoutsrc_WriteLocalReg1Byte; in EXhalbtcoutsrc_InitlizeVariables()
3340 pBtCoexist->btc_read_linderct = halbtcoutsrc_ReadLIndirectReg; in EXhalbtcoutsrc_InitlizeVariables()
3341 pBtCoexist->btc_write_linderct = halbtcoutsrc_WriteLIndirectReg; in EXhalbtcoutsrc_InitlizeVariables()
3343 pBtCoexist->btc_read_scbd = halbtcoutsrc_Read_scbd; in EXhalbtcoutsrc_InitlizeVariables()
3344 pBtCoexist->btc_read_scbd_32bit = halbtcoutsrc_Read_scbd_32bit; in EXhalbtcoutsrc_InitlizeVariables()
3345 pBtCoexist->btc_write_scbd = halbtcoutsrc_Write_scbd; in EXhalbtcoutsrc_InitlizeVariables()
3346 pBtCoexist->btc_write_scbd_32bit = halbtcoutsrc_Write_scbd_32bit; in EXhalbtcoutsrc_InitlizeVariables()
3348 pBtCoexist->btc_set_bb_reg = halbtcoutsrc_SetBbReg; in EXhalbtcoutsrc_InitlizeVariables()
3349 pBtCoexist->btc_get_bb_reg = halbtcoutsrc_GetBbReg; in EXhalbtcoutsrc_InitlizeVariables()
3351 pBtCoexist->btc_set_rf_reg = halbtcoutsrc_SetRfReg; in EXhalbtcoutsrc_InitlizeVariables()
3352 pBtCoexist->btc_get_rf_reg = halbtcoutsrc_GetRfReg; in EXhalbtcoutsrc_InitlizeVariables()
3354 pBtCoexist->btc_fill_h2c = halbtcoutsrc_FillH2cCmd; in EXhalbtcoutsrc_InitlizeVariables()
3355 pBtCoexist->btc_disp_dbg_msg = halbtcoutsrc_DisplayDbgMsg; in EXhalbtcoutsrc_InitlizeVariables()
3357 pBtCoexist->btc_get = halbtcoutsrc_Get; in EXhalbtcoutsrc_InitlizeVariables()
3358 pBtCoexist->btc_set = halbtcoutsrc_Set; in EXhalbtcoutsrc_InitlizeVariables()
3359 pBtCoexist->btc_get_bt_reg = halbtcoutsrc_GetBtReg; in EXhalbtcoutsrc_InitlizeVariables()
3360 pBtCoexist->btc_set_bt_reg = halbtcoutsrc_SetBtReg; in EXhalbtcoutsrc_InitlizeVariables()
3361 pBtCoexist->btc_set_bt_ant_detection = halbtcoutsrc_SetBtAntDetection; in EXhalbtcoutsrc_InitlizeVariables()
3362 pBtCoexist->btc_set_bt_trx_mask = halbtcoutsrc_SetBtTRXMASK; in EXhalbtcoutsrc_InitlizeVariables()
3363 pBtCoexist->btc_coex_h2c_process = halbtcoutsrc_CoexH2cProcess; in EXhalbtcoutsrc_InitlizeVariables()
3364 pBtCoexist->btc_get_bt_coex_supported_feature = halbtcoutsrc_GetBtCoexSupportedFeature; in EXhalbtcoutsrc_InitlizeVariables()
3365 pBtCoexist->btc_get_bt_coex_supported_version= halbtcoutsrc_GetBtCoexSupportedVersion; in EXhalbtcoutsrc_InitlizeVariables()
3366 pBtCoexist->btc_get_ant_det_val_from_bt = halbtcoutsrc_GetAntDetValFromBt; in EXhalbtcoutsrc_InitlizeVariables()
3367 pBtCoexist->btc_get_ble_scan_type_from_bt = halbtcoutsrc_GetBleScanTypeFromBt; in EXhalbtcoutsrc_InitlizeVariables()
3368 pBtCoexist->btc_get_ble_scan_para_from_bt = halbtcoutsrc_GetBleScanParaFromBt; in EXhalbtcoutsrc_InitlizeVariables()
3369 pBtCoexist->btc_get_bt_afh_map_from_bt = halbtcoutsrc_GetBtAFHMapFromBt; in EXhalbtcoutsrc_InitlizeVariables()
3370 pBtCoexist->btc_get_bt_phydm_version = halbtcoutsrc_GetPhydmVersion; in EXhalbtcoutsrc_InitlizeVariables()
3371 pBtCoexist->btc_set_timer = halbtcoutsrc_SetTimer; in EXhalbtcoutsrc_InitlizeVariables()
3372 pBtCoexist->btc_set_atomic= halbtcoutsrc_SetAtomic; in EXhalbtcoutsrc_InitlizeVariables()
3373 pBtCoexist->btc_phydm_modify_RA_PCR_threshold = halbtcoutsrc_phydm_modify_RA_PCR_threshold; in EXhalbtcoutsrc_InitlizeVariables()
3374 pBtCoexist->btc_phydm_query_PHY_counter = halbtcoutsrc_phydm_query_PHY_counter; in EXhalbtcoutsrc_InitlizeVariables()
3375 pBtCoexist->btc_reduce_wl_tx_power = halbtcoutsrc_reduce_wl_tx_power; in EXhalbtcoutsrc_InitlizeVariables()
3376 pBtCoexist->btc_phydm_modify_antdiv_hwsw = halbtcoutsrc_phydm_modify_AntDiv_HwSw; in EXhalbtcoutsrc_InitlizeVariables()
3378 pBtCoexist->cli_buf = &GLBtcDbgBuf[0]; in EXhalbtcoutsrc_InitlizeVariables()
3393 rtw_init_timer(&GLBtcBtMpOperTimer, padapter, _btmpoper_timer_hdl, pBtCoexist); in EXhalbtcoutsrc_InitlizeVariables()
3406 void EXhalbtcoutsrc_PowerOnSetting(PBTC_COEXIST pBtCoexist) in EXhalbtcoutsrc_PowerOnSetting() argument
3410 if (!halbtcoutsrc_IsBtCoexistAvailable(pBtCoexist)) in EXhalbtcoutsrc_PowerOnSetting()
3413 pHalData = GET_HAL_DATA((PADAPTER)pBtCoexist->Adapter); in EXhalbtcoutsrc_PowerOnSetting()
3416 rtw_btc_ex_power_on_setting(pBtCoexist); in EXhalbtcoutsrc_PowerOnSetting()
3419 if (IS_HARDWARE_TYPE_8723B(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_PowerOnSetting()
3421 if (pBtCoexist->board_info.btdm_ant_num == 2) in EXhalbtcoutsrc_PowerOnSetting()
3422 ex_halbtc8723b2ant_power_on_setting(pBtCoexist); in EXhalbtcoutsrc_PowerOnSetting()
3423 else if (pBtCoexist->board_info.btdm_ant_num == 1) in EXhalbtcoutsrc_PowerOnSetting()
3424 ex_halbtc8723b1ant_power_on_setting(pBtCoexist); in EXhalbtcoutsrc_PowerOnSetting()
3429 else if (IS_HARDWARE_TYPE_8703B(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_PowerOnSetting()
3430 if (pBtCoexist->board_info.btdm_ant_num == 1) in EXhalbtcoutsrc_PowerOnSetting()
3431 ex_halbtc8703b1ant_power_on_setting(pBtCoexist); in EXhalbtcoutsrc_PowerOnSetting()
3436 else if (IS_HARDWARE_TYPE_8723D(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_PowerOnSetting()
3437 if (pBtCoexist->board_info.btdm_ant_num == 2) in EXhalbtcoutsrc_PowerOnSetting()
3438 ex_halbtc8723d2ant_power_on_setting(pBtCoexist); in EXhalbtcoutsrc_PowerOnSetting()
3439 else if (pBtCoexist->board_info.btdm_ant_num == 1) in EXhalbtcoutsrc_PowerOnSetting()
3440 ex_halbtc8723d1ant_power_on_setting(pBtCoexist); in EXhalbtcoutsrc_PowerOnSetting()
3445 else if (IS_HARDWARE_TYPE_8821(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_PowerOnSetting()
3446 if (pBtCoexist->board_info.btdm_ant_num == 1) in EXhalbtcoutsrc_PowerOnSetting()
3447 ex_halbtc8821a1ant_power_on_setting(pBtCoexist); in EXhalbtcoutsrc_PowerOnSetting()
3448 else if (pBtCoexist->board_info.btdm_ant_num == 2) in EXhalbtcoutsrc_PowerOnSetting()
3449 ex_halbtc8821a2ant_power_on_setting(pBtCoexist); in EXhalbtcoutsrc_PowerOnSetting()
3454 …else if ((IS_HARDWARE_TYPE_8822B(pBtCoexist->Adapter)) && (pHalData->EEPROMBluetoothCoexist == _TR… in EXhalbtcoutsrc_PowerOnSetting()
3455 if (pBtCoexist->board_info.btdm_ant_num == 1) in EXhalbtcoutsrc_PowerOnSetting()
3456 ex_halbtc8822b1ant_power_on_setting(pBtCoexist); in EXhalbtcoutsrc_PowerOnSetting()
3457 else if (pBtCoexist->board_info.btdm_ant_num == 2) in EXhalbtcoutsrc_PowerOnSetting()
3458 ex_halbtc8822b2ant_power_on_setting(pBtCoexist); in EXhalbtcoutsrc_PowerOnSetting()
3463 …else if ((IS_HARDWARE_TYPE_8821C(pBtCoexist->Adapter)) && (pHalData->EEPROMBluetoothCoexist == _TR… in EXhalbtcoutsrc_PowerOnSetting()
3464 if (pBtCoexist->board_info.btdm_ant_num == 2) in EXhalbtcoutsrc_PowerOnSetting()
3465 ex_halbtc8821c2ant_power_on_setting(pBtCoexist); in EXhalbtcoutsrc_PowerOnSetting()
3466 else if (pBtCoexist->board_info.btdm_ant_num == 1) in EXhalbtcoutsrc_PowerOnSetting()
3467 ex_halbtc8821c1ant_power_on_setting(pBtCoexist); in EXhalbtcoutsrc_PowerOnSetting()
3472 if (IS_HARDWARE_TYPE_8814A(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_PowerOnSetting()
3473 if (pBtCoexist->board_info.btdm_ant_num == 2) in EXhalbtcoutsrc_PowerOnSetting()
3474 ex_halbtc8814a2ant_power_on_setting(pBtCoexist); in EXhalbtcoutsrc_PowerOnSetting()
3483 void EXhalbtcoutsrc_PreLoadFirmware(PBTC_COEXIST pBtCoexist) in EXhalbtcoutsrc_PreLoadFirmware() argument
3485 if (!halbtcoutsrc_IsBtCoexistAvailable(pBtCoexist)) in EXhalbtcoutsrc_PreLoadFirmware()
3488 pBtCoexist->statistics.cnt_pre_load_firmware++; in EXhalbtcoutsrc_PreLoadFirmware()
3490 if (IS_HARDWARE_TYPE_8723B(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_PreLoadFirmware()
3492 if (pBtCoexist->board_info.btdm_ant_num == 2) in EXhalbtcoutsrc_PreLoadFirmware()
3493 ex_halbtc8723b2ant_pre_load_firmware(pBtCoexist); in EXhalbtcoutsrc_PreLoadFirmware()
3494 else if (pBtCoexist->board_info.btdm_ant_num == 1) in EXhalbtcoutsrc_PreLoadFirmware()
3495 ex_halbtc8723b1ant_pre_load_firmware(pBtCoexist); in EXhalbtcoutsrc_PreLoadFirmware()
3500 else if (IS_HARDWARE_TYPE_8723D(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_PreLoadFirmware()
3501 if (pBtCoexist->board_info.btdm_ant_num == 2) in EXhalbtcoutsrc_PreLoadFirmware()
3502 ex_halbtc8723d2ant_pre_load_firmware(pBtCoexist); in EXhalbtcoutsrc_PreLoadFirmware()
3503 else if (pBtCoexist->board_info.btdm_ant_num == 1) in EXhalbtcoutsrc_PreLoadFirmware()
3504 ex_halbtc8723d1ant_pre_load_firmware(pBtCoexist); in EXhalbtcoutsrc_PreLoadFirmware()
3509 else if (IS_HARDWARE_TYPE_8821C(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_PreLoadFirmware()
3510 if (pBtCoexist->board_info.btdm_ant_num == 2) in EXhalbtcoutsrc_PreLoadFirmware()
3511 ex_halbtc8821c2ant_pre_load_firmware(pBtCoexist); in EXhalbtcoutsrc_PreLoadFirmware()
3512 else if (pBtCoexist->board_info.btdm_ant_num == 1) in EXhalbtcoutsrc_PreLoadFirmware()
3513 ex_halbtc8821c1ant_pre_load_firmware(pBtCoexist); in EXhalbtcoutsrc_PreLoadFirmware()
3518 void EXhalbtcoutsrc_init_hw_config(PBTC_COEXIST pBtCoexist, u8 bWifiOnly) in EXhalbtcoutsrc_init_hw_config() argument
3520 if (!halbtcoutsrc_IsBtCoexistAvailable(pBtCoexist)) in EXhalbtcoutsrc_init_hw_config()
3523 pBtCoexist->statistics.cnt_init_hw_config++; in EXhalbtcoutsrc_init_hw_config()
3526 rtw_btc_ex_init_hw_config(pBtCoexist, bWifiOnly); in EXhalbtcoutsrc_init_hw_config()
3529 if (IS_HARDWARE_TYPE_8821(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_init_hw_config()
3531 if (pBtCoexist->board_info.btdm_ant_num == 2) in EXhalbtcoutsrc_init_hw_config()
3532 ex_halbtc8821a2ant_init_hw_config(pBtCoexist, bWifiOnly); in EXhalbtcoutsrc_init_hw_config()
3533 else if (pBtCoexist->board_info.btdm_ant_num == 1) in EXhalbtcoutsrc_init_hw_config()
3534 ex_halbtc8821a1ant_init_hw_config(pBtCoexist, bWifiOnly); in EXhalbtcoutsrc_init_hw_config()
3539 else if (IS_HARDWARE_TYPE_8723B(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_init_hw_config()
3540 if (pBtCoexist->board_info.btdm_ant_num == 2) in EXhalbtcoutsrc_init_hw_config()
3541 ex_halbtc8723b2ant_init_hw_config(pBtCoexist, bWifiOnly); in EXhalbtcoutsrc_init_hw_config()
3542 else if (pBtCoexist->board_info.btdm_ant_num == 1) in EXhalbtcoutsrc_init_hw_config()
3543 ex_halbtc8723b1ant_init_hw_config(pBtCoexist, bWifiOnly); in EXhalbtcoutsrc_init_hw_config()
3548 else if (IS_HARDWARE_TYPE_8703B(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_init_hw_config()
3549 if (pBtCoexist->board_info.btdm_ant_num == 1) in EXhalbtcoutsrc_init_hw_config()
3550 ex_halbtc8703b1ant_init_hw_config(pBtCoexist, bWifiOnly); in EXhalbtcoutsrc_init_hw_config()
3555 else if (IS_HARDWARE_TYPE_8723D(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_init_hw_config()
3556 if (pBtCoexist->board_info.btdm_ant_num == 2) in EXhalbtcoutsrc_init_hw_config()
3557 ex_halbtc8723d2ant_init_hw_config(pBtCoexist, bWifiOnly); in EXhalbtcoutsrc_init_hw_config()
3558 else if (pBtCoexist->board_info.btdm_ant_num == 1) in EXhalbtcoutsrc_init_hw_config()
3559 ex_halbtc8723d1ant_init_hw_config(pBtCoexist, bWifiOnly); in EXhalbtcoutsrc_init_hw_config()
3564 else if (IS_HARDWARE_TYPE_8192E(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_init_hw_config()
3565 if (pBtCoexist->board_info.btdm_ant_num == 2) in EXhalbtcoutsrc_init_hw_config()
3566 ex_halbtc8192e2ant_init_hw_config(pBtCoexist, bWifiOnly); in EXhalbtcoutsrc_init_hw_config()
3567 else if (pBtCoexist->board_info.btdm_ant_num == 1) in EXhalbtcoutsrc_init_hw_config()
3568 ex_halbtc8192e1ant_init_hw_config(pBtCoexist, bWifiOnly); in EXhalbtcoutsrc_init_hw_config()
3573 else if (IS_HARDWARE_TYPE_8812(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_init_hw_config()
3574 if (pBtCoexist->board_info.btdm_ant_num == 2) in EXhalbtcoutsrc_init_hw_config()
3575 ex_halbtc8812a2ant_init_hw_config(pBtCoexist, bWifiOnly); in EXhalbtcoutsrc_init_hw_config()
3576 else if (pBtCoexist->board_info.btdm_ant_num == 1) in EXhalbtcoutsrc_init_hw_config()
3577 ex_halbtc8812a1ant_init_hw_config(pBtCoexist, bWifiOnly); in EXhalbtcoutsrc_init_hw_config()
3582 else if (IS_HARDWARE_TYPE_8822B(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_init_hw_config()
3583 if (pBtCoexist->board_info.btdm_ant_num == 1) in EXhalbtcoutsrc_init_hw_config()
3584 ex_halbtc8822b1ant_init_hw_config(pBtCoexist, bWifiOnly); in EXhalbtcoutsrc_init_hw_config()
3585 else if (pBtCoexist->board_info.btdm_ant_num == 2) in EXhalbtcoutsrc_init_hw_config()
3586 ex_halbtc8822b2ant_init_hw_config(pBtCoexist, bWifiOnly); in EXhalbtcoutsrc_init_hw_config()
3591 else if (IS_HARDWARE_TYPE_8821C(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_init_hw_config()
3592 if (pBtCoexist->board_info.btdm_ant_num == 2) in EXhalbtcoutsrc_init_hw_config()
3593 ex_halbtc8821c2ant_init_hw_config(pBtCoexist, bWifiOnly); in EXhalbtcoutsrc_init_hw_config()
3594 else if (pBtCoexist->board_info.btdm_ant_num == 1) in EXhalbtcoutsrc_init_hw_config()
3595 ex_halbtc8821c1ant_init_hw_config(pBtCoexist, bWifiOnly); in EXhalbtcoutsrc_init_hw_config()
3600 else if (IS_HARDWARE_TYPE_8814A(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_init_hw_config()
3601 if (pBtCoexist->board_info.btdm_ant_num == 2) in EXhalbtcoutsrc_init_hw_config()
3602 ex_halbtc8814a2ant_init_hw_config(pBtCoexist, bWifiOnly); in EXhalbtcoutsrc_init_hw_config()
3609 void EXhalbtcoutsrc_init_coex_dm(PBTC_COEXIST pBtCoexist) in EXhalbtcoutsrc_init_coex_dm() argument
3611 if (!halbtcoutsrc_IsBtCoexistAvailable(pBtCoexist)) in EXhalbtcoutsrc_init_coex_dm()
3614 pBtCoexist->statistics.cnt_init_coex_dm++; in EXhalbtcoutsrc_init_coex_dm()
3617 rtw_btc_ex_init_coex_dm(pBtCoexist); in EXhalbtcoutsrc_init_coex_dm()
3620 if (IS_HARDWARE_TYPE_8821(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_init_coex_dm()
3622 if (pBtCoexist->board_info.btdm_ant_num == 2) in EXhalbtcoutsrc_init_coex_dm()
3623 ex_halbtc8821a2ant_init_coex_dm(pBtCoexist); in EXhalbtcoutsrc_init_coex_dm()
3624 else if (pBtCoexist->board_info.btdm_ant_num == 1) in EXhalbtcoutsrc_init_coex_dm()
3625 ex_halbtc8821a1ant_init_coex_dm(pBtCoexist); in EXhalbtcoutsrc_init_coex_dm()
3630 else if (IS_HARDWARE_TYPE_8723B(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_init_coex_dm()
3631 if (pBtCoexist->board_info.btdm_ant_num == 2) in EXhalbtcoutsrc_init_coex_dm()
3632 ex_halbtc8723b2ant_init_coex_dm(pBtCoexist); in EXhalbtcoutsrc_init_coex_dm()
3633 else if (pBtCoexist->board_info.btdm_ant_num == 1) in EXhalbtcoutsrc_init_coex_dm()
3634 ex_halbtc8723b1ant_init_coex_dm(pBtCoexist); in EXhalbtcoutsrc_init_coex_dm()
3639 else if (IS_HARDWARE_TYPE_8703B(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_init_coex_dm()
3640 if (pBtCoexist->board_info.btdm_ant_num == 1) in EXhalbtcoutsrc_init_coex_dm()
3641 ex_halbtc8703b1ant_init_coex_dm(pBtCoexist); in EXhalbtcoutsrc_init_coex_dm()
3646 else if (IS_HARDWARE_TYPE_8723D(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_init_coex_dm()
3647 if (pBtCoexist->board_info.btdm_ant_num == 2) in EXhalbtcoutsrc_init_coex_dm()
3648 ex_halbtc8723d2ant_init_coex_dm(pBtCoexist); in EXhalbtcoutsrc_init_coex_dm()
3649 else if (pBtCoexist->board_info.btdm_ant_num == 1) in EXhalbtcoutsrc_init_coex_dm()
3650 ex_halbtc8723d1ant_init_coex_dm(pBtCoexist); in EXhalbtcoutsrc_init_coex_dm()
3655 else if (IS_HARDWARE_TYPE_8192E(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_init_coex_dm()
3656 if (pBtCoexist->board_info.btdm_ant_num == 2) in EXhalbtcoutsrc_init_coex_dm()
3657 ex_halbtc8192e2ant_init_coex_dm(pBtCoexist); in EXhalbtcoutsrc_init_coex_dm()
3658 else if (pBtCoexist->board_info.btdm_ant_num == 1) in EXhalbtcoutsrc_init_coex_dm()
3659 ex_halbtc8192e1ant_init_coex_dm(pBtCoexist); in EXhalbtcoutsrc_init_coex_dm()
3664 else if (IS_HARDWARE_TYPE_8812(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_init_coex_dm()
3665 if (pBtCoexist->board_info.btdm_ant_num == 2) in EXhalbtcoutsrc_init_coex_dm()
3666 ex_halbtc8812a2ant_init_coex_dm(pBtCoexist); in EXhalbtcoutsrc_init_coex_dm()
3667 else if (pBtCoexist->board_info.btdm_ant_num == 1) in EXhalbtcoutsrc_init_coex_dm()
3668 ex_halbtc8812a1ant_init_coex_dm(pBtCoexist); in EXhalbtcoutsrc_init_coex_dm()
3673 else if (IS_HARDWARE_TYPE_8822B(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_init_coex_dm()
3674 if (pBtCoexist->board_info.btdm_ant_num == 1) in EXhalbtcoutsrc_init_coex_dm()
3675 ex_halbtc8822b1ant_init_coex_dm(pBtCoexist); in EXhalbtcoutsrc_init_coex_dm()
3676 else if (pBtCoexist->board_info.btdm_ant_num == 2) in EXhalbtcoutsrc_init_coex_dm()
3677 ex_halbtc8822b2ant_init_coex_dm(pBtCoexist); in EXhalbtcoutsrc_init_coex_dm()
3682 else if (IS_HARDWARE_TYPE_8821C(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_init_coex_dm()
3683 if (pBtCoexist->board_info.btdm_ant_num == 2) in EXhalbtcoutsrc_init_coex_dm()
3684 ex_halbtc8821c2ant_init_coex_dm(pBtCoexist); in EXhalbtcoutsrc_init_coex_dm()
3685 else if (pBtCoexist->board_info.btdm_ant_num == 1) in EXhalbtcoutsrc_init_coex_dm()
3686 ex_halbtc8821c1ant_init_coex_dm(pBtCoexist); in EXhalbtcoutsrc_init_coex_dm()
3691 else if (IS_HARDWARE_TYPE_8814A(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_init_coex_dm()
3692 if (pBtCoexist->board_info.btdm_ant_num == 2) in EXhalbtcoutsrc_init_coex_dm()
3693 ex_halbtc8814a2ant_init_coex_dm(pBtCoexist); in EXhalbtcoutsrc_init_coex_dm()
3699 pBtCoexist->initilized = _TRUE; in EXhalbtcoutsrc_init_coex_dm()
3702 void EXhalbtcoutsrc_ips_notify(PBTC_COEXIST pBtCoexist, u8 type) in EXhalbtcoutsrc_ips_notify() argument
3706 if (!halbtcoutsrc_IsBtCoexistAvailable(pBtCoexist)) in EXhalbtcoutsrc_ips_notify()
3709 pBtCoexist->statistics.cnt_ips_notify++; in EXhalbtcoutsrc_ips_notify()
3710 if (pBtCoexist->manual_control) in EXhalbtcoutsrc_ips_notify()
3725 rtw_btc_ex_ips_notify(pBtCoexist, ipsType); in EXhalbtcoutsrc_ips_notify()
3728 if (IS_HARDWARE_TYPE_8821(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_ips_notify()
3730 if (pBtCoexist->board_info.btdm_ant_num == 2) in EXhalbtcoutsrc_ips_notify()
3731 ex_halbtc8821a2ant_ips_notify(pBtCoexist, ipsType); in EXhalbtcoutsrc_ips_notify()
3732 else if (pBtCoexist->board_info.btdm_ant_num == 1) in EXhalbtcoutsrc_ips_notify()
3733 ex_halbtc8821a1ant_ips_notify(pBtCoexist, ipsType); in EXhalbtcoutsrc_ips_notify()
3738 else if (IS_HARDWARE_TYPE_8723B(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_ips_notify()
3739 if (pBtCoexist->board_info.btdm_ant_num == 2) in EXhalbtcoutsrc_ips_notify()
3740 ex_halbtc8723b2ant_ips_notify(pBtCoexist, ipsType); in EXhalbtcoutsrc_ips_notify()
3741 else if (pBtCoexist->board_info.btdm_ant_num == 1) in EXhalbtcoutsrc_ips_notify()
3742 ex_halbtc8723b1ant_ips_notify(pBtCoexist, ipsType); in EXhalbtcoutsrc_ips_notify()
3747 else if (IS_HARDWARE_TYPE_8703B(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_ips_notify()
3748 if (pBtCoexist->board_info.btdm_ant_num == 1) in EXhalbtcoutsrc_ips_notify()
3749 ex_halbtc8703b1ant_ips_notify(pBtCoexist, ipsType); in EXhalbtcoutsrc_ips_notify()
3754 else if (IS_HARDWARE_TYPE_8723D(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_ips_notify()
3755 if (pBtCoexist->board_info.btdm_ant_num == 2) in EXhalbtcoutsrc_ips_notify()
3756 ex_halbtc8723d2ant_ips_notify(pBtCoexist, ipsType); in EXhalbtcoutsrc_ips_notify()
3757 else if (pBtCoexist->board_info.btdm_ant_num == 1) in EXhalbtcoutsrc_ips_notify()
3758 ex_halbtc8723d1ant_ips_notify(pBtCoexist, ipsType); in EXhalbtcoutsrc_ips_notify()
3763 else if (IS_HARDWARE_TYPE_8192E(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_ips_notify()
3764 if (pBtCoexist->board_info.btdm_ant_num == 2) in EXhalbtcoutsrc_ips_notify()
3765 ex_halbtc8192e2ant_ips_notify(pBtCoexist, ipsType); in EXhalbtcoutsrc_ips_notify()
3766 else if (pBtCoexist->board_info.btdm_ant_num == 1) in EXhalbtcoutsrc_ips_notify()
3767 ex_halbtc8192e1ant_ips_notify(pBtCoexist, ipsType); in EXhalbtcoutsrc_ips_notify()
3772 else if (IS_HARDWARE_TYPE_8812(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_ips_notify()
3773 if (pBtCoexist->board_info.btdm_ant_num == 2) in EXhalbtcoutsrc_ips_notify()
3774 ex_halbtc8812a2ant_ips_notify(pBtCoexist, ipsType); in EXhalbtcoutsrc_ips_notify()
3775 else if (pBtCoexist->board_info.btdm_ant_num == 1) in EXhalbtcoutsrc_ips_notify()
3776 ex_halbtc8812a1ant_ips_notify(pBtCoexist, ipsType); in EXhalbtcoutsrc_ips_notify()
3781 else if (IS_HARDWARE_TYPE_8822B(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_ips_notify()
3782 if (pBtCoexist->board_info.btdm_ant_num == 1) in EXhalbtcoutsrc_ips_notify()
3783 ex_halbtc8822b1ant_ips_notify(pBtCoexist, ipsType); in EXhalbtcoutsrc_ips_notify()
3784 else if (pBtCoexist->board_info.btdm_ant_num == 2) in EXhalbtcoutsrc_ips_notify()
3785 ex_halbtc8822b2ant_ips_notify(pBtCoexist, ipsType); in EXhalbtcoutsrc_ips_notify()
3790 else if (IS_HARDWARE_TYPE_8821C(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_ips_notify()
3791 if (pBtCoexist->board_info.btdm_ant_num == 2) in EXhalbtcoutsrc_ips_notify()
3792 ex_halbtc8821c2ant_ips_notify(pBtCoexist, ipsType); in EXhalbtcoutsrc_ips_notify()
3793 else if (pBtCoexist->board_info.btdm_ant_num == 1) in EXhalbtcoutsrc_ips_notify()
3794 ex_halbtc8821c1ant_ips_notify(pBtCoexist, ipsType); in EXhalbtcoutsrc_ips_notify()
3799 else if (IS_HARDWARE_TYPE_8814A(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_ips_notify()
3800 if (pBtCoexist->board_info.btdm_ant_num == 2) in EXhalbtcoutsrc_ips_notify()
3801 ex_halbtc8814a2ant_ips_notify(pBtCoexist, ipsType); in EXhalbtcoutsrc_ips_notify()
3809 void EXhalbtcoutsrc_lps_notify(PBTC_COEXIST pBtCoexist, u8 type) in EXhalbtcoutsrc_lps_notify() argument
3814 if (!halbtcoutsrc_IsBtCoexistAvailable(pBtCoexist)) in EXhalbtcoutsrc_lps_notify()
3817 pBtCoexist->statistics.cnt_lps_notify++; in EXhalbtcoutsrc_lps_notify()
3818 if (pBtCoexist->manual_control) in EXhalbtcoutsrc_lps_notify()
3830 rtw_btc_ex_lps_notify(pBtCoexist, lpsType); in EXhalbtcoutsrc_lps_notify()
3833 if (IS_HARDWARE_TYPE_8821(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_lps_notify()
3835 if (pBtCoexist->board_info.btdm_ant_num == 2) in EXhalbtcoutsrc_lps_notify()
3836 ex_halbtc8821a2ant_lps_notify(pBtCoexist, lpsType); in EXhalbtcoutsrc_lps_notify()
3837 else if (pBtCoexist->board_info.btdm_ant_num == 1) in EXhalbtcoutsrc_lps_notify()
3838 ex_halbtc8821a1ant_lps_notify(pBtCoexist, lpsType); in EXhalbtcoutsrc_lps_notify()
3843 else if (IS_HARDWARE_TYPE_8723B(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_lps_notify()
3844 if (pBtCoexist->board_info.btdm_ant_num == 2) in EXhalbtcoutsrc_lps_notify()
3845 ex_halbtc8723b2ant_lps_notify(pBtCoexist, lpsType); in EXhalbtcoutsrc_lps_notify()
3846 else if (pBtCoexist->board_info.btdm_ant_num == 1) in EXhalbtcoutsrc_lps_notify()
3847 ex_halbtc8723b1ant_lps_notify(pBtCoexist, lpsType); in EXhalbtcoutsrc_lps_notify()
3852 else if (IS_HARDWARE_TYPE_8703B(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_lps_notify()
3853 if (pBtCoexist->board_info.btdm_ant_num == 1) in EXhalbtcoutsrc_lps_notify()
3854 ex_halbtc8703b1ant_lps_notify(pBtCoexist, lpsType); in EXhalbtcoutsrc_lps_notify()
3859 else if (IS_HARDWARE_TYPE_8723D(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_lps_notify()
3860 if (pBtCoexist->board_info.btdm_ant_num == 2) in EXhalbtcoutsrc_lps_notify()
3861 ex_halbtc8723d2ant_lps_notify(pBtCoexist, lpsType); in EXhalbtcoutsrc_lps_notify()
3862 else if (pBtCoexist->board_info.btdm_ant_num == 1) in EXhalbtcoutsrc_lps_notify()
3863 ex_halbtc8723d1ant_lps_notify(pBtCoexist, lpsType); in EXhalbtcoutsrc_lps_notify()
3868 else if (IS_HARDWARE_TYPE_8192E(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_lps_notify()
3869 if (pBtCoexist->board_info.btdm_ant_num == 2) in EXhalbtcoutsrc_lps_notify()
3870 ex_halbtc8192e2ant_lps_notify(pBtCoexist, lpsType); in EXhalbtcoutsrc_lps_notify()
3871 else if (pBtCoexist->board_info.btdm_ant_num == 1) in EXhalbtcoutsrc_lps_notify()
3872 ex_halbtc8192e1ant_lps_notify(pBtCoexist, lpsType); in EXhalbtcoutsrc_lps_notify()
3877 else if (IS_HARDWARE_TYPE_8812(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_lps_notify()
3878 if (pBtCoexist->board_info.btdm_ant_num == 2) in EXhalbtcoutsrc_lps_notify()
3879 ex_halbtc8812a2ant_lps_notify(pBtCoexist, lpsType); in EXhalbtcoutsrc_lps_notify()
3880 else if (pBtCoexist->board_info.btdm_ant_num == 1) in EXhalbtcoutsrc_lps_notify()
3881 ex_halbtc8812a1ant_lps_notify(pBtCoexist, lpsType); in EXhalbtcoutsrc_lps_notify()
3886 else if (IS_HARDWARE_TYPE_8822B(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_lps_notify()
3887 if (pBtCoexist->board_info.btdm_ant_num == 1) in EXhalbtcoutsrc_lps_notify()
3888 ex_halbtc8822b1ant_lps_notify(pBtCoexist, lpsType); in EXhalbtcoutsrc_lps_notify()
3889 else if (pBtCoexist->board_info.btdm_ant_num == 2) in EXhalbtcoutsrc_lps_notify()
3890 ex_halbtc8822b2ant_lps_notify(pBtCoexist, lpsType); in EXhalbtcoutsrc_lps_notify()
3895 else if (IS_HARDWARE_TYPE_8821C(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_lps_notify()
3896 if (pBtCoexist->board_info.btdm_ant_num == 2) in EXhalbtcoutsrc_lps_notify()
3897 ex_halbtc8821c2ant_lps_notify(pBtCoexist, lpsType); in EXhalbtcoutsrc_lps_notify()
3898 else if (pBtCoexist->board_info.btdm_ant_num == 1) in EXhalbtcoutsrc_lps_notify()
3899 ex_halbtc8821c1ant_lps_notify(pBtCoexist, lpsType); in EXhalbtcoutsrc_lps_notify()
3904 else if (IS_HARDWARE_TYPE_8814A(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_lps_notify()
3905 if (pBtCoexist->board_info.btdm_ant_num == 2) in EXhalbtcoutsrc_lps_notify()
3906 ex_halbtc8814a2ant_lps_notify(pBtCoexist, lpsType); in EXhalbtcoutsrc_lps_notify()
3913 void EXhalbtcoutsrc_scan_notify(PBTC_COEXIST pBtCoexist, u8 type) in EXhalbtcoutsrc_scan_notify() argument
3917 if (!halbtcoutsrc_IsBtCoexistAvailable(pBtCoexist)) in EXhalbtcoutsrc_scan_notify()
3919 pBtCoexist->statistics.cnt_scan_notify++; in EXhalbtcoutsrc_scan_notify()
3920 if (pBtCoexist->manual_control) in EXhalbtcoutsrc_scan_notify()
3935 rtw_btc_ex_scan_notify(pBtCoexist, scanType); in EXhalbtcoutsrc_scan_notify()
3938 if (IS_HARDWARE_TYPE_8821(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_scan_notify()
3940 if (pBtCoexist->board_info.btdm_ant_num == 2) in EXhalbtcoutsrc_scan_notify()
3941 ex_halbtc8821a2ant_scan_notify(pBtCoexist, scanType); in EXhalbtcoutsrc_scan_notify()
3942 else if (pBtCoexist->board_info.btdm_ant_num == 1) in EXhalbtcoutsrc_scan_notify()
3943 ex_halbtc8821a1ant_scan_notify(pBtCoexist, scanType); in EXhalbtcoutsrc_scan_notify()
3948 else if (IS_HARDWARE_TYPE_8723B(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_scan_notify()
3949 if (pBtCoexist->board_info.btdm_ant_num == 2) in EXhalbtcoutsrc_scan_notify()
3950 ex_halbtc8723b2ant_scan_notify(pBtCoexist, scanType); in EXhalbtcoutsrc_scan_notify()
3951 else if (pBtCoexist->board_info.btdm_ant_num == 1) in EXhalbtcoutsrc_scan_notify()
3952 ex_halbtc8723b1ant_scan_notify(pBtCoexist, scanType); in EXhalbtcoutsrc_scan_notify()
3957 else if (IS_HARDWARE_TYPE_8703B(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_scan_notify()
3958 if (pBtCoexist->board_info.btdm_ant_num == 1) in EXhalbtcoutsrc_scan_notify()
3959 ex_halbtc8703b1ant_scan_notify(pBtCoexist, scanType); in EXhalbtcoutsrc_scan_notify()
3964 else if (IS_HARDWARE_TYPE_8723D(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_scan_notify()
3965 if (pBtCoexist->board_info.btdm_ant_num == 2) in EXhalbtcoutsrc_scan_notify()
3966 ex_halbtc8723d2ant_scan_notify(pBtCoexist, scanType); in EXhalbtcoutsrc_scan_notify()
3967 else if (pBtCoexist->board_info.btdm_ant_num == 1) in EXhalbtcoutsrc_scan_notify()
3968 ex_halbtc8723d1ant_scan_notify(pBtCoexist, scanType); in EXhalbtcoutsrc_scan_notify()
3973 else if (IS_HARDWARE_TYPE_8192E(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_scan_notify()
3974 if (pBtCoexist->board_info.btdm_ant_num == 2) in EXhalbtcoutsrc_scan_notify()
3975 ex_halbtc8192e2ant_scan_notify(pBtCoexist, scanType); in EXhalbtcoutsrc_scan_notify()
3976 else if (pBtCoexist->board_info.btdm_ant_num == 1) in EXhalbtcoutsrc_scan_notify()
3977 ex_halbtc8192e1ant_scan_notify(pBtCoexist, scanType); in EXhalbtcoutsrc_scan_notify()
3982 else if (IS_HARDWARE_TYPE_8812(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_scan_notify()
3983 if (pBtCoexist->board_info.btdm_ant_num == 2) in EXhalbtcoutsrc_scan_notify()
3984 ex_halbtc8812a2ant_scan_notify(pBtCoexist, scanType); in EXhalbtcoutsrc_scan_notify()
3985 else if (pBtCoexist->board_info.btdm_ant_num == 1) in EXhalbtcoutsrc_scan_notify()
3986 ex_halbtc8812a1ant_scan_notify(pBtCoexist, scanType); in EXhalbtcoutsrc_scan_notify()
3991 else if (IS_HARDWARE_TYPE_8822B(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_scan_notify()
3992 if (pBtCoexist->board_info.btdm_ant_num == 1) in EXhalbtcoutsrc_scan_notify()
3993 ex_halbtc8822b1ant_scan_notify(pBtCoexist, scanType); in EXhalbtcoutsrc_scan_notify()
3994 else if (pBtCoexist->board_info.btdm_ant_num == 2) in EXhalbtcoutsrc_scan_notify()
3995 ex_halbtc8822b2ant_scan_notify(pBtCoexist, scanType); in EXhalbtcoutsrc_scan_notify()
4000 else if (IS_HARDWARE_TYPE_8821C(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_scan_notify()
4001 if (pBtCoexist->board_info.btdm_ant_num == 2) in EXhalbtcoutsrc_scan_notify()
4002 ex_halbtc8821c2ant_scan_notify(pBtCoexist, scanType); in EXhalbtcoutsrc_scan_notify()
4003 else if (pBtCoexist->board_info.btdm_ant_num == 1) in EXhalbtcoutsrc_scan_notify()
4004 ex_halbtc8821c1ant_scan_notify(pBtCoexist, scanType); in EXhalbtcoutsrc_scan_notify()
4009 else if (IS_HARDWARE_TYPE_8814A(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_scan_notify()
4010 if (pBtCoexist->board_info.btdm_ant_num == 2) in EXhalbtcoutsrc_scan_notify()
4011 ex_halbtc8814a2ant_scan_notify(pBtCoexist, scanType); in EXhalbtcoutsrc_scan_notify()
4020 void EXhalbtcoutsrc_SetAntennaPathNotify(PBTC_COEXIST pBtCoexist, u8 type) in EXhalbtcoutsrc_SetAntennaPathNotify() argument
4025 if (!halbtcoutsrc_IsBtCoexistAvailable(pBtCoexist)) in EXhalbtcoutsrc_SetAntennaPathNotify()
4028 if (pBtCoexist->manual_control) in EXhalbtcoutsrc_SetAntennaPathNotify()
4031 halbtcoutsrc_LeaveLowPower(pBtCoexist); in EXhalbtcoutsrc_SetAntennaPathNotify()
4035 if (IS_HARDWARE_TYPE_8723B(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_SetAntennaPathNotify()
4036 if (pBtCoexist->board_info.btdm_ant_num == 1) in EXhalbtcoutsrc_SetAntennaPathNotify()
4037 ex_halbtc8723b1ant_set_antenna_notify(pBtCoexist, type); in EXhalbtcoutsrc_SetAntennaPathNotify()
4039 if (IS_HARDWARE_TYPE_8723D(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_SetAntennaPathNotify()
4040 if (pBtCoexist->board_info.btdm_ant_num == 1) in EXhalbtcoutsrc_SetAntennaPathNotify()
4041 ex_halbtc8723d1ant_set_antenna_notify(pBtCoexist, type); in EXhalbtcoutsrc_SetAntennaPathNotify()
4042 else if (pBtCoexist->board_info.btdm_ant_num == 2) in EXhalbtcoutsrc_SetAntennaPathNotify()
4043 ex_halbtc8723d2ant_set_antenna_notify(pBtCoexist, type); in EXhalbtcoutsrc_SetAntennaPathNotify()
4046 halbtcoutsrc_NormalLowPower(pBtCoexist); in EXhalbtcoutsrc_SetAntennaPathNotify()
4050 void EXhalbtcoutsrc_connect_notify(PBTC_COEXIST pBtCoexist, u8 assoType) in EXhalbtcoutsrc_connect_notify() argument
4052 if (!halbtcoutsrc_IsBtCoexistAvailable(pBtCoexist)) in EXhalbtcoutsrc_connect_notify()
4054 pBtCoexist->statistics.cnt_connect_notify++; in EXhalbtcoutsrc_connect_notify()
4055 if (pBtCoexist->manual_control) in EXhalbtcoutsrc_connect_notify()
4061 rtw_btc_ex_connect_notify(pBtCoexist, assoType); in EXhalbtcoutsrc_connect_notify()
4064 if (IS_HARDWARE_TYPE_8821(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_connect_notify()
4066 if (pBtCoexist->board_info.btdm_ant_num == 2) in EXhalbtcoutsrc_connect_notify()
4067 ex_halbtc8821a2ant_connect_notify(pBtCoexist, assoType); in EXhalbtcoutsrc_connect_notify()
4068 else if (pBtCoexist->board_info.btdm_ant_num == 1) in EXhalbtcoutsrc_connect_notify()
4069 ex_halbtc8821a1ant_connect_notify(pBtCoexist, assoType); in EXhalbtcoutsrc_connect_notify()
4074 else if (IS_HARDWARE_TYPE_8723B(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_connect_notify()
4075 if (pBtCoexist->board_info.btdm_ant_num == 2) in EXhalbtcoutsrc_connect_notify()
4076 ex_halbtc8723b2ant_connect_notify(pBtCoexist, assoType); in EXhalbtcoutsrc_connect_notify()
4077 else if (pBtCoexist->board_info.btdm_ant_num == 1) in EXhalbtcoutsrc_connect_notify()
4078 ex_halbtc8723b1ant_connect_notify(pBtCoexist, assoType); in EXhalbtcoutsrc_connect_notify()
4083 else if (IS_HARDWARE_TYPE_8703B(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_connect_notify()
4084 if (pBtCoexist->board_info.btdm_ant_num == 1) in EXhalbtcoutsrc_connect_notify()
4085 ex_halbtc8703b1ant_connect_notify(pBtCoexist, assoType); in EXhalbtcoutsrc_connect_notify()
4090 else if (IS_HARDWARE_TYPE_8723D(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_connect_notify()
4091 if (pBtCoexist->board_info.btdm_ant_num == 2) in EXhalbtcoutsrc_connect_notify()
4092 ex_halbtc8723d2ant_connect_notify(pBtCoexist, assoType); in EXhalbtcoutsrc_connect_notify()
4093 else if (pBtCoexist->board_info.btdm_ant_num == 1) in EXhalbtcoutsrc_connect_notify()
4094 ex_halbtc8723d1ant_connect_notify(pBtCoexist, assoType); in EXhalbtcoutsrc_connect_notify()
4099 else if (IS_HARDWARE_TYPE_8192E(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_connect_notify()
4100 if (pBtCoexist->board_info.btdm_ant_num == 2) in EXhalbtcoutsrc_connect_notify()
4101 ex_halbtc8192e2ant_connect_notify(pBtCoexist, assoType); in EXhalbtcoutsrc_connect_notify()
4102 else if (pBtCoexist->board_info.btdm_ant_num == 1) in EXhalbtcoutsrc_connect_notify()
4103 ex_halbtc8192e1ant_connect_notify(pBtCoexist, assoType); in EXhalbtcoutsrc_connect_notify()
4108 else if (IS_HARDWARE_TYPE_8812(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_connect_notify()
4109 if (pBtCoexist->board_info.btdm_ant_num == 2) in EXhalbtcoutsrc_connect_notify()
4110 ex_halbtc8812a2ant_connect_notify(pBtCoexist, assoType); in EXhalbtcoutsrc_connect_notify()
4111 else if (pBtCoexist->board_info.btdm_ant_num == 1) in EXhalbtcoutsrc_connect_notify()
4112 ex_halbtc8812a1ant_connect_notify(pBtCoexist, assoType); in EXhalbtcoutsrc_connect_notify()
4117 else if (IS_HARDWARE_TYPE_8822B(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_connect_notify()
4118 if (pBtCoexist->board_info.btdm_ant_num == 1) in EXhalbtcoutsrc_connect_notify()
4119 ex_halbtc8822b1ant_connect_notify(pBtCoexist, assoType); in EXhalbtcoutsrc_connect_notify()
4120 else if (pBtCoexist->board_info.btdm_ant_num == 2) in EXhalbtcoutsrc_connect_notify()
4121 ex_halbtc8822b2ant_connect_notify(pBtCoexist, assoType); in EXhalbtcoutsrc_connect_notify()
4126 else if (IS_HARDWARE_TYPE_8821C(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_connect_notify()
4127 if (pBtCoexist->board_info.btdm_ant_num == 2) in EXhalbtcoutsrc_connect_notify()
4128 ex_halbtc8821c2ant_connect_notify(pBtCoexist, assoType); in EXhalbtcoutsrc_connect_notify()
4129 else if (pBtCoexist->board_info.btdm_ant_num == 1) in EXhalbtcoutsrc_connect_notify()
4130 ex_halbtc8821c1ant_connect_notify(pBtCoexist, assoType); in EXhalbtcoutsrc_connect_notify()
4135 else if (IS_HARDWARE_TYPE_8814A(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_connect_notify()
4136 if (pBtCoexist->board_info.btdm_ant_num == 2) in EXhalbtcoutsrc_connect_notify()
4137 ex_halbtc8814a2ant_connect_notify(pBtCoexist, assoType); in EXhalbtcoutsrc_connect_notify()
4146 void EXhalbtcoutsrc_media_status_notify(PBTC_COEXIST pBtCoexist, RT_MEDIA_STATUS mediaStatus) in EXhalbtcoutsrc_media_status_notify() argument
4152 if (!halbtcoutsrc_IsBtCoexistAvailable(pBtCoexist)) in EXhalbtcoutsrc_media_status_notify()
4155 if (pBtCoexist->manual_control) in EXhalbtcoutsrc_media_status_notify()
4158 pBtCoexist->statistics.cnt_media_status_notify++; in EXhalbtcoutsrc_media_status_notify()
4159 adapter = (PADAPTER)pBtCoexist->Adapter; in EXhalbtcoutsrc_media_status_notify()
4177 rtw_btc_ex_media_status_notify(pBtCoexist, mStatus); in EXhalbtcoutsrc_media_status_notify()
4180 if (IS_HARDWARE_TYPE_8821(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_media_status_notify()
4185 if (pBtCoexist->board_info.btdm_ant_num == 2) in EXhalbtcoutsrc_media_status_notify()
4186 ex_halbtc8821a2ant_media_status_notify(pBtCoexist, mStatus); in EXhalbtcoutsrc_media_status_notify()
4187 else if (pBtCoexist->board_info.btdm_ant_num == 1) in EXhalbtcoutsrc_media_status_notify()
4188 ex_halbtc8821a1ant_media_status_notify(pBtCoexist, mStatus); in EXhalbtcoutsrc_media_status_notify()
4193 else if (IS_HARDWARE_TYPE_8723B(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_media_status_notify()
4194 if (pBtCoexist->board_info.btdm_ant_num == 2) in EXhalbtcoutsrc_media_status_notify()
4195 ex_halbtc8723b2ant_media_status_notify(pBtCoexist, mStatus); in EXhalbtcoutsrc_media_status_notify()
4196 else if (pBtCoexist->board_info.btdm_ant_num == 1) in EXhalbtcoutsrc_media_status_notify()
4197 ex_halbtc8723b1ant_media_status_notify(pBtCoexist, mStatus); in EXhalbtcoutsrc_media_status_notify()
4202 else if (IS_HARDWARE_TYPE_8703B(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_media_status_notify()
4203 if (pBtCoexist->board_info.btdm_ant_num == 1) in EXhalbtcoutsrc_media_status_notify()
4204 ex_halbtc8703b1ant_media_status_notify(pBtCoexist, mStatus); in EXhalbtcoutsrc_media_status_notify()
4209 else if (IS_HARDWARE_TYPE_8723D(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_media_status_notify()
4210 if (pBtCoexist->board_info.btdm_ant_num == 2) in EXhalbtcoutsrc_media_status_notify()
4211 ex_halbtc8723d2ant_media_status_notify(pBtCoexist, mStatus); in EXhalbtcoutsrc_media_status_notify()
4212 else if (pBtCoexist->board_info.btdm_ant_num == 1) in EXhalbtcoutsrc_media_status_notify()
4213 ex_halbtc8723d1ant_media_status_notify(pBtCoexist, mStatus); in EXhalbtcoutsrc_media_status_notify()
4218 else if (IS_HARDWARE_TYPE_8192E(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_media_status_notify()
4219 if (pBtCoexist->board_info.btdm_ant_num == 2) in EXhalbtcoutsrc_media_status_notify()
4220 ex_halbtc8192e2ant_media_status_notify(pBtCoexist, mStatus); in EXhalbtcoutsrc_media_status_notify()
4221 else if (pBtCoexist->board_info.btdm_ant_num == 1) in EXhalbtcoutsrc_media_status_notify()
4222 ex_halbtc8192e1ant_media_status_notify(pBtCoexist, mStatus); in EXhalbtcoutsrc_media_status_notify()
4227 else if (IS_HARDWARE_TYPE_8812(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_media_status_notify()
4231 if (pBtCoexist->board_info.btdm_ant_num == 2) in EXhalbtcoutsrc_media_status_notify()
4232 ex_halbtc8812a2ant_media_status_notify(pBtCoexist, mStatus); in EXhalbtcoutsrc_media_status_notify()
4233 else if (pBtCoexist->board_info.btdm_ant_num == 1) in EXhalbtcoutsrc_media_status_notify()
4234 ex_halbtc8812a1ant_media_status_notify(pBtCoexist, mStatus); in EXhalbtcoutsrc_media_status_notify()
4239 else if (IS_HARDWARE_TYPE_8822B(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_media_status_notify()
4240 if (pBtCoexist->board_info.btdm_ant_num == 1) in EXhalbtcoutsrc_media_status_notify()
4241 ex_halbtc8822b1ant_media_status_notify(pBtCoexist, mStatus); in EXhalbtcoutsrc_media_status_notify()
4242 else if (pBtCoexist->board_info.btdm_ant_num == 2) in EXhalbtcoutsrc_media_status_notify()
4243 ex_halbtc8822b2ant_media_status_notify(pBtCoexist, mStatus); in EXhalbtcoutsrc_media_status_notify()
4248 else if (IS_HARDWARE_TYPE_8821C(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_media_status_notify()
4249 if (pBtCoexist->board_info.btdm_ant_num == 2) in EXhalbtcoutsrc_media_status_notify()
4250 ex_halbtc8821c2ant_media_status_notify(pBtCoexist, mStatus); in EXhalbtcoutsrc_media_status_notify()
4251 else if (pBtCoexist->board_info.btdm_ant_num == 1) in EXhalbtcoutsrc_media_status_notify()
4252 ex_halbtc8821c1ant_media_status_notify(pBtCoexist, mStatus); in EXhalbtcoutsrc_media_status_notify()
4257 else if (IS_HARDWARE_TYPE_8814A(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_media_status_notify()
4258 if (pBtCoexist->board_info.btdm_ant_num == 2) in EXhalbtcoutsrc_media_status_notify()
4259 ex_halbtc8814a2ant_media_status_notify(pBtCoexist, mStatus); in EXhalbtcoutsrc_media_status_notify()
4268 void EXhalbtcoutsrc_specific_packet_notify(PBTC_COEXIST pBtCoexist, u8 pktType) in EXhalbtcoutsrc_specific_packet_notify() argument
4274 if (!halbtcoutsrc_IsBtCoexistAvailable(pBtCoexist)) in EXhalbtcoutsrc_specific_packet_notify()
4277 if (pBtCoexist->manual_control) in EXhalbtcoutsrc_specific_packet_notify()
4280 pBtCoexist->statistics.cnt_specific_packet_notify++; in EXhalbtcoutsrc_specific_packet_notify()
4281 adapter = (PADAPTER)pBtCoexist->Adapter; in EXhalbtcoutsrc_specific_packet_notify()
4301 rtw_btc_ex_specific_packet_notify(pBtCoexist, packetType); in EXhalbtcoutsrc_specific_packet_notify()
4304 if (IS_HARDWARE_TYPE_8821(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_specific_packet_notify()
4310 if (pBtCoexist->board_info.btdm_ant_num == 2) in EXhalbtcoutsrc_specific_packet_notify()
4311 ex_halbtc8821a2ant_specific_packet_notify(pBtCoexist, packetType); in EXhalbtcoutsrc_specific_packet_notify()
4312 else if (pBtCoexist->board_info.btdm_ant_num == 1) in EXhalbtcoutsrc_specific_packet_notify()
4313 ex_halbtc8821a1ant_specific_packet_notify(pBtCoexist, packetType); in EXhalbtcoutsrc_specific_packet_notify()
4318 else if (IS_HARDWARE_TYPE_8723B(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_specific_packet_notify()
4319 if (pBtCoexist->board_info.btdm_ant_num == 2) in EXhalbtcoutsrc_specific_packet_notify()
4320 ex_halbtc8723b2ant_specific_packet_notify(pBtCoexist, packetType); in EXhalbtcoutsrc_specific_packet_notify()
4321 else if (pBtCoexist->board_info.btdm_ant_num == 1) in EXhalbtcoutsrc_specific_packet_notify()
4322 ex_halbtc8723b1ant_specific_packet_notify(pBtCoexist, packetType); in EXhalbtcoutsrc_specific_packet_notify()
4327 else if (IS_HARDWARE_TYPE_8703B(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_specific_packet_notify()
4328 if (pBtCoexist->board_info.btdm_ant_num == 1) in EXhalbtcoutsrc_specific_packet_notify()
4329 ex_halbtc8703b1ant_specific_packet_notify(pBtCoexist, packetType); in EXhalbtcoutsrc_specific_packet_notify()
4334 else if (IS_HARDWARE_TYPE_8723D(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_specific_packet_notify()
4335 if (pBtCoexist->board_info.btdm_ant_num == 2) in EXhalbtcoutsrc_specific_packet_notify()
4336 ex_halbtc8723d2ant_specific_packet_notify(pBtCoexist, packetType); in EXhalbtcoutsrc_specific_packet_notify()
4337 else if (pBtCoexist->board_info.btdm_ant_num == 1) in EXhalbtcoutsrc_specific_packet_notify()
4338 ex_halbtc8723d1ant_specific_packet_notify(pBtCoexist, packetType); in EXhalbtcoutsrc_specific_packet_notify()
4343 else if (IS_HARDWARE_TYPE_8192E(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_specific_packet_notify()
4344 if (pBtCoexist->board_info.btdm_ant_num == 2) in EXhalbtcoutsrc_specific_packet_notify()
4345 ex_halbtc8192e2ant_specific_packet_notify(pBtCoexist, packetType); in EXhalbtcoutsrc_specific_packet_notify()
4346 else if (pBtCoexist->board_info.btdm_ant_num == 1) in EXhalbtcoutsrc_specific_packet_notify()
4347 ex_halbtc8192e1ant_specific_packet_notify(pBtCoexist, packetType); in EXhalbtcoutsrc_specific_packet_notify()
4352 else if (IS_HARDWARE_TYPE_8812(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_specific_packet_notify()
4357 if (pBtCoexist->board_info.btdm_ant_num == 2) in EXhalbtcoutsrc_specific_packet_notify()
4358 ex_halbtc8812a2ant_specific_packet_notify(pBtCoexist, packetType); in EXhalbtcoutsrc_specific_packet_notify()
4359 else if (pBtCoexist->board_info.btdm_ant_num == 1) in EXhalbtcoutsrc_specific_packet_notify()
4360 ex_halbtc8812a1ant_specific_packet_notify(pBtCoexist, packetType); in EXhalbtcoutsrc_specific_packet_notify()
4365 else if (IS_HARDWARE_TYPE_8822B(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_specific_packet_notify()
4366 if (pBtCoexist->board_info.btdm_ant_num == 1) in EXhalbtcoutsrc_specific_packet_notify()
4367 ex_halbtc8822b1ant_specific_packet_notify(pBtCoexist, packetType); in EXhalbtcoutsrc_specific_packet_notify()
4368 else if (pBtCoexist->board_info.btdm_ant_num == 2) in EXhalbtcoutsrc_specific_packet_notify()
4369 ex_halbtc8822b2ant_specific_packet_notify(pBtCoexist, packetType); in EXhalbtcoutsrc_specific_packet_notify()
4374 else if (IS_HARDWARE_TYPE_8821C(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_specific_packet_notify()
4375 if (pBtCoexist->board_info.btdm_ant_num == 2) in EXhalbtcoutsrc_specific_packet_notify()
4376 ex_halbtc8821c2ant_specific_packet_notify(pBtCoexist, packetType); in EXhalbtcoutsrc_specific_packet_notify()
4377 else if (pBtCoexist->board_info.btdm_ant_num == 1) in EXhalbtcoutsrc_specific_packet_notify()
4378 ex_halbtc8821c1ant_specific_packet_notify(pBtCoexist, packetType); in EXhalbtcoutsrc_specific_packet_notify()
4383 else if (IS_HARDWARE_TYPE_8814A(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_specific_packet_notify()
4384 if (pBtCoexist->board_info.btdm_ant_num == 2) in EXhalbtcoutsrc_specific_packet_notify()
4385 ex_halbtc8814a2ant_specific_packet_notify(pBtCoexist, packetType); in EXhalbtcoutsrc_specific_packet_notify()
4394 void EXhalbtcoutsrc_bt_info_notify(PBTC_COEXIST pBtCoexist, u8 *tmpBuf, u8 length) in EXhalbtcoutsrc_bt_info_notify() argument
4396 if (!halbtcoutsrc_IsBtCoexistAvailable(pBtCoexist)) in EXhalbtcoutsrc_bt_info_notify()
4399 pBtCoexist->statistics.cnt_bt_info_notify++; in EXhalbtcoutsrc_bt_info_notify()
4404 rtw_btc_ex_bt_info_notify(pBtCoexist, tmpBuf, length); in EXhalbtcoutsrc_bt_info_notify()
4407 if (IS_HARDWARE_TYPE_8821(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_bt_info_notify()
4409 if (pBtCoexist->board_info.btdm_ant_num == 2) in EXhalbtcoutsrc_bt_info_notify()
4410 ex_halbtc8821a2ant_bt_info_notify(pBtCoexist, tmpBuf, length); in EXhalbtcoutsrc_bt_info_notify()
4411 else if (pBtCoexist->board_info.btdm_ant_num == 1) in EXhalbtcoutsrc_bt_info_notify()
4412 ex_halbtc8821a1ant_bt_info_notify(pBtCoexist, tmpBuf, length); in EXhalbtcoutsrc_bt_info_notify()
4417 else if (IS_HARDWARE_TYPE_8723B(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_bt_info_notify()
4418 if (pBtCoexist->board_info.btdm_ant_num == 2) in EXhalbtcoutsrc_bt_info_notify()
4419 ex_halbtc8723b2ant_bt_info_notify(pBtCoexist, tmpBuf, length); in EXhalbtcoutsrc_bt_info_notify()
4420 else if (pBtCoexist->board_info.btdm_ant_num == 1) in EXhalbtcoutsrc_bt_info_notify()
4421 ex_halbtc8723b1ant_bt_info_notify(pBtCoexist, tmpBuf, length); in EXhalbtcoutsrc_bt_info_notify()
4426 else if (IS_HARDWARE_TYPE_8703B(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_bt_info_notify()
4427 if (pBtCoexist->board_info.btdm_ant_num == 1) in EXhalbtcoutsrc_bt_info_notify()
4428 ex_halbtc8703b1ant_bt_info_notify(pBtCoexist, tmpBuf, length); in EXhalbtcoutsrc_bt_info_notify()
4433 else if (IS_HARDWARE_TYPE_8723D(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_bt_info_notify()
4434 if (pBtCoexist->board_info.btdm_ant_num == 2) in EXhalbtcoutsrc_bt_info_notify()
4435 ex_halbtc8723d2ant_bt_info_notify(pBtCoexist, tmpBuf, length); in EXhalbtcoutsrc_bt_info_notify()
4436 else if (pBtCoexist->board_info.btdm_ant_num == 1) in EXhalbtcoutsrc_bt_info_notify()
4437 ex_halbtc8723d1ant_bt_info_notify(pBtCoexist, tmpBuf, length); in EXhalbtcoutsrc_bt_info_notify()
4442 else if (IS_HARDWARE_TYPE_8192E(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_bt_info_notify()
4443 if (pBtCoexist->board_info.btdm_ant_num == 2) in EXhalbtcoutsrc_bt_info_notify()
4444 ex_halbtc8192e2ant_bt_info_notify(pBtCoexist, tmpBuf, length); in EXhalbtcoutsrc_bt_info_notify()
4445 else if (pBtCoexist->board_info.btdm_ant_num == 1) in EXhalbtcoutsrc_bt_info_notify()
4446 ex_halbtc8192e1ant_bt_info_notify(pBtCoexist, tmpBuf, length); in EXhalbtcoutsrc_bt_info_notify()
4451 else if (IS_HARDWARE_TYPE_8812(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_bt_info_notify()
4452 if (pBtCoexist->board_info.btdm_ant_num == 2) in EXhalbtcoutsrc_bt_info_notify()
4453 ex_halbtc8812a2ant_bt_info_notify(pBtCoexist, tmpBuf, length); in EXhalbtcoutsrc_bt_info_notify()
4454 else if (pBtCoexist->board_info.btdm_ant_num == 1) in EXhalbtcoutsrc_bt_info_notify()
4455 ex_halbtc8812a1ant_bt_info_notify(pBtCoexist, tmpBuf, length); in EXhalbtcoutsrc_bt_info_notify()
4460 else if (IS_HARDWARE_TYPE_8822B(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_bt_info_notify()
4461 if (pBtCoexist->board_info.btdm_ant_num == 1) in EXhalbtcoutsrc_bt_info_notify()
4462 ex_halbtc8822b1ant_bt_info_notify(pBtCoexist, tmpBuf, length); in EXhalbtcoutsrc_bt_info_notify()
4463 else if (pBtCoexist->board_info.btdm_ant_num == 2) in EXhalbtcoutsrc_bt_info_notify()
4464 ex_halbtc8822b2ant_bt_info_notify(pBtCoexist, tmpBuf, length); in EXhalbtcoutsrc_bt_info_notify()
4469 else if (IS_HARDWARE_TYPE_8821C(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_bt_info_notify()
4470 if (pBtCoexist->board_info.btdm_ant_num == 2) in EXhalbtcoutsrc_bt_info_notify()
4471 ex_halbtc8821c2ant_bt_info_notify(pBtCoexist, tmpBuf, length); in EXhalbtcoutsrc_bt_info_notify()
4472 else if (pBtCoexist->board_info.btdm_ant_num == 1) in EXhalbtcoutsrc_bt_info_notify()
4473 ex_halbtc8821c1ant_bt_info_notify(pBtCoexist, tmpBuf, length); in EXhalbtcoutsrc_bt_info_notify()
4478 else if (IS_HARDWARE_TYPE_8814A(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_bt_info_notify()
4479 if (pBtCoexist->board_info.btdm_ant_num == 2) in EXhalbtcoutsrc_bt_info_notify()
4480 ex_halbtc8814a2ant_bt_info_notify(pBtCoexist, tmpBuf, length); in EXhalbtcoutsrc_bt_info_notify()
4489 void EXhalbtcoutsrc_WlFwDbgInfoNotify(PBTC_COEXIST pBtCoexist, u8* tmpBuf, u8 length) in EXhalbtcoutsrc_WlFwDbgInfoNotify() argument
4491 if (!halbtcoutsrc_IsBtCoexistAvailable(pBtCoexist)) in EXhalbtcoutsrc_WlFwDbgInfoNotify()
4495 rtw_btc_ex_wl_fwdbginfo_notify(pBtCoexist, tmpBuf, length); in EXhalbtcoutsrc_WlFwDbgInfoNotify()
4498 if (IS_HARDWARE_TYPE_8703B(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_WlFwDbgInfoNotify()
4500 if (pBtCoexist->board_info.btdm_ant_num == 1) in EXhalbtcoutsrc_WlFwDbgInfoNotify()
4501 ex_halbtc8703b1ant_wl_fwdbginfo_notify(pBtCoexist, tmpBuf, length); in EXhalbtcoutsrc_WlFwDbgInfoNotify()
4506 else if (IS_HARDWARE_TYPE_8723D(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_WlFwDbgInfoNotify()
4507 if (pBtCoexist->board_info.btdm_ant_num == 1) in EXhalbtcoutsrc_WlFwDbgInfoNotify()
4508 ex_halbtc8723d1ant_wl_fwdbginfo_notify(pBtCoexist, tmpBuf, length); in EXhalbtcoutsrc_WlFwDbgInfoNotify()
4509 else if (pBtCoexist->board_info.btdm_ant_num == 2) in EXhalbtcoutsrc_WlFwDbgInfoNotify()
4510 ex_halbtc8723d2ant_wl_fwdbginfo_notify(pBtCoexist, tmpBuf, length); in EXhalbtcoutsrc_WlFwDbgInfoNotify()
4515 else if (IS_HARDWARE_TYPE_8821C(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_WlFwDbgInfoNotify()
4516 if (pBtCoexist->board_info.btdm_ant_num == 2) in EXhalbtcoutsrc_WlFwDbgInfoNotify()
4517 ex_halbtc8821c2ant_wl_fwdbginfo_notify(pBtCoexist, tmpBuf, length); in EXhalbtcoutsrc_WlFwDbgInfoNotify()
4518 else if (pBtCoexist->board_info.btdm_ant_num == 1) in EXhalbtcoutsrc_WlFwDbgInfoNotify()
4519 ex_halbtc8821c1ant_wl_fwdbginfo_notify(pBtCoexist, tmpBuf, length); in EXhalbtcoutsrc_WlFwDbgInfoNotify()
4526 void EXhalbtcoutsrc_rx_rate_change_notify(PBTC_COEXIST pBtCoexist, u8 is_data_frame, u8 btc_rate_id) in EXhalbtcoutsrc_rx_rate_change_notify() argument
4528 if (!halbtcoutsrc_IsBtCoexistAvailable(pBtCoexist)) in EXhalbtcoutsrc_rx_rate_change_notify()
4531 pBtCoexist->statistics.cnt_rate_id_notify++; in EXhalbtcoutsrc_rx_rate_change_notify()
4534 rtw_btc_ex_rx_rate_change_notify(pBtCoexist, is_data_frame, btc_rate_id); in EXhalbtcoutsrc_rx_rate_change_notify()
4537 if (IS_HARDWARE_TYPE_8703B(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_rx_rate_change_notify()
4539 if (pBtCoexist->board_info.btdm_ant_num == 1) in EXhalbtcoutsrc_rx_rate_change_notify()
4540 ex_halbtc8703b1ant_rx_rate_change_notify(pBtCoexist, is_data_frame, btc_rate_id); in EXhalbtcoutsrc_rx_rate_change_notify()
4545 else if (IS_HARDWARE_TYPE_8723D(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_rx_rate_change_notify()
4546 if (pBtCoexist->board_info.btdm_ant_num == 1) in EXhalbtcoutsrc_rx_rate_change_notify()
4547 ex_halbtc8723d1ant_rx_rate_change_notify(pBtCoexist, is_data_frame, btc_rate_id); in EXhalbtcoutsrc_rx_rate_change_notify()
4548 else if (pBtCoexist->board_info.btdm_ant_num == 2) in EXhalbtcoutsrc_rx_rate_change_notify()
4549 ex_halbtc8723d2ant_rx_rate_change_notify(pBtCoexist, is_data_frame, btc_rate_id); in EXhalbtcoutsrc_rx_rate_change_notify()
4554 else if (IS_HARDWARE_TYPE_8821C(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_rx_rate_change_notify()
4555 if (pBtCoexist->board_info.btdm_ant_num == 1) in EXhalbtcoutsrc_rx_rate_change_notify()
4556 ex_halbtc8821c1ant_rx_rate_change_notify(pBtCoexist, is_data_frame, btc_rate_id); in EXhalbtcoutsrc_rx_rate_change_notify()
4557 else if (pBtCoexist->board_info.btdm_ant_num == 2) in EXhalbtcoutsrc_rx_rate_change_notify()
4558 ex_halbtc8821c2ant_rx_rate_change_notify(pBtCoexist, is_data_frame, btc_rate_id); in EXhalbtcoutsrc_rx_rate_change_notify()
4567 PBTC_COEXIST pBtCoexist, in EXhalbtcoutsrc_RfStatusNotify() argument
4571 if (!halbtcoutsrc_IsBtCoexistAvailable(pBtCoexist)) in EXhalbtcoutsrc_RfStatusNotify()
4573 pBtCoexist->statistics.cnt_rf_status_notify++; in EXhalbtcoutsrc_RfStatusNotify()
4576 rtw_btc_ex_rf_status_notify(pBtCoexist, type); in EXhalbtcoutsrc_RfStatusNotify()
4579 if (IS_HARDWARE_TYPE_8723B(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_RfStatusNotify()
4581 if (pBtCoexist->board_info.btdm_ant_num == 1) in EXhalbtcoutsrc_RfStatusNotify()
4582 ex_halbtc8723b1ant_rf_status_notify(pBtCoexist, type); in EXhalbtcoutsrc_RfStatusNotify()
4587 else if (IS_HARDWARE_TYPE_8703B(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_RfStatusNotify()
4588 if (pBtCoexist->board_info.btdm_ant_num == 1) in EXhalbtcoutsrc_RfStatusNotify()
4589 ex_halbtc8703b1ant_rf_status_notify(pBtCoexist, type); in EXhalbtcoutsrc_RfStatusNotify()
4594 else if (IS_HARDWARE_TYPE_8723D(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_RfStatusNotify()
4595 if (pBtCoexist->board_info.btdm_ant_num == 1) in EXhalbtcoutsrc_RfStatusNotify()
4596 ex_halbtc8723d1ant_rf_status_notify(pBtCoexist, type); in EXhalbtcoutsrc_RfStatusNotify()
4601 else if (IS_HARDWARE_TYPE_8822B(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_RfStatusNotify()
4602 if (pBtCoexist->board_info.btdm_ant_num == 1) in EXhalbtcoutsrc_RfStatusNotify()
4603 ex_halbtc8822b1ant_rf_status_notify(pBtCoexist, type); in EXhalbtcoutsrc_RfStatusNotify()
4604 else if (pBtCoexist->board_info.btdm_ant_num == 2) in EXhalbtcoutsrc_RfStatusNotify()
4605 ex_halbtc8822b2ant_rf_status_notify(pBtCoexist, type); in EXhalbtcoutsrc_RfStatusNotify()
4610 else if (IS_HARDWARE_TYPE_8821C(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_RfStatusNotify()
4611 if (pBtCoexist->board_info.btdm_ant_num == 2) in EXhalbtcoutsrc_RfStatusNotify()
4612 ex_halbtc8821c2ant_rf_status_notify(pBtCoexist, type); in EXhalbtcoutsrc_RfStatusNotify()
4613 else if (pBtCoexist->board_info.btdm_ant_num == 1) in EXhalbtcoutsrc_RfStatusNotify()
4614 ex_halbtc8821c1ant_rf_status_notify(pBtCoexist, type); in EXhalbtcoutsrc_RfStatusNotify()
4619 else if (IS_HARDWARE_TYPE_8814A(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_RfStatusNotify()
4620 if (pBtCoexist->board_info.btdm_ant_num == 2) in EXhalbtcoutsrc_RfStatusNotify()
4621 ex_halbtc8814a2ant_rf_status_notify(pBtCoexist, type); in EXhalbtcoutsrc_RfStatusNotify()
4628 void EXhalbtcoutsrc_StackOperationNotify(PBTC_COEXIST pBtCoexist, u8 type) in EXhalbtcoutsrc_StackOperationNotify() argument
4633 if (!halbtcoutsrc_IsBtCoexistAvailable(pBtCoexist)) in EXhalbtcoutsrc_StackOperationNotify()
4635 pBtCoexist->statistics.cntStackOperationNotify++; in EXhalbtcoutsrc_StackOperationNotify()
4636 if (pBtCoexist->manual_control) in EXhalbtcoutsrc_StackOperationNotify()
4654 void EXhalbtcoutsrc_halt_notify(PBTC_COEXIST pBtCoexist) in EXhalbtcoutsrc_halt_notify() argument
4656 if (!halbtcoutsrc_IsBtCoexistAvailable(pBtCoexist)) in EXhalbtcoutsrc_halt_notify()
4659 pBtCoexist->statistics.cnt_halt_notify++; in EXhalbtcoutsrc_halt_notify()
4662 rtw_btc_ex_halt_notify(pBtCoexist); in EXhalbtcoutsrc_halt_notify()
4665 if (IS_HARDWARE_TYPE_8821(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_halt_notify()
4667 if (pBtCoexist->board_info.btdm_ant_num == 2) in EXhalbtcoutsrc_halt_notify()
4668 ex_halbtc8821a2ant_halt_notify(pBtCoexist); in EXhalbtcoutsrc_halt_notify()
4669 else if (pBtCoexist->board_info.btdm_ant_num == 1) in EXhalbtcoutsrc_halt_notify()
4670 ex_halbtc8821a1ant_halt_notify(pBtCoexist); in EXhalbtcoutsrc_halt_notify()
4675 else if (IS_HARDWARE_TYPE_8723B(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_halt_notify()
4676 if (pBtCoexist->board_info.btdm_ant_num == 2) in EXhalbtcoutsrc_halt_notify()
4677 ex_halbtc8723b2ant_halt_notify(pBtCoexist); in EXhalbtcoutsrc_halt_notify()
4678 else if (pBtCoexist->board_info.btdm_ant_num == 1) in EXhalbtcoutsrc_halt_notify()
4679 ex_halbtc8723b1ant_halt_notify(pBtCoexist); in EXhalbtcoutsrc_halt_notify()
4684 else if (IS_HARDWARE_TYPE_8703B(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_halt_notify()
4685 if (pBtCoexist->board_info.btdm_ant_num == 1) in EXhalbtcoutsrc_halt_notify()
4686 ex_halbtc8703b1ant_halt_notify(pBtCoexist); in EXhalbtcoutsrc_halt_notify()
4691 else if (IS_HARDWARE_TYPE_8723D(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_halt_notify()
4692 if (pBtCoexist->board_info.btdm_ant_num == 2) in EXhalbtcoutsrc_halt_notify()
4693 ex_halbtc8723d2ant_halt_notify(pBtCoexist); in EXhalbtcoutsrc_halt_notify()
4694 else if (pBtCoexist->board_info.btdm_ant_num == 1) in EXhalbtcoutsrc_halt_notify()
4695 ex_halbtc8723d1ant_halt_notify(pBtCoexist); in EXhalbtcoutsrc_halt_notify()
4700 else if (IS_HARDWARE_TYPE_8192E(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_halt_notify()
4701 if (pBtCoexist->board_info.btdm_ant_num == 2) in EXhalbtcoutsrc_halt_notify()
4702 ex_halbtc8192e2ant_halt_notify(pBtCoexist); in EXhalbtcoutsrc_halt_notify()
4703 else if (pBtCoexist->board_info.btdm_ant_num == 1) in EXhalbtcoutsrc_halt_notify()
4704 ex_halbtc8192e1ant_halt_notify(pBtCoexist); in EXhalbtcoutsrc_halt_notify()
4709 else if (IS_HARDWARE_TYPE_8812(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_halt_notify()
4710 if (pBtCoexist->board_info.btdm_ant_num == 2) in EXhalbtcoutsrc_halt_notify()
4711 ex_halbtc8812a2ant_halt_notify(pBtCoexist); in EXhalbtcoutsrc_halt_notify()
4712 else if (pBtCoexist->board_info.btdm_ant_num == 1) in EXhalbtcoutsrc_halt_notify()
4713 ex_halbtc8812a1ant_halt_notify(pBtCoexist); in EXhalbtcoutsrc_halt_notify()
4718 else if (IS_HARDWARE_TYPE_8822B(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_halt_notify()
4719 if (pBtCoexist->board_info.btdm_ant_num == 1) in EXhalbtcoutsrc_halt_notify()
4720 ex_halbtc8822b1ant_halt_notify(pBtCoexist); in EXhalbtcoutsrc_halt_notify()
4721 else if (pBtCoexist->board_info.btdm_ant_num == 2) in EXhalbtcoutsrc_halt_notify()
4722 ex_halbtc8822b2ant_halt_notify(pBtCoexist); in EXhalbtcoutsrc_halt_notify()
4727 else if (IS_HARDWARE_TYPE_8821C(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_halt_notify()
4728 if (pBtCoexist->board_info.btdm_ant_num == 2) in EXhalbtcoutsrc_halt_notify()
4729 ex_halbtc8821c2ant_halt_notify(pBtCoexist); in EXhalbtcoutsrc_halt_notify()
4730 else if (pBtCoexist->board_info.btdm_ant_num == 1) in EXhalbtcoutsrc_halt_notify()
4731 ex_halbtc8821c1ant_halt_notify(pBtCoexist); in EXhalbtcoutsrc_halt_notify()
4736 else if (IS_HARDWARE_TYPE_8814A(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_halt_notify()
4737 if (pBtCoexist->board_info.btdm_ant_num == 2) in EXhalbtcoutsrc_halt_notify()
4738 ex_halbtc8814a2ant_halt_notify(pBtCoexist); in EXhalbtcoutsrc_halt_notify()
4745 void EXhalbtcoutsrc_SwitchBtTRxMask(PBTC_COEXIST pBtCoexist) in EXhalbtcoutsrc_SwitchBtTRxMask() argument
4747 if (IS_HARDWARE_TYPE_8723B(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_SwitchBtTRxMask()
4748 if (pBtCoexist->board_info.btdm_ant_num == 2) { in EXhalbtcoutsrc_SwitchBtTRxMask()
4749 halbtcoutsrc_SetBtReg(pBtCoexist, 0, 0x3c, 0x01); /* BT goto standby while GNT_BT 1-->0 */ in EXhalbtcoutsrc_SwitchBtTRxMask()
4750 } else if (pBtCoexist->board_info.btdm_ant_num == 1) { in EXhalbtcoutsrc_SwitchBtTRxMask()
4751 halbtcoutsrc_SetBtReg(pBtCoexist, 0, 0x3c, 0x15); /* BT goto standby while GNT_BT 1-->0 */ in EXhalbtcoutsrc_SwitchBtTRxMask()
4756 void EXhalbtcoutsrc_pnp_notify(PBTC_COEXIST pBtCoexist, u8 pnpState) in EXhalbtcoutsrc_pnp_notify() argument
4758 if (!halbtcoutsrc_IsBtCoexistAvailable(pBtCoexist)) in EXhalbtcoutsrc_pnp_notify()
4761 pBtCoexist->statistics.cnt_pnp_notify++; in EXhalbtcoutsrc_pnp_notify()
4768 rtw_btc_ex_pnp_notify(pBtCoexist, pnpState); in EXhalbtcoutsrc_pnp_notify()
4771 if (IS_HARDWARE_TYPE_8723B(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_pnp_notify()
4773 if (pBtCoexist->board_info.btdm_ant_num == 1) in EXhalbtcoutsrc_pnp_notify()
4774 ex_halbtc8723b1ant_pnp_notify(pBtCoexist, pnpState); in EXhalbtcoutsrc_pnp_notify()
4775 else if (pBtCoexist->board_info.btdm_ant_num == 2) in EXhalbtcoutsrc_pnp_notify()
4776 ex_halbtc8723b2ant_pnp_notify(pBtCoexist, pnpState); in EXhalbtcoutsrc_pnp_notify()
4781 else if (IS_HARDWARE_TYPE_8703B(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_pnp_notify()
4782 if (pBtCoexist->board_info.btdm_ant_num == 1) in EXhalbtcoutsrc_pnp_notify()
4783 ex_halbtc8703b1ant_pnp_notify(pBtCoexist, pnpState); in EXhalbtcoutsrc_pnp_notify()
4788 else if (IS_HARDWARE_TYPE_8723D(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_pnp_notify()
4789 if (pBtCoexist->board_info.btdm_ant_num == 1) in EXhalbtcoutsrc_pnp_notify()
4790 ex_halbtc8723d1ant_pnp_notify(pBtCoexist, pnpState); in EXhalbtcoutsrc_pnp_notify()
4791 else if (pBtCoexist->board_info.btdm_ant_num == 2) in EXhalbtcoutsrc_pnp_notify()
4792 ex_halbtc8723d2ant_pnp_notify(pBtCoexist, pnpState); in EXhalbtcoutsrc_pnp_notify()
4797 else if (IS_HARDWARE_TYPE_8821(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_pnp_notify()
4798 if (pBtCoexist->board_info.btdm_ant_num == 1) in EXhalbtcoutsrc_pnp_notify()
4799 ex_halbtc8821a1ant_pnp_notify(pBtCoexist, pnpState); in EXhalbtcoutsrc_pnp_notify()
4800 else if (pBtCoexist->board_info.btdm_ant_num == 2) in EXhalbtcoutsrc_pnp_notify()
4801 ex_halbtc8821a2ant_pnp_notify(pBtCoexist, pnpState); in EXhalbtcoutsrc_pnp_notify()
4806 else if (IS_HARDWARE_TYPE_8192E(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_pnp_notify()
4807 if (pBtCoexist->board_info.btdm_ant_num == 1) in EXhalbtcoutsrc_pnp_notify()
4808 ex_halbtc8192e1ant_pnp_notify(pBtCoexist, pnpState); in EXhalbtcoutsrc_pnp_notify()
4813 else if (IS_HARDWARE_TYPE_8812(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_pnp_notify()
4814 if (pBtCoexist->board_info.btdm_ant_num == 1) in EXhalbtcoutsrc_pnp_notify()
4815 ex_halbtc8812a1ant_pnp_notify(pBtCoexist, pnpState); in EXhalbtcoutsrc_pnp_notify()
4820 else if (IS_HARDWARE_TYPE_8822B(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_pnp_notify()
4821 if (pBtCoexist->board_info.btdm_ant_num == 1) in EXhalbtcoutsrc_pnp_notify()
4822 ex_halbtc8822b1ant_pnp_notify(pBtCoexist, pnpState); in EXhalbtcoutsrc_pnp_notify()
4823 else if (pBtCoexist->board_info.btdm_ant_num == 2) in EXhalbtcoutsrc_pnp_notify()
4824 ex_halbtc8822b2ant_pnp_notify(pBtCoexist, pnpState); in EXhalbtcoutsrc_pnp_notify()
4829 else if (IS_HARDWARE_TYPE_8821C(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_pnp_notify()
4830 if (pBtCoexist->board_info.btdm_ant_num == 2) in EXhalbtcoutsrc_pnp_notify()
4831 ex_halbtc8821c2ant_pnp_notify(pBtCoexist, pnpState); in EXhalbtcoutsrc_pnp_notify()
4832 else if (pBtCoexist->board_info.btdm_ant_num == 1) in EXhalbtcoutsrc_pnp_notify()
4833 ex_halbtc8821c1ant_pnp_notify(pBtCoexist, pnpState); in EXhalbtcoutsrc_pnp_notify()
4838 else if (IS_HARDWARE_TYPE_8814A(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_pnp_notify()
4839 if (pBtCoexist->board_info.btdm_ant_num == 2) in EXhalbtcoutsrc_pnp_notify()
4840 ex_halbtc8814a2ant_pnp_notify(pBtCoexist, pnpState); in EXhalbtcoutsrc_pnp_notify()
4847 void EXhalbtcoutsrc_CoexDmSwitch(PBTC_COEXIST pBtCoexist) in EXhalbtcoutsrc_CoexDmSwitch() argument
4849 if (!halbtcoutsrc_IsBtCoexistAvailable(pBtCoexist)) in EXhalbtcoutsrc_CoexDmSwitch()
4851 pBtCoexist->statistics.cnt_coex_dm_switch++; in EXhalbtcoutsrc_CoexDmSwitch()
4853 halbtcoutsrc_LeaveLowPower(pBtCoexist); in EXhalbtcoutsrc_CoexDmSwitch()
4855 if (IS_HARDWARE_TYPE_8723B(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_CoexDmSwitch()
4857 if (pBtCoexist->board_info.btdm_ant_num == 1) { in EXhalbtcoutsrc_CoexDmSwitch()
4858 pBtCoexist->stop_coex_dm = TRUE; in EXhalbtcoutsrc_CoexDmSwitch()
4859 ex_halbtc8723b1ant_coex_dm_reset(pBtCoexist); in EXhalbtcoutsrc_CoexDmSwitch()
4861 ex_halbtc8723b2ant_init_hw_config(pBtCoexist, FALSE); in EXhalbtcoutsrc_CoexDmSwitch()
4862 ex_halbtc8723b2ant_init_coex_dm(pBtCoexist); in EXhalbtcoutsrc_CoexDmSwitch()
4863 pBtCoexist->stop_coex_dm = FALSE; in EXhalbtcoutsrc_CoexDmSwitch()
4869 else if (IS_HARDWARE_TYPE_8723D(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_CoexDmSwitch()
4870 if (pBtCoexist->board_info.btdm_ant_num == 1) { in EXhalbtcoutsrc_CoexDmSwitch()
4871 pBtCoexist->stop_coex_dm = TRUE; in EXhalbtcoutsrc_CoexDmSwitch()
4872 ex_halbtc8723d1ant_coex_dm_reset(pBtCoexist); in EXhalbtcoutsrc_CoexDmSwitch()
4874 ex_halbtc8723d2ant_init_hw_config(pBtCoexist, FALSE); in EXhalbtcoutsrc_CoexDmSwitch()
4875 ex_halbtc8723d2ant_init_coex_dm(pBtCoexist); in EXhalbtcoutsrc_CoexDmSwitch()
4876 pBtCoexist->stop_coex_dm = FALSE; in EXhalbtcoutsrc_CoexDmSwitch()
4881 halbtcoutsrc_NormalLowPower(pBtCoexist); in EXhalbtcoutsrc_CoexDmSwitch()
4885 void EXhalbtcoutsrc_TimerNotify(PBTC_COEXIST pBtCoexist, u32 timer_type) in EXhalbtcoutsrc_TimerNotify() argument
4887 rtw_btc_ex_timerup_notify(pBtCoexist, timer_type); in EXhalbtcoutsrc_TimerNotify()
4890 void EXhalbtcoutsrc_WLStatusChangeNotify(PBTC_COEXIST pBtCoexist, u32 change_type) in EXhalbtcoutsrc_WLStatusChangeNotify() argument
4892 rtw_btc_ex_wl_status_change_notify(pBtCoexist, change_type); in EXhalbtcoutsrc_WLStatusChangeNotify()
4895 u32 EXhalbtcoutsrc_CoexTimerCheck(PBTC_COEXIST pBtCoexist) in EXhalbtcoutsrc_CoexTimerCheck() argument
4900 if (pBtCoexist->coex_sta.cnt_timer[i] > 0) { in EXhalbtcoutsrc_CoexTimerCheck()
4901 if (pBtCoexist->coex_sta.cnt_timer[i] == 1) { in EXhalbtcoutsrc_CoexTimerCheck()
4906 pBtCoexist->coex_sta.cnt_timer[i]--; in EXhalbtcoutsrc_CoexTimerCheck()
4913 u32 EXhalbtcoutsrc_WLStatusCheck(PBTC_COEXIST pBtCoexist) in EXhalbtcoutsrc_WLStatusCheck() argument
4916 struct btc_coex_sta *coex_sta = &pBtCoexist->coex_sta; in EXhalbtcoutsrc_WLStatusCheck()
4917 const struct btc_chip_para *chip_para = pBtCoexist->chip_para; in EXhalbtcoutsrc_WLStatusCheck()
4926 halbtcoutsrc_wl_noisy_detect(pBtCoexist); in EXhalbtcoutsrc_WLStatusCheck()
4927 bt_ctr_change = halbtcoutsrc_btc_monitor_bt_ctr(pBtCoexist); in EXhalbtcoutsrc_WLStatusCheck()
4930 pBtCoexist->btc_get(pBtCoexist, BTC_GET_BL_WIFI_BUSY, &wl_busy); in EXhalbtcoutsrc_WLStatusCheck()
4941 pBtCoexist->btc_get(pBtCoexist, BTC_GET_S4_WIFI_RSSI, &wl_rssi); in EXhalbtcoutsrc_WLStatusCheck()
4954 pBtCoexist->btc_get(pBtCoexist, BTC_GET_BL_WIFI_LINK_INFO, &link_info); in EXhalbtcoutsrc_WLStatusCheck()
4955 if (link_info.link_mode != pBtCoexist->wifi_link_info.link_mode || in EXhalbtcoutsrc_WLStatusCheck()
4957 pBtCoexist->wifi_link_info.sta_center_channel || in EXhalbtcoutsrc_WLStatusCheck()
4959 pBtCoexist->wifi_link_info.p2p_center_channel || in EXhalbtcoutsrc_WLStatusCheck()
4961 pBtCoexist->wifi_link_info.bany_client_join_go) { in EXhalbtcoutsrc_WLStatusCheck()
4963 pBtCoexist->wifi_link_info = link_info; in EXhalbtcoutsrc_WLStatusCheck()
4967 pBtCoexist->btc_get(pBtCoexist, BTC_GET_U4_WIFI_TRAFFIC_DIR, &traffic_dir); in EXhalbtcoutsrc_WLStatusCheck()
4968 if (wl_busy && traffic_dir != pBtCoexist->wifi_link_info_ext.traffic_dir) { in EXhalbtcoutsrc_WLStatusCheck()
4970 pBtCoexist->wifi_link_info_ext.traffic_dir = traffic_dir; in EXhalbtcoutsrc_WLStatusCheck()
5005 void EXhalbtcoutsrc_status_monitor(PBTC_COEXIST pBtCoexist) in EXhalbtcoutsrc_status_monitor() argument
5009 timer_up_type = EXhalbtcoutsrc_CoexTimerCheck(pBtCoexist); in EXhalbtcoutsrc_status_monitor()
5011 EXhalbtcoutsrc_TimerNotify(pBtCoexist, timer_up_type); in EXhalbtcoutsrc_status_monitor()
5013 wl_status_change_type = EXhalbtcoutsrc_WLStatusCheck(pBtCoexist); in EXhalbtcoutsrc_status_monitor()
5015 EXhalbtcoutsrc_WLStatusChangeNotify(pBtCoexist, wl_status_change_type); in EXhalbtcoutsrc_status_monitor()
5017 rtw_btc_ex_periodical(pBtCoexist); in EXhalbtcoutsrc_status_monitor()
5021 void EXhalbtcoutsrc_WL_RFK_Notify(PBTC_COEXIST pBtCoexist, u8 path, u8 type, u8 state) in EXhalbtcoutsrc_WL_RFK_Notify() argument
5024 rtw_btc_ex_wl_rfk_notify(pBtCoexist, path, type, state); in EXhalbtcoutsrc_WL_RFK_Notify()
5029 void EXhalbtcoutsrc_periodical(PBTC_COEXIST pBtCoexist) in EXhalbtcoutsrc_periodical() argument
5031 if (!halbtcoutsrc_IsBtCoexistAvailable(pBtCoexist)) in EXhalbtcoutsrc_periodical()
5033 pBtCoexist->statistics.cnt_periodical++; in EXhalbtcoutsrc_periodical()
5039 EXhalbtcoutsrc_status_monitor(pBtCoexist); in EXhalbtcoutsrc_periodical()
5042 if (IS_HARDWARE_TYPE_8821(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_periodical()
5044 if (pBtCoexist->board_info.btdm_ant_num == 2) in EXhalbtcoutsrc_periodical()
5045 ex_halbtc8821a2ant_periodical(pBtCoexist); in EXhalbtcoutsrc_periodical()
5046 else if (pBtCoexist->board_info.btdm_ant_num == 1) { in EXhalbtcoutsrc_periodical()
5047 if (!halbtcoutsrc_UnderIps(pBtCoexist)) in EXhalbtcoutsrc_periodical()
5048 ex_halbtc8821a1ant_periodical(pBtCoexist); in EXhalbtcoutsrc_periodical()
5054 else if (IS_HARDWARE_TYPE_8723B(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_periodical()
5055 if (pBtCoexist->board_info.btdm_ant_num == 2) in EXhalbtcoutsrc_periodical()
5056 ex_halbtc8723b2ant_periodical(pBtCoexist); in EXhalbtcoutsrc_periodical()
5057 else if (pBtCoexist->board_info.btdm_ant_num == 1) in EXhalbtcoutsrc_periodical()
5058 ex_halbtc8723b1ant_periodical(pBtCoexist); in EXhalbtcoutsrc_periodical()
5063 else if (IS_HARDWARE_TYPE_8723D(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_periodical()
5064 if (pBtCoexist->board_info.btdm_ant_num == 2) in EXhalbtcoutsrc_periodical()
5065 ex_halbtc8723d2ant_periodical(pBtCoexist); in EXhalbtcoutsrc_periodical()
5066 else if (pBtCoexist->board_info.btdm_ant_num == 1) in EXhalbtcoutsrc_periodical()
5067 ex_halbtc8723d1ant_periodical(pBtCoexist); in EXhalbtcoutsrc_periodical()
5072 else if (IS_HARDWARE_TYPE_8703B(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_periodical()
5073 if (pBtCoexist->board_info.btdm_ant_num == 1) in EXhalbtcoutsrc_periodical()
5074 ex_halbtc8703b1ant_periodical(pBtCoexist); in EXhalbtcoutsrc_periodical()
5079 else if (IS_HARDWARE_TYPE_8192E(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_periodical()
5080 if (pBtCoexist->board_info.btdm_ant_num == 2) in EXhalbtcoutsrc_periodical()
5081 ex_halbtc8192e2ant_periodical(pBtCoexist); in EXhalbtcoutsrc_periodical()
5082 else if (pBtCoexist->board_info.btdm_ant_num == 1) in EXhalbtcoutsrc_periodical()
5083 ex_halbtc8192e1ant_periodical(pBtCoexist); in EXhalbtcoutsrc_periodical()
5088 else if (IS_HARDWARE_TYPE_8812(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_periodical()
5089 if (pBtCoexist->board_info.btdm_ant_num == 2) in EXhalbtcoutsrc_periodical()
5090 ex_halbtc8812a2ant_periodical(pBtCoexist); in EXhalbtcoutsrc_periodical()
5091 else if (pBtCoexist->board_info.btdm_ant_num == 1) in EXhalbtcoutsrc_periodical()
5092 ex_halbtc8812a1ant_periodical(pBtCoexist); in EXhalbtcoutsrc_periodical()
5097 else if (IS_HARDWARE_TYPE_8822B(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_periodical()
5098 if (pBtCoexist->board_info.btdm_ant_num == 1) in EXhalbtcoutsrc_periodical()
5099 ex_halbtc8822b1ant_periodical(pBtCoexist); in EXhalbtcoutsrc_periodical()
5100 else if (pBtCoexist->board_info.btdm_ant_num == 2) in EXhalbtcoutsrc_periodical()
5101 ex_halbtc8822b2ant_periodical(pBtCoexist); in EXhalbtcoutsrc_periodical()
5106 else if (IS_HARDWARE_TYPE_8821C(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_periodical()
5107 if (pBtCoexist->board_info.btdm_ant_num == 2) in EXhalbtcoutsrc_periodical()
5108 ex_halbtc8821c2ant_periodical(pBtCoexist); in EXhalbtcoutsrc_periodical()
5109 else if (pBtCoexist->board_info.btdm_ant_num == 1) in EXhalbtcoutsrc_periodical()
5110 ex_halbtc8821c1ant_periodical(pBtCoexist); in EXhalbtcoutsrc_periodical()
5115 else if (IS_HARDWARE_TYPE_8814A(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_periodical()
5116 if (pBtCoexist->board_info.btdm_ant_num == 2) in EXhalbtcoutsrc_periodical()
5117 ex_halbtc8814a2ant_periodical(pBtCoexist); in EXhalbtcoutsrc_periodical()
5126 void EXhalbtcoutsrc_dbg_control(PBTC_COEXIST pBtCoexist, u8 opCode, u8 opLen, u8 *pData) in EXhalbtcoutsrc_dbg_control() argument
5128 if (!halbtcoutsrc_IsBtCoexistAvailable(pBtCoexist)) in EXhalbtcoutsrc_dbg_control()
5131 pBtCoexist->statistics.cnt_dbg_ctrl++; in EXhalbtcoutsrc_dbg_control()
5140 if (IS_HARDWARE_TYPE_8192E(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_dbg_control()
5142 if (pBtCoexist->board_info.btdm_ant_num == 1) in EXhalbtcoutsrc_dbg_control()
5143 ex_halbtc8192e1ant_dbg_control(pBtCoexist, opCode, opLen, pData); in EXhalbtcoutsrc_dbg_control()
5148 else if (IS_HARDWARE_TYPE_8812(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_dbg_control()
5149 if (pBtCoexist->board_info.btdm_ant_num == 2) in EXhalbtcoutsrc_dbg_control()
5150 ex_halbtc8812a2ant_dbg_control(pBtCoexist, opCode, opLen, pData); in EXhalbtcoutsrc_dbg_control()
5151 else if (pBtCoexist->board_info.btdm_ant_num == 1) in EXhalbtcoutsrc_dbg_control()
5152 ex_halbtc8812a1ant_dbg_control(pBtCoexist, opCode, opLen, pData); in EXhalbtcoutsrc_dbg_control()
5157 else if (IS_HARDWARE_TYPE_8822B(pBtCoexist->Adapter)) in EXhalbtcoutsrc_dbg_control()
5158 if(pBtCoexist->board_info.btdm_ant_num == 1) in EXhalbtcoutsrc_dbg_control()
5159 ex_halbtc8822b1ant_dbg_control(pBtCoexist, opCode, opLen, pData); in EXhalbtcoutsrc_dbg_control()
5170 PBTC_COEXIST pBtCoexist,
5177 if (!halbtcoutsrc_IsBtCoexistAvailable(pBtCoexist))
5182 IPSDisable(pBtCoexist->Adapter, FALSE, 0);
5183 LeisurePSLeave(pBtCoexist->Adapter, LPS_DISABLE_BT_COEX);
5186 if (IS_HARDWARE_TYPE_8723B(pBtCoexist->Adapter)) {
5187 if (pBtCoexist->board_info.btdm_ant_num == 1)
5188 ex_halbtc8723b1ant_AntennaDetection(pBtCoexist, centFreq, offset, span, seconds);
5198 PBTC_COEXIST pBtCoexist = &GLBtCoexist; in EXhalbtcoutsrc_StackUpdateProfileInfo() local
5203 if (!halbtcoutsrc_IsBtCoexistAvailable(pBtCoexist)) in EXhalbtcoutsrc_StackUpdateProfileInfo()
5206 padapter = (PADAPTER)pBtCoexist->Adapter; in EXhalbtcoutsrc_StackUpdateProfileInfo()
5209 pBtCoexist->stack_info.profile_notified = _TRUE; in EXhalbtcoutsrc_StackUpdateProfileInfo()
5211 pBtCoexist->stack_info.num_of_link = in EXhalbtcoutsrc_StackUpdateProfileInfo()
5215 pBtCoexist->stack_info.bt_link_exist = _FALSE; in EXhalbtcoutsrc_StackUpdateProfileInfo()
5216 pBtCoexist->stack_info.sco_exist = _FALSE; in EXhalbtcoutsrc_StackUpdateProfileInfo()
5217 pBtCoexist->stack_info.acl_exist = _FALSE; in EXhalbtcoutsrc_StackUpdateProfileInfo()
5218 pBtCoexist->stack_info.a2dp_exist = _FALSE; in EXhalbtcoutsrc_StackUpdateProfileInfo()
5219 pBtCoexist->stack_info.hid_exist = _FALSE; in EXhalbtcoutsrc_StackUpdateProfileInfo()
5220 pBtCoexist->stack_info.num_of_hid = 0; in EXhalbtcoutsrc_StackUpdateProfileInfo()
5221 pBtCoexist->stack_info.pan_exist = _FALSE; in EXhalbtcoutsrc_StackUpdateProfileInfo()
5224 pBtCoexist->stack_info.min_bt_rssi = 0; in EXhalbtcoutsrc_StackUpdateProfileInfo()
5226 if (pBtCoexist->stack_info.num_of_link) { in EXhalbtcoutsrc_StackUpdateProfileInfo()
5227 pBtCoexist->stack_info.bt_link_exist = _TRUE; in EXhalbtcoutsrc_StackUpdateProfileInfo()
5229 pBtCoexist->stack_info.sco_exist = _TRUE; in EXhalbtcoutsrc_StackUpdateProfileInfo()
5231 pBtCoexist->stack_info.acl_exist = _TRUE; in EXhalbtcoutsrc_StackUpdateProfileInfo()
5236 pBtCoexist->stack_info.a2dp_exist = _TRUE; in EXhalbtcoutsrc_StackUpdateProfileInfo()
5238 pBtCoexist->stack_info.pan_exist = _TRUE; in EXhalbtcoutsrc_StackUpdateProfileInfo()
5240 pBtCoexist->stack_info.hid_exist = _TRUE; in EXhalbtcoutsrc_StackUpdateProfileInfo()
5241 pBtCoexist->stack_info.num_of_hid++; in EXhalbtcoutsrc_StackUpdateProfileInfo()
5243 pBtCoexist->stack_info.unknown_acl_exist = _TRUE; in EXhalbtcoutsrc_StackUpdateProfileInfo()
5250 PBTC_COEXIST pBtCoexist = &GLBtCoexist; in EXhalbtcoutsrc_UpdateMinBtRssi() local
5252 if (!halbtcoutsrc_IsBtCoexistAvailable(pBtCoexist)) in EXhalbtcoutsrc_UpdateMinBtRssi()
5255 pBtCoexist->stack_info.min_bt_rssi = btRssi; in EXhalbtcoutsrc_UpdateMinBtRssi()
5260 PBTC_COEXIST pBtCoexist = &GLBtCoexist; in EXhalbtcoutsrc_SetHciVersion() local
5262 if (!halbtcoutsrc_IsBtCoexistAvailable(pBtCoexist)) in EXhalbtcoutsrc_SetHciVersion()
5265 pBtCoexist->stack_info.hci_version = hciVersion; in EXhalbtcoutsrc_SetHciVersion()
5270 PBTC_COEXIST pBtCoexist = &GLBtCoexist; in EXhalbtcoutsrc_SetBtPatchVersion() local
5272 if (!halbtcoutsrc_IsBtCoexistAvailable(pBtCoexist)) in EXhalbtcoutsrc_SetBtPatchVersion()
5275 pBtCoexist->bt_info.bt_real_fw_ver = btPatchVersion; in EXhalbtcoutsrc_SetBtPatchVersion()
5276 pBtCoexist->bt_info.bt_hci_ver = btHciVersion; in EXhalbtcoutsrc_SetBtPatchVersion()
5344 void EXhalbtcoutsrc_DisplayBtCoexInfo(PBTC_COEXIST pBtCoexist) in EXhalbtcoutsrc_DisplayBtCoexInfo() argument
5348 if (!halbtcoutsrc_IsBtCoexistAvailable(pBtCoexist)) in EXhalbtcoutsrc_DisplayBtCoexInfo()
5351 halbtcoutsrc_LeaveLowPower(pBtCoexist); in EXhalbtcoutsrc_DisplayBtCoexInfo()
5354 halbtcoutsrc_EnterPwrLock(pBtCoexist); in EXhalbtcoutsrc_DisplayBtCoexInfo()
5357 pHalData = GET_HAL_DATA((PADAPTER)pBtCoexist->Adapter); in EXhalbtcoutsrc_DisplayBtCoexInfo()
5360 rtw_btc_ex_display_coex_info(pBtCoexist); in EXhalbtcoutsrc_DisplayBtCoexInfo()
5363 if (IS_HARDWARE_TYPE_8821(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_DisplayBtCoexInfo()
5365 if (pBtCoexist->board_info.btdm_ant_num == 2) in EXhalbtcoutsrc_DisplayBtCoexInfo()
5366 ex_halbtc8821a2ant_display_coex_info(pBtCoexist); in EXhalbtcoutsrc_DisplayBtCoexInfo()
5367 else if (pBtCoexist->board_info.btdm_ant_num == 1) in EXhalbtcoutsrc_DisplayBtCoexInfo()
5368 ex_halbtc8821a1ant_display_coex_info(pBtCoexist); in EXhalbtcoutsrc_DisplayBtCoexInfo()
5373 else if (IS_HARDWARE_TYPE_8723B(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_DisplayBtCoexInfo()
5374 if (pBtCoexist->board_info.btdm_ant_num == 2) in EXhalbtcoutsrc_DisplayBtCoexInfo()
5375 ex_halbtc8723b2ant_display_coex_info(pBtCoexist); in EXhalbtcoutsrc_DisplayBtCoexInfo()
5376 else if (pBtCoexist->board_info.btdm_ant_num == 1) in EXhalbtcoutsrc_DisplayBtCoexInfo()
5377 ex_halbtc8723b1ant_display_coex_info(pBtCoexist); in EXhalbtcoutsrc_DisplayBtCoexInfo()
5382 else if (IS_HARDWARE_TYPE_8703B(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_DisplayBtCoexInfo()
5383 if (pBtCoexist->board_info.btdm_ant_num == 1) in EXhalbtcoutsrc_DisplayBtCoexInfo()
5384 ex_halbtc8703b1ant_display_coex_info(pBtCoexist); in EXhalbtcoutsrc_DisplayBtCoexInfo()
5389 else if (IS_HARDWARE_TYPE_8723D(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_DisplayBtCoexInfo()
5390 if (pBtCoexist->board_info.btdm_ant_num == 2) in EXhalbtcoutsrc_DisplayBtCoexInfo()
5391 ex_halbtc8723d2ant_display_coex_info(pBtCoexist); in EXhalbtcoutsrc_DisplayBtCoexInfo()
5392 else if (pBtCoexist->board_info.btdm_ant_num == 1) in EXhalbtcoutsrc_DisplayBtCoexInfo()
5393 ex_halbtc8723d1ant_display_coex_info(pBtCoexist); in EXhalbtcoutsrc_DisplayBtCoexInfo()
5398 else if (IS_HARDWARE_TYPE_8192E(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_DisplayBtCoexInfo()
5399 if (pBtCoexist->board_info.btdm_ant_num == 2) in EXhalbtcoutsrc_DisplayBtCoexInfo()
5400 ex_halbtc8192e2ant_display_coex_info(pBtCoexist); in EXhalbtcoutsrc_DisplayBtCoexInfo()
5401 else if (pBtCoexist->board_info.btdm_ant_num == 1) in EXhalbtcoutsrc_DisplayBtCoexInfo()
5402 ex_halbtc8192e1ant_display_coex_info(pBtCoexist); in EXhalbtcoutsrc_DisplayBtCoexInfo()
5407 else if (IS_HARDWARE_TYPE_8812(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_DisplayBtCoexInfo()
5408 if (pBtCoexist->board_info.btdm_ant_num == 2) in EXhalbtcoutsrc_DisplayBtCoexInfo()
5409 ex_halbtc8812a2ant_display_coex_info(pBtCoexist); in EXhalbtcoutsrc_DisplayBtCoexInfo()
5410 else if (pBtCoexist->board_info.btdm_ant_num == 1) in EXhalbtcoutsrc_DisplayBtCoexInfo()
5411 ex_halbtc8812a1ant_display_coex_info(pBtCoexist); in EXhalbtcoutsrc_DisplayBtCoexInfo()
5416 else if (IS_HARDWARE_TYPE_8822B(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_DisplayBtCoexInfo()
5417 if (pBtCoexist->board_info.btdm_ant_num == 1) in EXhalbtcoutsrc_DisplayBtCoexInfo()
5418 ex_halbtc8822b1ant_display_coex_info(pBtCoexist); in EXhalbtcoutsrc_DisplayBtCoexInfo()
5419 else if (pBtCoexist->board_info.btdm_ant_num == 2) in EXhalbtcoutsrc_DisplayBtCoexInfo()
5420 ex_halbtc8822b2ant_display_coex_info(pBtCoexist); in EXhalbtcoutsrc_DisplayBtCoexInfo()
5425 else if (IS_HARDWARE_TYPE_8821C(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_DisplayBtCoexInfo()
5426 if (pBtCoexist->board_info.btdm_ant_num == 2) in EXhalbtcoutsrc_DisplayBtCoexInfo()
5427 ex_halbtc8821c2ant_display_coex_info(pBtCoexist); in EXhalbtcoutsrc_DisplayBtCoexInfo()
5428 else if (pBtCoexist->board_info.btdm_ant_num == 1) in EXhalbtcoutsrc_DisplayBtCoexInfo()
5429 ex_halbtc8821c1ant_display_coex_info(pBtCoexist); in EXhalbtcoutsrc_DisplayBtCoexInfo()
5434 else if (IS_HARDWARE_TYPE_8814A(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_DisplayBtCoexInfo()
5435 if (pBtCoexist->board_info.btdm_ant_num == 2) in EXhalbtcoutsrc_DisplayBtCoexInfo()
5436 ex_halbtc8814a2ant_display_coex_info(pBtCoexist); in EXhalbtcoutsrc_DisplayBtCoexInfo()
5442 halbtcoutsrc_ExitPwrLock(pBtCoexist); in EXhalbtcoutsrc_DisplayBtCoexInfo()
5444 halbtcoutsrc_NormalLowPower(pBtCoexist); in EXhalbtcoutsrc_DisplayBtCoexInfo()
5447 void EXhalbtcoutsrc_DisplayAntDetection(PBTC_COEXIST pBtCoexist) in EXhalbtcoutsrc_DisplayAntDetection() argument
5449 if (!halbtcoutsrc_IsBtCoexistAvailable(pBtCoexist)) in EXhalbtcoutsrc_DisplayAntDetection()
5452 halbtcoutsrc_LeaveLowPower(pBtCoexist); in EXhalbtcoutsrc_DisplayAntDetection()
5454 if (IS_HARDWARE_TYPE_8723B(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_DisplayAntDetection()
5456 if (pBtCoexist->board_info.btdm_ant_num == 1) in EXhalbtcoutsrc_DisplayAntDetection()
5457 ex_halbtc8723b1ant_display_ant_detection(pBtCoexist); in EXhalbtcoutsrc_DisplayAntDetection()
5461 halbtcoutsrc_NormalLowPower(pBtCoexist); in EXhalbtcoutsrc_DisplayAntDetection()
5464 void ex_halbtcoutsrc_pta_off_on_notify(PBTC_COEXIST pBtCoexist, u8 bBTON) in ex_halbtcoutsrc_pta_off_on_notify() argument
5466 if (IS_HARDWARE_TYPE_8812(pBtCoexist->Adapter)) { in ex_halbtcoutsrc_pta_off_on_notify()
5468 if (pBtCoexist->board_info.btdm_ant_num == 2) in ex_halbtcoutsrc_pta_off_on_notify()
5469 ex_halbtc8812a2ant_pta_off_on_notify(pBtCoexist, (bBTON == _TRUE) ? BTC_BT_ON : BTC_BT_OFF); in ex_halbtcoutsrc_pta_off_on_notify()
5474 else if (IS_HARDWARE_TYPE_8814A(pBtCoexist->Adapter)) { in ex_halbtcoutsrc_pta_off_on_notify()
5475 if (pBtCoexist->board_info.btdm_ant_num == 2) in ex_halbtcoutsrc_pta_off_on_notify()
5476 ex_halbtc8814a2ant_pta_off_on_notify(pBtCoexist, (bBTON == _TRUE) ? BTC_BT_ON : BTC_BT_OFF); in ex_halbtcoutsrc_pta_off_on_notify()
5498 void EXhalbtcoutsrc_switchband_notify(struct btc_coexist *pBtCoexist, u8 type) in EXhalbtcoutsrc_switchband_notify() argument
5500 if(!halbtcoutsrc_IsBtCoexistAvailable(pBtCoexist)) in EXhalbtcoutsrc_switchband_notify()
5503 if(pBtCoexist->manual_control) in EXhalbtcoutsrc_switchband_notify()
5509 rtw_btc_ex_switchband_notify(pBtCoexist, type); in EXhalbtcoutsrc_switchband_notify()
5512 if(IS_HARDWARE_TYPE_8822B(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_switchband_notify()
5514 if(pBtCoexist->board_info.btdm_ant_num == 1) in EXhalbtcoutsrc_switchband_notify()
5515 ex_halbtc8822b1ant_switchband_notify(pBtCoexist, type); in EXhalbtcoutsrc_switchband_notify()
5516 else if(pBtCoexist->board_info.btdm_ant_num == 2) in EXhalbtcoutsrc_switchband_notify()
5517 ex_halbtc8822b2ant_switchband_notify(pBtCoexist, type); in EXhalbtcoutsrc_switchband_notify()
5522 else if (IS_HARDWARE_TYPE_8821C(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_switchband_notify()
5523 if (pBtCoexist->board_info.btdm_ant_num == 2) in EXhalbtcoutsrc_switchband_notify()
5524 ex_halbtc8821c2ant_switchband_notify(pBtCoexist, type); in EXhalbtcoutsrc_switchband_notify()
5525 else if (pBtCoexist->board_info.btdm_ant_num == 1) in EXhalbtcoutsrc_switchband_notify()
5526 ex_halbtc8821c1ant_switchband_notify(pBtCoexist, type); in EXhalbtcoutsrc_switchband_notify()
5531 else if (IS_HARDWARE_TYPE_8814A(pBtCoexist->Adapter)) { in EXhalbtcoutsrc_switchband_notify()
5532 if (pBtCoexist->board_info.btdm_ant_num == 2) in EXhalbtcoutsrc_switchband_notify()
5533 ex_halbtc8814a2ant_switchband_notify(pBtCoexist, type); in EXhalbtcoutsrc_switchband_notify()
6417 PBTC_COEXIST pBtCoexist = &GLBtCoexist; in hal_btcoex_SetAntIsolationType() local
6427 pBtCoexist->board_info.ant_type = (u8)BTC_ANT_TYPE_0; in hal_btcoex_SetAntIsolationType()
6430 pBtCoexist->board_info.ant_type = (u8)BTC_ANT_TYPE_1; in hal_btcoex_SetAntIsolationType()
6433 pBtCoexist->board_info.ant_type = (u8)BTC_ANT_TYPE_2; in hal_btcoex_SetAntIsolationType()
6436 pBtCoexist->board_info.ant_type = (u8)BTC_ANT_TYPE_3; in hal_btcoex_SetAntIsolationType()
6439 pBtCoexist->board_info.ant_type = (u8)BTC_ANT_TYPE_4; in hal_btcoex_SetAntIsolationType()