// extern function start with EXhalbtc8192e1ant_\r
//============================================================\r
VOID\r
-EXhalbtc8192e1ant_InitHwConfig(\r
+EXhalbtc8192e1ant_PowerOnSetting(\r
IN PBTC_COEXIST pBtCoexist\r
)\r
+{\r
+}\r
+\r
+VOID\r
+EXhalbtc8192e1ant_InitHwConfig(\r
+ IN PBTC_COEXIST pBtCoexist,\r
+ IN BOOLEAN bWifiOnly\r
+ )\r
{\r
u4Byte u4Tmp=0;\r
u2Byte u2Tmp=0;\r
pu1Byte cliBuf=pBtCoexist->cliBuf;\r
u1Byte u1Tmp[4], i, btInfoExt, psTdmaCase=0;\r
u4Byte u4Tmp[4];\r
- BOOLEAN bRoam=FALSE, bScan=FALSE, bLink=FALSE, bWifiUnder5G=FALSE;\r
- BOOLEAN bBtHsOn=FALSE, bWifiBusy=FALSE;\r
- s4Byte wifiRssi=0, btHsRssi=0;\r
- u4Byte wifiBw, wifiTrafficDir;\r
- u1Byte wifiDot11Chnl, wifiHsChnl;\r
u4Byte fwVer=0, btPatchVer=0;\r
\r
CL_SPRINTF(cliBuf, BT_TMP_BUF_SIZE, "\r\n ============[BT Coexist info]============");\r
CL_PRINTF(cliBuf);\r
}\r
\r
- if(!pBoardInfo->bBtExist)\r
- {\r
- CL_SPRINTF(cliBuf, BT_TMP_BUF_SIZE, "\r\n BT not exists !!!");\r
- CL_PRINTF(cliBuf);\r
- return;\r
- }\r
-\r
CL_SPRINTF(cliBuf, BT_TMP_BUF_SIZE, "\r\n %-35s = %d/ %d ", "Ant PG number/ Ant mechanism:", \\r
pBoardInfo->pgAntNum, pBoardInfo->btdmAntNum);\r
CL_PRINTF(cliBuf); \r
GLCoexVerDate8192e1Ant, GLCoexVer8192e1Ant, fwVer, btPatchVer, btPatchVer);\r
CL_PRINTF(cliBuf);\r
\r
- pBtCoexist->fBtcGet(pBtCoexist, BTC_GET_BL_HS_OPERATION, &bBtHsOn);\r
- pBtCoexist->fBtcGet(pBtCoexist, BTC_GET_U1_WIFI_DOT11_CHNL, &wifiDot11Chnl);\r
- pBtCoexist->fBtcGet(pBtCoexist, BTC_GET_U1_WIFI_HS_CHNL, &wifiHsChnl);\r
- CL_SPRINTF(cliBuf, BT_TMP_BUF_SIZE, "\r\n %-35s = %d / %d(%d)", "Dot11 channel / HsChnl(HsMode)", \\r
- wifiDot11Chnl, wifiHsChnl, bBtHsOn);\r
- CL_PRINTF(cliBuf);\r
-\r
- CL_SPRINTF(cliBuf, BT_TMP_BUF_SIZE, "\r\n %-35s = %02x %02x %02x ", "H2C Wifi inform bt chnl Info", \\r
+ CL_SPRINTF(cliBuf, BT_TMP_BUF_SIZE, "\r\n %-35s = %02x %02x %02x ", "Wifi channel informed to BT", \\r
pCoexDm->wifiChnlInfo[0], pCoexDm->wifiChnlInfo[1],\r
pCoexDm->wifiChnlInfo[2]);\r
CL_PRINTF(cliBuf);\r
\r
- pBtCoexist->fBtcGet(pBtCoexist, BTC_GET_S4_WIFI_RSSI, &wifiRssi);\r
- pBtCoexist->fBtcGet(pBtCoexist, BTC_GET_S4_HS_RSSI, &btHsRssi);\r
- CL_SPRINTF(cliBuf, BT_TMP_BUF_SIZE, "\r\n %-35s = %d/ %d", "Wifi rssi/ HS rssi", \\r
- wifiRssi, btHsRssi);\r
+ // wifi status\r
+ CL_SPRINTF(cliBuf, BT_TMP_BUF_SIZE, "\r\n %-35s", "============[Wifi Status]============");\r
CL_PRINTF(cliBuf);\r
+ pBtCoexist->fBtcDispDbgMsg(pBtCoexist, BTC_DBG_DISP_WIFI_STATUS);\r
\r
- pBtCoexist->fBtcGet(pBtCoexist, BTC_GET_BL_WIFI_SCAN, &bScan);\r
- pBtCoexist->fBtcGet(pBtCoexist, BTC_GET_BL_WIFI_LINK, &bLink);\r
- pBtCoexist->fBtcGet(pBtCoexist, BTC_GET_BL_WIFI_ROAM, &bRoam);\r
- CL_SPRINTF(cliBuf, BT_TMP_BUF_SIZE, "\r\n %-35s = %d/ %d/ %d ", "Wifi bLink/ bRoam/ bScan", \\r
- bLink, bRoam, bScan);\r
+ CL_SPRINTF(cliBuf, BT_TMP_BUF_SIZE, "\r\n %-35s", "============[BT Status]============");\r
CL_PRINTF(cliBuf);\r
\r
- pBtCoexist->fBtcGet(pBtCoexist, BTC_GET_BL_WIFI_UNDER_5G, &bWifiUnder5G);\r
- pBtCoexist->fBtcGet(pBtCoexist, BTC_GET_U4_WIFI_BW, &wifiBw);\r
- pBtCoexist->fBtcGet(pBtCoexist, BTC_GET_BL_WIFI_BUSY, &bWifiBusy);\r
- pBtCoexist->fBtcGet(pBtCoexist, BTC_GET_U4_WIFI_TRAFFIC_DIRECTION, &wifiTrafficDir);\r
- CL_SPRINTF(cliBuf, BT_TMP_BUF_SIZE, "\r\n %-35s = %s / %s/ %s ", "Wifi status", \\r
- (bWifiUnder5G? "5G":"2.4G"),\r
- ((BTC_WIFI_BW_LEGACY==wifiBw)? "Legacy": (((BTC_WIFI_BW_HT40==wifiBw)? "HT40":"HT20"))),\r
- ((!bWifiBusy)? "idle": ((BTC_WIFI_TRAFFIC_TX==wifiTrafficDir)? "uplink":"downlink")));\r
- CL_PRINTF(cliBuf);\r
CL_SPRINTF(cliBuf, BT_TMP_BUF_SIZE, "\r\n %-35s = [%s/ %d/ %d] ", "BT [status/ rssi/ retryCnt]", \\r
((pBtCoexist->btInfo.bBtDisabled)? ("disabled"): ((pCoexSta->bC2hBtInquiryPage)?("inquiry/page scan"):((BT_8192E_1ANT_BT_STATUS_NON_CONNECTED_IDLE == pCoexDm->btStatus)? "non-connected idle":\r
( (BT_8192E_1ANT_BT_STATUS_CONNECTED_IDLE == pCoexDm->btStatus)? "connected-idle":"busy")))),\r
CL_PRINTF(cliBuf);\r
}\r
}\r
- CL_SPRINTF(cliBuf, BT_TMP_BUF_SIZE, "\r\n %-35s = %s/%s, (0x%x/0x%x)", "PS state, IPS/LPS, (lps/rpwm)", \\r
- ((pCoexSta->bUnderIps? "IPS ON":"IPS OFF")),\r
- ((pCoexSta->bUnderLps? "LPS ON":"LPS OFF")), \r
- pBtCoexist->btInfo.lpsVal, \r
- pBtCoexist->btInfo.rpwmVal);\r
- CL_PRINTF(cliBuf);\r
- pBtCoexist->fBtcDispDbgMsg(pBtCoexist, BTC_DBG_DISP_FW_PWR_MODE_CMD);\r
-\r
- CL_SPRINTF(cliBuf, BT_TMP_BUF_SIZE, "\r\n %-35s = 0x%x ", "SS Type", \\r
- pCoexDm->curSsType);\r
- CL_PRINTF(cliBuf);\r
\r
if(!pBtCoexist->bManualControl)\r
{\r
CL_SPRINTF(cliBuf, BT_TMP_BUF_SIZE, "\r\n %-35s", "============[Sw mechanism]============");\r
CL_PRINTF(cliBuf);\r
\r
- CL_SPRINTF(cliBuf, BT_TMP_BUF_SIZE, "\r\n %-35s = %d(0x%x) ", "SM[SwDacSwing(lvl)]", \\r
- pCoexDm->bCurDacSwingOn, pCoexDm->curDacSwingLvl);\r
- CL_PRINTF(cliBuf);\r
-\r
CL_SPRINTF(cliBuf, BT_TMP_BUF_SIZE, "\r\n %-35s = %s/ %s/ %d ", "DelBA/ BtCtrlAgg/ AggSize", \\r
(pBtCoexist->btInfo.bRejectAggPkt? "Yes":"No"), (pBtCoexist->btInfo.bBtCtrlAggBufSize? "Yes":"No"),\r
pBtCoexist->btInfo.aggBufSize);\r
pCoexDm->errorCondition);\r
CL_PRINTF(cliBuf);\r
\r
- CL_SPRINTF(cliBuf, BT_TMP_BUF_SIZE, "\r\n %-35s = %d/ %d ", "DecBtPwrLvl/ IgnWlanAct", \\r
- pCoexDm->curBtDecPwrLvl, pCoexDm->bCurIgnoreWlanAct);\r
+ CL_SPRINTF(cliBuf, BT_TMP_BUF_SIZE, "\r\n %-35s = %d ", "IgnWlanAct", \\r
+ pCoexDm->bCurIgnoreWlanAct);\r
CL_PRINTF(cliBuf);\r
}\r
\r