hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/drivers/staging/rtl8723bs/hal/HalBtc8723b1Ant.c
....@@ -1421,7 +1421,7 @@
14211421
14221422
14231423 if (bTurnOn) {
1424
- if (pBtLinkInfo->bSlaveRole == true)
1424
+ if (pBtLinkInfo->bSlaveRole)
14251425 psTdmaByte4Val = psTdmaByte4Val | 0x1; /* 0x778 = 0x1 at wifi slot (no blocking BT Low-Pri pkts) */
14261426
14271427
....@@ -1758,18 +1758,12 @@
17581758 static s32 up, dn, m, n, WaitCount;
17591759 s32 result; /* 0: no change, +1: increase WiFi duration, -1: decrease WiFi duration */
17601760 u8 retryCount = 0, btInfoExt;
1761
- bool bWifiBusy = false;
17621761
17631762 BTC_PRINT(
17641763 BTC_MSG_ALGORITHM,
17651764 ALGO_TRACE_FW,
17661765 ("[BTCoex], TdmaDurationAdjustForAcl()\n")
17671766 );
1768
-
1769
- if (BT_8723B_1ANT_WIFI_STATUS_CONNECTED_BUSY == wifiStatus)
1770
- bWifiBusy = true;
1771
- else
1772
- bWifiBusy = false;
17731767
17741768 if (
17751769 (BT_8723B_1ANT_WIFI_STATUS_NON_CONNECTED_ASSO_AUTH_SCAN == wifiStatus) ||
....@@ -1813,7 +1807,7 @@
18131807 result = 0;
18141808 WaitCount = 0;
18151809 } else {
1816
- /* accquire the BT TRx retry count from BT_Info byte2 */
1810
+ /* acquire the BT TRx retry count from BT_Info byte2 */
18171811 retryCount = pCoexSta->btRetryCnt;
18181812 btInfoExt = pCoexSta->btInfoExt;
18191813 /* BTC_PRINT(BTC_MSG_ALGORITHM, ALGO_TRACE_FW_DETAIL, ("[BTCoex], retryCount = %d\n", retryCount)); */
....@@ -2337,9 +2331,9 @@
23372331 );
23382332 }
23392333 } else if (
2340
- (pCoexSta->bPanExist == false) &&
2341
- (pCoexSta->bA2dpExist == false) &&
2342
- (pCoexSta->bHidExist == false)
2334
+ (!pCoexSta->bPanExist) &&
2335
+ (!pCoexSta->bA2dpExist) &&
2336
+ (!pCoexSta->bHidExist)
23432337 )
23442338 halbtc8723b1ant_PowerSaveState(pBtCoexist, BTC_PS_WIFI_NATIVE, 0x0, 0x0);
23452339 else