Commit 117e9dcf authored by Hariprasad Kelam's avatar Hariprasad Kelam Committed by Greg Kroah-Hartman

staging: rtl8723bs: hal: move common code to macro

In halbtc8723b2ant_TdmaDurationAdjust function,below piece of code is
repeated many times.

halbtc8723b2ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, val);
pCoexDm->psTdmaDuAdjType = val;

So replace the same with "HAL_BTC8723B2ANT_DMA_DURATION_ADJUST" MACRO.
Signed-off-by: default avatarHariprasad Kelam <hariprasad.kelam@gmail.com>
-----
changes in v2: clean the changelog with proper indent
-----
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent a98daf5c
...@@ -7,6 +7,13 @@ ...@@ -7,6 +7,13 @@
#include "Mp_Precomp.h" #include "Mp_Precomp.h"
/* defines */
#define HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(val) \
do { \
halbtc8723b2ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, val); \
pCoexDm->psTdmaDuAdjType = val; \
} while (0)
/* Global variables, these are static variables */ /* Global variables, these are static variables */
static COEX_DM_8723B_2ANT GLCoexDm8723b2Ant; static COEX_DM_8723B_2ANT GLCoexDm8723b2Ant;
static PCOEX_DM_8723B_2ANT pCoexDm = &GLCoexDm8723b2Ant; static PCOEX_DM_8723B_2ANT pCoexDm = &GLCoexDm8723b2Ant;
...@@ -1599,63 +1606,43 @@ static void halbtc8723b2ant_TdmaDurationAdjust( ...@@ -1599,63 +1606,43 @@ static void halbtc8723b2ant_TdmaDurationAdjust(
{ {
if (bScoHid) { if (bScoHid) {
if (bTxPause) { if (bTxPause) {
if (maxInterval == 1) { if (maxInterval == 1)
halbtc8723b2ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 13); HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(13);
pCoexDm->psTdmaDuAdjType = 13; else if (maxInterval == 2)
} else if (maxInterval == 2) { HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(14);
halbtc8723b2ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 14); else if (maxInterval == 3)
pCoexDm->psTdmaDuAdjType = 14; HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(15);
} else if (maxInterval == 3) { else
halbtc8723b2ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 15); HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(15);
pCoexDm->psTdmaDuAdjType = 15;
} else {
halbtc8723b2ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 15);
pCoexDm->psTdmaDuAdjType = 15;
}
} else { } else {
if (maxInterval == 1) { if (maxInterval == 1)
halbtc8723b2ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 9); HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(9);
pCoexDm->psTdmaDuAdjType = 9; else if (maxInterval == 2)
} else if (maxInterval == 2) { HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(10);
halbtc8723b2ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 10); else if (maxInterval == 3)
pCoexDm->psTdmaDuAdjType = 10; HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(11);
} else if (maxInterval == 3) { else
halbtc8723b2ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 11); HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(11);
pCoexDm->psTdmaDuAdjType = 11;
} else {
halbtc8723b2ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 11);
pCoexDm->psTdmaDuAdjType = 11;
}
} }
} else { } else {
if (bTxPause) { if (bTxPause) {
if (maxInterval == 1) { if (maxInterval == 1)
halbtc8723b2ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 5); HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(5);
pCoexDm->psTdmaDuAdjType = 5; else if (maxInterval == 2)
} else if (maxInterval == 2) { HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(6);
halbtc8723b2ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 6); else if (maxInterval == 3)
pCoexDm->psTdmaDuAdjType = 6; HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(7);
} else if (maxInterval == 3) { else
halbtc8723b2ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 7); HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(7);
pCoexDm->psTdmaDuAdjType = 7;
} else {
halbtc8723b2ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 7);
pCoexDm->psTdmaDuAdjType = 7;
}
} else { } else {
if (maxInterval == 1) { if (maxInterval == 1)
halbtc8723b2ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 1); HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(1);
pCoexDm->psTdmaDuAdjType = 1; else if (maxInterval == 2)
} else if (maxInterval == 2) { HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(2);
halbtc8723b2ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 2); else if (maxInterval == 3)
pCoexDm->psTdmaDuAdjType = 2; HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(3);
} else if (maxInterval == 3) { else
halbtc8723b2ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 3); HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(3);
pCoexDm->psTdmaDuAdjType = 3;
} else {
halbtc8723b2ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 3);
pCoexDm->psTdmaDuAdjType = 3;
}
} }
} }
} }
...@@ -1741,442 +1728,295 @@ static void halbtc8723b2ant_TdmaDurationAdjust( ...@@ -1741,442 +1728,295 @@ static void halbtc8723b2ant_TdmaDurationAdjust(
if (bTxPause) { if (bTxPause) {
BTC_PRINT(BTC_MSG_ALGORITHM, ALGO_TRACE_FW_DETAIL, ("[BTCoex], TxPause = 1\n")); BTC_PRINT(BTC_MSG_ALGORITHM, ALGO_TRACE_FW_DETAIL, ("[BTCoex], TxPause = 1\n"));
if (pCoexDm->curPsTdma == 71) { if (pCoexDm->curPsTdma == 71)
halbtc8723b2ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 5); HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(5);
pCoexDm->psTdmaDuAdjType = 5; else if (pCoexDm->curPsTdma == 1)
} else if (pCoexDm->curPsTdma == 1) { HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(5);
halbtc8723b2ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 5); else if (pCoexDm->curPsTdma == 2)
pCoexDm->psTdmaDuAdjType = 5; HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(6);
} else if (pCoexDm->curPsTdma == 2) { else if (pCoexDm->curPsTdma == 3)
halbtc8723b2ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 6); HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(7);
pCoexDm->psTdmaDuAdjType = 6; else if (pCoexDm->curPsTdma == 4)
} else if (pCoexDm->curPsTdma == 3) { HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(8);
halbtc8723b2ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 7);
pCoexDm->psTdmaDuAdjType = 7; if (pCoexDm->curPsTdma == 9)
} else if (pCoexDm->curPsTdma == 4) { HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(13);
halbtc8723b2ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 8); else if (pCoexDm->curPsTdma == 10)
pCoexDm->psTdmaDuAdjType = 8; HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(14);
} else if (pCoexDm->curPsTdma == 11)
HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(15);
if (pCoexDm->curPsTdma == 9) { else if (pCoexDm->curPsTdma == 12)
halbtc8723b2ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 13); HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(16);
pCoexDm->psTdmaDuAdjType = 13;
} else if (pCoexDm->curPsTdma == 10) {
halbtc8723b2ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 14);
pCoexDm->psTdmaDuAdjType = 14;
} else if (pCoexDm->curPsTdma == 11) {
halbtc8723b2ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 15);
pCoexDm->psTdmaDuAdjType = 15;
} else if (pCoexDm->curPsTdma == 12) {
halbtc8723b2ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 16);
pCoexDm->psTdmaDuAdjType = 16;
}
if (result == -1) { if (result == -1) {
if (pCoexDm->curPsTdma == 5) { if (pCoexDm->curPsTdma == 5)
halbtc8723b2ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 6); HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(6);
pCoexDm->psTdmaDuAdjType = 6; else if (pCoexDm->curPsTdma == 6)
} else if (pCoexDm->curPsTdma == 6) { HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(7);
halbtc8723b2ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 7); else if (pCoexDm->curPsTdma == 7)
pCoexDm->psTdmaDuAdjType = 7; HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(8);
} else if (pCoexDm->curPsTdma == 7) { else if (pCoexDm->curPsTdma == 13)
halbtc8723b2ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 8); HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(14);
pCoexDm->psTdmaDuAdjType = 8; else if (pCoexDm->curPsTdma == 14)
} else if (pCoexDm->curPsTdma == 13) { HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(15);
halbtc8723b2ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 14); else if (pCoexDm->curPsTdma == 15)
pCoexDm->psTdmaDuAdjType = 14; HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(16);
} else if (pCoexDm->curPsTdma == 14) {
halbtc8723b2ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 15);
pCoexDm->psTdmaDuAdjType = 15;
} else if (pCoexDm->curPsTdma == 15) {
halbtc8723b2ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 16);
pCoexDm->psTdmaDuAdjType = 16;
}
} else if (result == 1) { } else if (result == 1) {
if (pCoexDm->curPsTdma == 8) { if (pCoexDm->curPsTdma == 8)
halbtc8723b2ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 7); HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(7);
pCoexDm->psTdmaDuAdjType = 7; else if (pCoexDm->curPsTdma == 7)
} else if (pCoexDm->curPsTdma == 7) { HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(6);
halbtc8723b2ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 6); else if (pCoexDm->curPsTdma == 6)
pCoexDm->psTdmaDuAdjType = 6; HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(5);
} else if (pCoexDm->curPsTdma == 6) { else if (pCoexDm->curPsTdma == 16)
halbtc8723b2ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 5); HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(15);
pCoexDm->psTdmaDuAdjType = 5; else if (pCoexDm->curPsTdma == 15)
} else if (pCoexDm->curPsTdma == 16) { HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(14);
halbtc8723b2ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 15); else if (pCoexDm->curPsTdma == 14)
pCoexDm->psTdmaDuAdjType = 15; HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(13);
} else if (pCoexDm->curPsTdma == 15) {
halbtc8723b2ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 14);
pCoexDm->psTdmaDuAdjType = 14;
} else if (pCoexDm->curPsTdma == 14) {
halbtc8723b2ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 13);
pCoexDm->psTdmaDuAdjType = 13;
}
} }
} else { } else {
BTC_PRINT(BTC_MSG_ALGORITHM, ALGO_TRACE_FW_DETAIL, ("[BTCoex], TxPause = 0\n")); BTC_PRINT(BTC_MSG_ALGORITHM, ALGO_TRACE_FW_DETAIL, ("[BTCoex], TxPause = 0\n"));
if (pCoexDm->curPsTdma == 5) { if (pCoexDm->curPsTdma == 5)
halbtc8723b2ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 71); HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(71);
pCoexDm->psTdmaDuAdjType = 71; else if (pCoexDm->curPsTdma == 6)
} else if (pCoexDm->curPsTdma == 6) { HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(2);
halbtc8723b2ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 2); else if (pCoexDm->curPsTdma == 7)
pCoexDm->psTdmaDuAdjType = 2; HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(3);
} else if (pCoexDm->curPsTdma == 7) { else if (pCoexDm->curPsTdma == 8)
halbtc8723b2ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 3); HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(4);
pCoexDm->psTdmaDuAdjType = 3;
} else if (pCoexDm->curPsTdma == 8) { if (pCoexDm->curPsTdma == 13)
halbtc8723b2ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 4); HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(9);
pCoexDm->psTdmaDuAdjType = 4; else if (pCoexDm->curPsTdma == 14)
} HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(10);
else if (pCoexDm->curPsTdma == 15)
if (pCoexDm->curPsTdma == 13) { HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(11);
halbtc8723b2ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 9); else if (pCoexDm->curPsTdma == 16)
pCoexDm->psTdmaDuAdjType = 9; HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(12);
} else if (pCoexDm->curPsTdma == 14) {
halbtc8723b2ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 10);
pCoexDm->psTdmaDuAdjType = 10;
} else if (pCoexDm->curPsTdma == 15) {
halbtc8723b2ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 11);
pCoexDm->psTdmaDuAdjType = 11;
} else if (pCoexDm->curPsTdma == 16) {
halbtc8723b2ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 12);
pCoexDm->psTdmaDuAdjType = 12;
}
if (result == -1) { if (result == -1) {
if (pCoexDm->curPsTdma == 71) { if (pCoexDm->curPsTdma == 71)
halbtc8723b2ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 1); HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(1);
pCoexDm->psTdmaDuAdjType = 1; else if (pCoexDm->curPsTdma == 1)
} else if (pCoexDm->curPsTdma == 1) { HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(2);
halbtc8723b2ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 2); else if (pCoexDm->curPsTdma == 2)
pCoexDm->psTdmaDuAdjType = 2; HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(3);
} else if (pCoexDm->curPsTdma == 2) { else if (pCoexDm->curPsTdma == 3)
halbtc8723b2ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 3); HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(4);
pCoexDm->psTdmaDuAdjType = 3; else if (pCoexDm->curPsTdma == 9)
} else if (pCoexDm->curPsTdma == 3) { HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(10);
halbtc8723b2ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 4); else if (pCoexDm->curPsTdma == 10)
pCoexDm->psTdmaDuAdjType = 4; HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(11);
} else if (pCoexDm->curPsTdma == 9) { else if (pCoexDm->curPsTdma == 11)
halbtc8723b2ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 10); HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(12);
pCoexDm->psTdmaDuAdjType = 10;
} else if (pCoexDm->curPsTdma == 10) {
halbtc8723b2ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 11);
pCoexDm->psTdmaDuAdjType = 11;
} else if (pCoexDm->curPsTdma == 11) {
halbtc8723b2ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 12);
pCoexDm->psTdmaDuAdjType = 12;
}
} else if (result == 1) { } else if (result == 1) {
if (pCoexDm->curPsTdma == 4) { if (pCoexDm->curPsTdma == 4)
halbtc8723b2ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 3); HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(3);
pCoexDm->psTdmaDuAdjType = 3; else if (pCoexDm->curPsTdma == 3)
} else if (pCoexDm->curPsTdma == 3) { HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(2);
halbtc8723b2ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 2); else if (pCoexDm->curPsTdma == 2)
pCoexDm->psTdmaDuAdjType = 2; HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(1);
} else if (pCoexDm->curPsTdma == 2) { else if (pCoexDm->curPsTdma == 1)
halbtc8723b2ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 1); HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(71);
pCoexDm->psTdmaDuAdjType = 1; else if (pCoexDm->curPsTdma == 12)
} else if (pCoexDm->curPsTdma == 1) { HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(11);
halbtc8723b2ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 71); else if (pCoexDm->curPsTdma == 11)
pCoexDm->psTdmaDuAdjType = 71; HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(10);
} else if (pCoexDm->curPsTdma == 12) { else if (pCoexDm->curPsTdma == 10)
halbtc8723b2ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 11); HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(9);
pCoexDm->psTdmaDuAdjType = 11;
} else if (pCoexDm->curPsTdma == 11) {
halbtc8723b2ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 10);
pCoexDm->psTdmaDuAdjType = 10;
} else if (pCoexDm->curPsTdma == 10) {
halbtc8723b2ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 9);
pCoexDm->psTdmaDuAdjType = 9;
}
} }
} }
} else if (maxInterval == 2) { } else if (maxInterval == 2) {
if (bTxPause) { if (bTxPause) {
BTC_PRINT(BTC_MSG_ALGORITHM, ALGO_TRACE_FW_DETAIL, ("[BTCoex], TxPause = 1\n")); BTC_PRINT(BTC_MSG_ALGORITHM, ALGO_TRACE_FW_DETAIL, ("[BTCoex], TxPause = 1\n"));
if (pCoexDm->curPsTdma == 1) { if (pCoexDm->curPsTdma == 1)
halbtc8723b2ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 6); HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(6);
pCoexDm->psTdmaDuAdjType = 6; else if (pCoexDm->curPsTdma == 2)
} else if (pCoexDm->curPsTdma == 2) { HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(6);
halbtc8723b2ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 6); else if (pCoexDm->curPsTdma == 3)
pCoexDm->psTdmaDuAdjType = 6; HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(7);
} else if (pCoexDm->curPsTdma == 3) { else if (pCoexDm->curPsTdma == 4)
halbtc8723b2ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 7); HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(8);
pCoexDm->psTdmaDuAdjType = 7;
} else if (pCoexDm->curPsTdma == 4) { if (pCoexDm->curPsTdma == 9)
halbtc8723b2ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 8); HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(14);
pCoexDm->psTdmaDuAdjType = 8; else if (pCoexDm->curPsTdma == 10)
} HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(14);
else if (pCoexDm->curPsTdma == 11)
if (pCoexDm->curPsTdma == 9) { HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(15);
halbtc8723b2ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 14); else if (pCoexDm->curPsTdma == 12)
pCoexDm->psTdmaDuAdjType = 14; HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(16);
} else if (pCoexDm->curPsTdma == 10) {
halbtc8723b2ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 14);
pCoexDm->psTdmaDuAdjType = 14;
} else if (pCoexDm->curPsTdma == 11) {
halbtc8723b2ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 15);
pCoexDm->psTdmaDuAdjType = 15;
} else if (pCoexDm->curPsTdma == 12) {
halbtc8723b2ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 16);
pCoexDm->psTdmaDuAdjType = 16;
}
if (result == -1) { if (result == -1) {
if (pCoexDm->curPsTdma == 5) { if (pCoexDm->curPsTdma == 5)
halbtc8723b2ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 6); HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(6);
pCoexDm->psTdmaDuAdjType = 6; else if (pCoexDm->curPsTdma == 6)
} else if (pCoexDm->curPsTdma == 6) { HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(7);
halbtc8723b2ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 7); else if (pCoexDm->curPsTdma == 7)
pCoexDm->psTdmaDuAdjType = 7; HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(8);
} else if (pCoexDm->curPsTdma == 7) { else if (pCoexDm->curPsTdma == 13)
halbtc8723b2ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 8); HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(14);
pCoexDm->psTdmaDuAdjType = 8; else if (pCoexDm->curPsTdma == 14)
} else if (pCoexDm->curPsTdma == 13) { HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(15);
halbtc8723b2ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 14); else if (pCoexDm->curPsTdma == 15)
pCoexDm->psTdmaDuAdjType = 14; HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(16);
} else if (pCoexDm->curPsTdma == 14) {
halbtc8723b2ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 15);
pCoexDm->psTdmaDuAdjType = 15;
} else if (pCoexDm->curPsTdma == 15) {
halbtc8723b2ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 16);
pCoexDm->psTdmaDuAdjType = 16;
}
} else if (result == 1) { } else if (result == 1) {
if (pCoexDm->curPsTdma == 8) { if (pCoexDm->curPsTdma == 8)
halbtc8723b2ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 7); HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(7);
pCoexDm->psTdmaDuAdjType = 7; else if (pCoexDm->curPsTdma == 7)
} else if (pCoexDm->curPsTdma == 7) { HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(6);
halbtc8723b2ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 6); else if (pCoexDm->curPsTdma == 6)
pCoexDm->psTdmaDuAdjType = 6; HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(6);
} else if (pCoexDm->curPsTdma == 6) { else if (pCoexDm->curPsTdma == 16)
halbtc8723b2ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 6); HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(15);
pCoexDm->psTdmaDuAdjType = 6; else if (pCoexDm->curPsTdma == 15)
} else if (pCoexDm->curPsTdma == 16) { HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(14);
halbtc8723b2ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 15); else if (pCoexDm->curPsTdma == 14)
pCoexDm->psTdmaDuAdjType = 15; HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(14);
} else if (pCoexDm->curPsTdma == 15) {
halbtc8723b2ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 14);
pCoexDm->psTdmaDuAdjType = 14;
} else if (pCoexDm->curPsTdma == 14) {
halbtc8723b2ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 14);
pCoexDm->psTdmaDuAdjType = 14;
}
} }
} else { } else {
BTC_PRINT(BTC_MSG_ALGORITHM, ALGO_TRACE_FW_DETAIL, ("[BTCoex], TxPause = 0\n")); BTC_PRINT(BTC_MSG_ALGORITHM, ALGO_TRACE_FW_DETAIL, ("[BTCoex], TxPause = 0\n"));
if (pCoexDm->curPsTdma == 5) { if (pCoexDm->curPsTdma == 5)
halbtc8723b2ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 2); HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(2);
pCoexDm->psTdmaDuAdjType = 2; else if (pCoexDm->curPsTdma == 6)
} else if (pCoexDm->curPsTdma == 6) { HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(2);
halbtc8723b2ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 2); else if (pCoexDm->curPsTdma == 7)
pCoexDm->psTdmaDuAdjType = 2; HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(3);
} else if (pCoexDm->curPsTdma == 7) { else if (pCoexDm->curPsTdma == 8)
halbtc8723b2ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 3); HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(4);
pCoexDm->psTdmaDuAdjType = 3;
} else if (pCoexDm->curPsTdma == 8) { if (pCoexDm->curPsTdma == 13)
halbtc8723b2ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 4); HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(10);
pCoexDm->psTdmaDuAdjType = 4; else if (pCoexDm->curPsTdma == 14)
} HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(10);
else if (pCoexDm->curPsTdma == 15)
if (pCoexDm->curPsTdma == 13) { HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(11);
halbtc8723b2ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 10); else if (pCoexDm->curPsTdma == 16)
pCoexDm->psTdmaDuAdjType = 10; HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(12);
} else if (pCoexDm->curPsTdma == 14) {
halbtc8723b2ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 10);
pCoexDm->psTdmaDuAdjType = 10;
} else if (pCoexDm->curPsTdma == 15) {
halbtc8723b2ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 11);
pCoexDm->psTdmaDuAdjType = 11;
} else if (pCoexDm->curPsTdma == 16) {
halbtc8723b2ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 12);
pCoexDm->psTdmaDuAdjType = 12;
}
if (result == -1) { if (result == -1) {
if (pCoexDm->curPsTdma == 1) { if (pCoexDm->curPsTdma == 1)
halbtc8723b2ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 2); HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(2);
pCoexDm->psTdmaDuAdjType = 2; else if (pCoexDm->curPsTdma == 2)
} else if (pCoexDm->curPsTdma == 2) { HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(3);
halbtc8723b2ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 3); else if (pCoexDm->curPsTdma == 3)
pCoexDm->psTdmaDuAdjType = 3; HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(4);
} else if (pCoexDm->curPsTdma == 3) { else if (pCoexDm->curPsTdma == 9)
halbtc8723b2ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 4); HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(10);
pCoexDm->psTdmaDuAdjType = 4; else if (pCoexDm->curPsTdma == 10)
} else if (pCoexDm->curPsTdma == 9) { HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(11);
halbtc8723b2ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 10); else if (pCoexDm->curPsTdma == 11)
pCoexDm->psTdmaDuAdjType = 10; HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(12);
} else if (pCoexDm->curPsTdma == 10) {
halbtc8723b2ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 11);
pCoexDm->psTdmaDuAdjType = 11;
} else if (pCoexDm->curPsTdma == 11) {
halbtc8723b2ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 12);
pCoexDm->psTdmaDuAdjType = 12;
}
} else if (result == 1) { } else if (result == 1) {
if (pCoexDm->curPsTdma == 4) { if (pCoexDm->curPsTdma == 4)
halbtc8723b2ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 3); HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(3);
pCoexDm->psTdmaDuAdjType = 3; else if (pCoexDm->curPsTdma == 3)
} else if (pCoexDm->curPsTdma == 3) { HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(2);
halbtc8723b2ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 2); else if (pCoexDm->curPsTdma == 2)
pCoexDm->psTdmaDuAdjType = 2; HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(2);
} else if (pCoexDm->curPsTdma == 2) { else if (pCoexDm->curPsTdma == 12)
halbtc8723b2ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 2); HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(11);
pCoexDm->psTdmaDuAdjType = 2; else if (pCoexDm->curPsTdma == 11)
} else if (pCoexDm->curPsTdma == 12) { HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(10);
halbtc8723b2ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 11); else if (pCoexDm->curPsTdma == 10)
pCoexDm->psTdmaDuAdjType = 11; HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(10);
} else if (pCoexDm->curPsTdma == 11) {
halbtc8723b2ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 10);
pCoexDm->psTdmaDuAdjType = 10;
} else if (pCoexDm->curPsTdma == 10) {
halbtc8723b2ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 10);
pCoexDm->psTdmaDuAdjType = 10;
}
} }
} }
} else if (maxInterval == 3) { } else if (maxInterval == 3) {
if (bTxPause) { if (bTxPause) {
BTC_PRINT(BTC_MSG_ALGORITHM, ALGO_TRACE_FW_DETAIL, ("[BTCoex], TxPause = 1\n")); BTC_PRINT(BTC_MSG_ALGORITHM, ALGO_TRACE_FW_DETAIL, ("[BTCoex], TxPause = 1\n"));
if (pCoexDm->curPsTdma == 1) { if (pCoexDm->curPsTdma == 1)
halbtc8723b2ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 7); HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(7);
pCoexDm->psTdmaDuAdjType = 7; else if (pCoexDm->curPsTdma == 2)
} else if (pCoexDm->curPsTdma == 2) { HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(7);
halbtc8723b2ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 7); else if (pCoexDm->curPsTdma == 3)
pCoexDm->psTdmaDuAdjType = 7; HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(7);
} else if (pCoexDm->curPsTdma == 3) { else if (pCoexDm->curPsTdma == 4)
halbtc8723b2ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 7); HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(8);
pCoexDm->psTdmaDuAdjType = 7;
} else if (pCoexDm->curPsTdma == 4) { if (pCoexDm->curPsTdma == 9)
halbtc8723b2ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 8); HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(15);
pCoexDm->psTdmaDuAdjType = 8; else if (pCoexDm->curPsTdma == 10)
} HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(15);
else if (pCoexDm->curPsTdma == 11)
if (pCoexDm->curPsTdma == 9) { HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(15);
halbtc8723b2ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 15); else if (pCoexDm->curPsTdma == 12)
pCoexDm->psTdmaDuAdjType = 15; HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(16);
} else if (pCoexDm->curPsTdma == 10) {
halbtc8723b2ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 15);
pCoexDm->psTdmaDuAdjType = 15;
} else if (pCoexDm->curPsTdma == 11) {
halbtc8723b2ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 15);
pCoexDm->psTdmaDuAdjType = 15;
} else if (pCoexDm->curPsTdma == 12) {
halbtc8723b2ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 16);
pCoexDm->psTdmaDuAdjType = 16;
}
if (result == -1) { if (result == -1) {
if (pCoexDm->curPsTdma == 5) { if (pCoexDm->curPsTdma == 5)
halbtc8723b2ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 7); HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(7);
pCoexDm->psTdmaDuAdjType = 7; else if (pCoexDm->curPsTdma == 6)
} else if (pCoexDm->curPsTdma == 6) { HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(7);
halbtc8723b2ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 7); else if (pCoexDm->curPsTdma == 7)
pCoexDm->psTdmaDuAdjType = 7; HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(8);
} else if (pCoexDm->curPsTdma == 7) { else if (pCoexDm->curPsTdma == 13)
halbtc8723b2ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 8); HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(15);
pCoexDm->psTdmaDuAdjType = 8; else if (pCoexDm->curPsTdma == 14)
} else if (pCoexDm->curPsTdma == 13) { HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(15);
halbtc8723b2ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 15); else if (pCoexDm->curPsTdma == 15)
pCoexDm->psTdmaDuAdjType = 15; HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(16);
} else if (pCoexDm->curPsTdma == 14) {
halbtc8723b2ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 15);
pCoexDm->psTdmaDuAdjType = 15;
} else if (pCoexDm->curPsTdma == 15) {
halbtc8723b2ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 16);
pCoexDm->psTdmaDuAdjType = 16;
}
} else if (result == 1) { } else if (result == 1) {
if (pCoexDm->curPsTdma == 8) { if (pCoexDm->curPsTdma == 8)
halbtc8723b2ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 7); HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(7);
pCoexDm->psTdmaDuAdjType = 7; else if (pCoexDm->curPsTdma == 7)
} else if (pCoexDm->curPsTdma == 7) { HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(7);
halbtc8723b2ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 7); else if (pCoexDm->curPsTdma == 6)
pCoexDm->psTdmaDuAdjType = 7; HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(7);
} else if (pCoexDm->curPsTdma == 6) { else if (pCoexDm->curPsTdma == 16)
halbtc8723b2ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 7); HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(15);
pCoexDm->psTdmaDuAdjType = 7; else if (pCoexDm->curPsTdma == 15)
} else if (pCoexDm->curPsTdma == 16) { HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(15);
halbtc8723b2ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 15); else if (pCoexDm->curPsTdma == 14)
pCoexDm->psTdmaDuAdjType = 15; HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(15);
} else if (pCoexDm->curPsTdma == 15) {
halbtc8723b2ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 15);
pCoexDm->psTdmaDuAdjType = 15;
} else if (pCoexDm->curPsTdma == 14) {
halbtc8723b2ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 15);
pCoexDm->psTdmaDuAdjType = 15;
}
} }
} else { } else {
BTC_PRINT(BTC_MSG_ALGORITHM, ALGO_TRACE_FW_DETAIL, ("[BTCoex], TxPause = 0\n")); BTC_PRINT(BTC_MSG_ALGORITHM, ALGO_TRACE_FW_DETAIL, ("[BTCoex], TxPause = 0\n"));
if (pCoexDm->curPsTdma == 5) { if (pCoexDm->curPsTdma == 5)
halbtc8723b2ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 3); HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(3);
pCoexDm->psTdmaDuAdjType = 3; else if (pCoexDm->curPsTdma == 6)
} else if (pCoexDm->curPsTdma == 6) { HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(3);
halbtc8723b2ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 3); else if (pCoexDm->curPsTdma == 7)
pCoexDm->psTdmaDuAdjType = 3; HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(3);
} else if (pCoexDm->curPsTdma == 7) { else if (pCoexDm->curPsTdma == 8)
halbtc8723b2ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 3); HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(4);
pCoexDm->psTdmaDuAdjType = 3;
} else if (pCoexDm->curPsTdma == 8) { if (pCoexDm->curPsTdma == 13)
halbtc8723b2ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 4); HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(11);
pCoexDm->psTdmaDuAdjType = 4; else if (pCoexDm->curPsTdma == 14)
} HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(11);
else if (pCoexDm->curPsTdma == 15)
if (pCoexDm->curPsTdma == 13) { HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(11);
halbtc8723b2ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 11); else if (pCoexDm->curPsTdma == 16)
pCoexDm->psTdmaDuAdjType = 11; HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(12);
} else if (pCoexDm->curPsTdma == 14) {
halbtc8723b2ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 11);
pCoexDm->psTdmaDuAdjType = 11;
} else if (pCoexDm->curPsTdma == 15) {
halbtc8723b2ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 11);
pCoexDm->psTdmaDuAdjType = 11;
} else if (pCoexDm->curPsTdma == 16) {
halbtc8723b2ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 12);
pCoexDm->psTdmaDuAdjType = 12;
}
if (result == -1) { if (result == -1) {
if (pCoexDm->curPsTdma == 1) { if (pCoexDm->curPsTdma == 1)
halbtc8723b2ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 3); HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(3);
pCoexDm->psTdmaDuAdjType = 3; else if (pCoexDm->curPsTdma == 2)
} else if (pCoexDm->curPsTdma == 2) { HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(3);
halbtc8723b2ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 3); else if (pCoexDm->curPsTdma == 3)
pCoexDm->psTdmaDuAdjType = 3; HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(4);
} else if (pCoexDm->curPsTdma == 3) { else if (pCoexDm->curPsTdma == 9)
halbtc8723b2ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 4); HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(11);
pCoexDm->psTdmaDuAdjType = 4; else if (pCoexDm->curPsTdma == 10)
} else if (pCoexDm->curPsTdma == 9) { HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(11);
halbtc8723b2ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 11); else if (pCoexDm->curPsTdma == 11)
pCoexDm->psTdmaDuAdjType = 11; HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(12);
} else if (pCoexDm->curPsTdma == 10) {
halbtc8723b2ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 11);
pCoexDm->psTdmaDuAdjType = 11;
} else if (pCoexDm->curPsTdma == 11) {
halbtc8723b2ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 12);
pCoexDm->psTdmaDuAdjType = 12;
}
} else if (result == 1) { } else if (result == 1) {
if (pCoexDm->curPsTdma == 4) { if (pCoexDm->curPsTdma == 4)
halbtc8723b2ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 3); HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(3);
pCoexDm->psTdmaDuAdjType = 3; else if (pCoexDm->curPsTdma == 3)
} else if (pCoexDm->curPsTdma == 3) { HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(3);
halbtc8723b2ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 3); else if (pCoexDm->curPsTdma == 2)
pCoexDm->psTdmaDuAdjType = 3; HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(3);
} else if (pCoexDm->curPsTdma == 2) { else if (pCoexDm->curPsTdma == 12)
halbtc8723b2ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 3); HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(11);
pCoexDm->psTdmaDuAdjType = 3; else if (pCoexDm->curPsTdma == 11)
} else if (pCoexDm->curPsTdma == 12) { HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(11);
halbtc8723b2ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 11); else if (pCoexDm->curPsTdma == 10)
pCoexDm->psTdmaDuAdjType = 11; HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(11);
} else if (pCoexDm->curPsTdma == 11) {
halbtc8723b2ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 11);
pCoexDm->psTdmaDuAdjType = 11;
} else if (pCoexDm->curPsTdma == 10) {
halbtc8723b2ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 11);
pCoexDm->psTdmaDuAdjType = 11;
}
} }
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment