.. | .. |
---|
1421 | 1421 | |
---|
1422 | 1422 | |
---|
1423 | 1423 | if (bTurnOn) { |
---|
1424 | | - if (pBtLinkInfo->bSlaveRole == true) |
---|
| 1424 | + if (pBtLinkInfo->bSlaveRole) |
---|
1425 | 1425 | psTdmaByte4Val = psTdmaByte4Val | 0x1; /* 0x778 = 0x1 at wifi slot (no blocking BT Low-Pri pkts) */ |
---|
1426 | 1426 | |
---|
1427 | 1427 | |
---|
.. | .. |
---|
1758 | 1758 | static s32 up, dn, m, n, WaitCount; |
---|
1759 | 1759 | s32 result; /* 0: no change, +1: increase WiFi duration, -1: decrease WiFi duration */ |
---|
1760 | 1760 | u8 retryCount = 0, btInfoExt; |
---|
1761 | | - bool bWifiBusy = false; |
---|
1762 | 1761 | |
---|
1763 | 1762 | BTC_PRINT( |
---|
1764 | 1763 | BTC_MSG_ALGORITHM, |
---|
1765 | 1764 | ALGO_TRACE_FW, |
---|
1766 | 1765 | ("[BTCoex], TdmaDurationAdjustForAcl()\n") |
---|
1767 | 1766 | ); |
---|
1768 | | - |
---|
1769 | | - if (BT_8723B_1ANT_WIFI_STATUS_CONNECTED_BUSY == wifiStatus) |
---|
1770 | | - bWifiBusy = true; |
---|
1771 | | - else |
---|
1772 | | - bWifiBusy = false; |
---|
1773 | 1767 | |
---|
1774 | 1768 | if ( |
---|
1775 | 1769 | (BT_8723B_1ANT_WIFI_STATUS_NON_CONNECTED_ASSO_AUTH_SCAN == wifiStatus) || |
---|
.. | .. |
---|
1813 | 1807 | result = 0; |
---|
1814 | 1808 | WaitCount = 0; |
---|
1815 | 1809 | } else { |
---|
1816 | | - /* accquire the BT TRx retry count from BT_Info byte2 */ |
---|
| 1810 | + /* acquire the BT TRx retry count from BT_Info byte2 */ |
---|
1817 | 1811 | retryCount = pCoexSta->btRetryCnt; |
---|
1818 | 1812 | btInfoExt = pCoexSta->btInfoExt; |
---|
1819 | 1813 | /* BTC_PRINT(BTC_MSG_ALGORITHM, ALGO_TRACE_FW_DETAIL, ("[BTCoex], retryCount = %d\n", retryCount)); */ |
---|
.. | .. |
---|
2337 | 2331 | ); |
---|
2338 | 2332 | } |
---|
2339 | 2333 | } else if ( |
---|
2340 | | - (pCoexSta->bPanExist == false) && |
---|
2341 | | - (pCoexSta->bA2dpExist == false) && |
---|
2342 | | - (pCoexSta->bHidExist == false) |
---|
| 2334 | + (!pCoexSta->bPanExist) && |
---|
| 2335 | + (!pCoexSta->bA2dpExist) && |
---|
| 2336 | + (!pCoexSta->bHidExist) |
---|
2343 | 2337 | ) |
---|
2344 | 2338 | halbtc8723b1ant_PowerSaveState(pBtCoexist, BTC_PS_WIFI_NATIVE, 0x0, 0x0); |
---|
2345 | 2339 | else |
---|