@@ -67,7 +67,7 @@ void DBG_BT_INFO(u8 *dbgmsg)
67
67
/* */
68
68
/* Debug related function */
69
69
/* */
70
- static u8 halbtcoutsrc_IsBtCoexistAvailable (struct BTC_COEXIST * pBtCoexist )
70
+ static u8 halbtcoutsrc_IsBtCoexistAvailable (struct BTC_COEXIST * pBtCoexist )
71
71
{
72
72
if (!pBtCoexist -> bBinded || !pBtCoexist -> Adapter )
73
73
return false;
@@ -101,7 +101,7 @@ static void halbtcoutsrc_DbgInit(void)
101
101
0 ;
102
102
}
103
103
104
- static void halbtcoutsrc_LeaveLps (struct BTC_COEXIST * pBtCoexist )
104
+ static void halbtcoutsrc_LeaveLps (struct BTC_COEXIST * pBtCoexist )
105
105
{
106
106
struct adapter * padapter ;
107
107
@@ -114,7 +114,7 @@ static void halbtcoutsrc_LeaveLps(struct BTC_COEXIST * pBtCoexist)
114
114
rtw_btcoex_LPS_Leave (padapter );
115
115
}
116
116
117
- static void halbtcoutsrc_EnterLps (struct BTC_COEXIST * pBtCoexist )
117
+ static void halbtcoutsrc_EnterLps (struct BTC_COEXIST * pBtCoexist )
118
118
{
119
119
struct adapter * padapter ;
120
120
@@ -127,7 +127,7 @@ static void halbtcoutsrc_EnterLps(struct BTC_COEXIST * pBtCoexist)
127
127
rtw_btcoex_LPS_Enter (padapter );
128
128
}
129
129
130
- static void halbtcoutsrc_NormalLps (struct BTC_COEXIST * pBtCoexist )
130
+ static void halbtcoutsrc_NormalLps (struct BTC_COEXIST * pBtCoexist )
131
131
{
132
132
struct adapter * padapter ;
133
133
@@ -149,7 +149,7 @@ static void halbtcoutsrc_NormalLps(struct BTC_COEXIST * pBtCoexist)
149
149
* Constraint:
150
150
* 1. this function will request pwrctrl->lock
151
151
*/
152
- static void halbtcoutsrc_LeaveLowPower (struct BTC_COEXIST * pBtCoexist )
152
+ static void halbtcoutsrc_LeaveLowPower (struct BTC_COEXIST * pBtCoexist )
153
153
{
154
154
struct adapter * padapter ;
155
155
s32 ready ;
@@ -184,7 +184,7 @@ static void halbtcoutsrc_LeaveLowPower(struct BTC_COEXIST * pBtCoexist)
184
184
* Constraint:
185
185
* 1. this function will request pwrctrl->lock
186
186
*/
187
- static void halbtcoutsrc_NormalLowPower (struct BTC_COEXIST * pBtCoexist )
187
+ static void halbtcoutsrc_NormalLowPower (struct BTC_COEXIST * pBtCoexist )
188
188
{
189
189
struct adapter * padapter ;
190
190
@@ -193,7 +193,7 @@ static void halbtcoutsrc_NormalLowPower(struct BTC_COEXIST * pBtCoexist)
193
193
rtw_unregister_task_alive (padapter , BTCOEX_ALIVE );
194
194
}
195
195
196
- static void halbtcoutsrc_DisableLowPower (struct BTC_COEXIST * pBtCoexist , u8 bLowPwrDisable )
196
+ static void halbtcoutsrc_DisableLowPower (struct BTC_COEXIST * pBtCoexist , u8 bLowPwrDisable )
197
197
{
198
198
pBtCoexist -> btInfo .bBtDisableLowPwr = bLowPwrDisable ;
199
199
if (bLowPwrDisable )
@@ -202,7 +202,7 @@ static void halbtcoutsrc_DisableLowPower(struct BTC_COEXIST * pBtCoexist, u8 bLo
202
202
halbtcoutsrc_NormalLowPower (pBtCoexist ); /* original 32k low power behavior. */
203
203
}
204
204
205
- static void halbtcoutsrc_AggregationCheck (struct BTC_COEXIST * pBtCoexist )
205
+ static void halbtcoutsrc_AggregationCheck (struct BTC_COEXIST * pBtCoexist )
206
206
{
207
207
struct adapter * padapter ;
208
208
bool bNeedToAct ;
@@ -280,7 +280,7 @@ static u32 _halbtcoutsrc_GetWifiLinkStatus(struct adapter *padapter)
280
280
return portConnectedStatus ;
281
281
}
282
282
283
- static u32 halbtcoutsrc_GetWifiLinkStatus (struct BTC_COEXIST * pBtCoexist )
283
+ static u32 halbtcoutsrc_GetWifiLinkStatus (struct BTC_COEXIST * pBtCoexist )
284
284
{
285
285
/* */
286
286
/* return value: */
@@ -308,7 +308,7 @@ static u32 halbtcoutsrc_GetWifiLinkStatus(struct BTC_COEXIST * pBtCoexist)
308
308
return retVal ;
309
309
}
310
310
311
- static u32 halbtcoutsrc_GetBtPatchVer (struct BTC_COEXIST * pBtCoexist )
311
+ static u32 halbtcoutsrc_GetBtPatchVer (struct BTC_COEXIST * pBtCoexist )
312
312
{
313
313
return pBtCoexist -> btInfo .btRealFwVer ;
314
314
}
@@ -339,7 +339,7 @@ static u8 halbtcoutsrc_GetWifiScanAPNum(struct adapter *padapter)
339
339
340
340
static u8 halbtcoutsrc_Get (void * pBtcContext , u8 getType , void * pOutBuf )
341
341
{
342
- struct BTC_COEXIST * pBtCoexist ;
342
+ struct BTC_COEXIST * pBtCoexist ;
343
343
struct adapter * padapter ;
344
344
struct hal_com_data * pHalData ;
345
345
struct mlme_ext_priv * mlmeext ;
@@ -445,7 +445,7 @@ static u8 halbtcoutsrc_Get(void *pBtcContext, u8 getType, void *pOutBuf)
445
445
446
446
case BTC_GET_U4_WIFI_TRAFFIC_DIRECTION :
447
447
{
448
- struct RT_LINK_DETECT_T * plinkinfo ;
448
+ struct RT_LINK_DETECT_T * plinkinfo ;
449
449
plinkinfo = & padapter -> mlmepriv .LinkDetectInfo ;
450
450
451
451
if (plinkinfo -> NumTxOkInPeriod > plinkinfo -> NumRxOkInPeriod )
@@ -507,7 +507,7 @@ static u8 halbtcoutsrc_Get(void *pBtcContext, u8 getType, void *pOutBuf)
507
507
508
508
static u8 halbtcoutsrc_Set (void * pBtcContext , u8 setType , void * pInBuf )
509
509
{
510
- struct BTC_COEXIST * pBtCoexist ;
510
+ struct BTC_COEXIST * pBtCoexist ;
511
511
struct adapter * padapter ;
512
512
u8 * pu8 ;
513
513
u32 * pU4Tmp ;
@@ -642,7 +642,7 @@ static u8 halbtcoutsrc_Set(void *pBtcContext, u8 setType, void *pInBuf)
642
642
return ret ;
643
643
}
644
644
645
- static void halbtcoutsrc_DisplayFwPwrModeCmd (struct BTC_COEXIST * pBtCoexist )
645
+ static void halbtcoutsrc_DisplayFwPwrModeCmd (struct BTC_COEXIST * pBtCoexist )
646
646
{
647
647
u8 * cliBuf = pBtCoexist -> cliBuf ;
648
648
@@ -658,7 +658,7 @@ static void halbtcoutsrc_DisplayFwPwrModeCmd(struct BTC_COEXIST * pBtCoexist)
658
658
/* */
659
659
static u8 halbtcoutsrc_Read1Byte (void * pBtcContext , u32 RegAddr )
660
660
{
661
- struct BTC_COEXIST * pBtCoexist ;
661
+ struct BTC_COEXIST * pBtCoexist ;
662
662
struct adapter * padapter ;
663
663
664
664
@@ -670,7 +670,7 @@ static u8 halbtcoutsrc_Read1Byte(void *pBtcContext, u32 RegAddr)
670
670
671
671
static u16 halbtcoutsrc_Read2Byte (void * pBtcContext , u32 RegAddr )
672
672
{
673
- struct BTC_COEXIST * pBtCoexist ;
673
+ struct BTC_COEXIST * pBtCoexist ;
674
674
struct adapter * padapter ;
675
675
676
676
@@ -682,7 +682,7 @@ static u16 halbtcoutsrc_Read2Byte(void *pBtcContext, u32 RegAddr)
682
682
683
683
static u32 halbtcoutsrc_Read4Byte (void * pBtcContext , u32 RegAddr )
684
684
{
685
- struct BTC_COEXIST * pBtCoexist ;
685
+ struct BTC_COEXIST * pBtCoexist ;
686
686
struct adapter * padapter ;
687
687
688
688
@@ -694,7 +694,7 @@ static u32 halbtcoutsrc_Read4Byte(void *pBtcContext, u32 RegAddr)
694
694
695
695
static void halbtcoutsrc_Write1Byte (void * pBtcContext , u32 RegAddr , u8 Data )
696
696
{
697
- struct BTC_COEXIST * pBtCoexist ;
697
+ struct BTC_COEXIST * pBtCoexist ;
698
698
struct adapter * padapter ;
699
699
700
700
@@ -706,7 +706,7 @@ static void halbtcoutsrc_Write1Byte(void *pBtcContext, u32 RegAddr, u8 Data)
706
706
707
707
static void halbtcoutsrc_BitMaskWrite1Byte (void * pBtcContext , u32 regAddr , u8 bitMask , u8 data1b )
708
708
{
709
- struct BTC_COEXIST * pBtCoexist ;
709
+ struct BTC_COEXIST * pBtCoexist ;
710
710
struct adapter * padapter ;
711
711
u8 originalValue , bitShift ;
712
712
u8 i ;
@@ -746,7 +746,7 @@ static void halbtcoutsrc_Write2Byte(void *pBtcContext, u32 RegAddr, u16 Data)
746
746
747
747
static void halbtcoutsrc_Write4Byte (void * pBtcContext , u32 RegAddr , u32 Data )
748
748
{
749
- struct BTC_COEXIST * pBtCoexist ;
749
+ struct BTC_COEXIST * pBtCoexist ;
750
750
struct adapter * padapter ;
751
751
752
752
@@ -758,7 +758,7 @@ static void halbtcoutsrc_Write4Byte(void *pBtcContext, u32 RegAddr, u32 Data)
758
758
759
759
static void halbtcoutsrc_WriteLocalReg1Byte (void * pBtcContext , u32 RegAddr , u8 Data )
760
760
{
761
- struct BTC_COEXIST * pBtCoexist = (struct BTC_COEXIST * )pBtcContext ;
761
+ struct BTC_COEXIST * pBtCoexist = (struct BTC_COEXIST * )pBtcContext ;
762
762
struct adapter * Adapter = pBtCoexist -> Adapter ;
763
763
764
764
if (BTC_INTF_SDIO == pBtCoexist -> chipInterface )
@@ -769,7 +769,7 @@ static void halbtcoutsrc_WriteLocalReg1Byte(void *pBtcContext, u32 RegAddr, u8 D
769
769
770
770
static void halbtcoutsrc_SetBbReg (void * pBtcContext , u32 RegAddr , u32 BitMask , u32 Data )
771
771
{
772
- struct BTC_COEXIST * pBtCoexist ;
772
+ struct BTC_COEXIST * pBtCoexist ;
773
773
struct adapter * padapter ;
774
774
775
775
@@ -782,7 +782,7 @@ static void halbtcoutsrc_SetBbReg(void *pBtcContext, u32 RegAddr, u32 BitMask, u
782
782
783
783
static u32 halbtcoutsrc_GetBbReg (void * pBtcContext , u32 RegAddr , u32 BitMask )
784
784
{
785
- struct BTC_COEXIST * pBtCoexist ;
785
+ struct BTC_COEXIST * pBtCoexist ;
786
786
struct adapter * padapter ;
787
787
788
788
@@ -794,7 +794,7 @@ static u32 halbtcoutsrc_GetBbReg(void *pBtcContext, u32 RegAddr, u32 BitMask)
794
794
795
795
static void halbtcoutsrc_SetRfReg (void * pBtcContext , u8 eRFPath , u32 RegAddr , u32 BitMask , u32 Data )
796
796
{
797
- struct BTC_COEXIST * pBtCoexist ;
797
+ struct BTC_COEXIST * pBtCoexist ;
798
798
struct adapter * padapter ;
799
799
800
800
@@ -806,7 +806,7 @@ static void halbtcoutsrc_SetRfReg(void *pBtcContext, u8 eRFPath, u32 RegAddr, u3
806
806
807
807
static u32 halbtcoutsrc_GetRfReg (void * pBtcContext , u8 eRFPath , u32 RegAddr , u32 BitMask )
808
808
{
809
- struct BTC_COEXIST * pBtCoexist ;
809
+ struct BTC_COEXIST * pBtCoexist ;
810
810
struct adapter * padapter ;
811
811
812
812
@@ -818,7 +818,7 @@ static u32 halbtcoutsrc_GetRfReg(void *pBtcContext, u8 eRFPath, u32 RegAddr, u32
818
818
819
819
static void halbtcoutsrc_SetBtReg (void * pBtcContext , u8 RegType , u32 RegAddr , u32 Data )
820
820
{
821
- struct BTC_COEXIST * pBtCoexist ;
821
+ struct BTC_COEXIST * pBtCoexist ;
822
822
struct adapter * padapter ;
823
823
u8 CmdBuffer1 [4 ] = {0 };
824
824
u8 CmdBuffer2 [4 ] = {0 };
@@ -854,7 +854,7 @@ static u32 halbtcoutsrc_GetBtReg(void *pBtcContext, u8 RegType, u32 RegAddr)
854
854
855
855
static void halbtcoutsrc_FillH2cCmd (void * pBtcContext , u8 elementId , u32 cmdLen , u8 * pCmdBuffer )
856
856
{
857
- struct BTC_COEXIST * pBtCoexist ;
857
+ struct BTC_COEXIST * pBtCoexist ;
858
858
struct adapter * padapter ;
859
859
860
860
@@ -866,7 +866,7 @@ static void halbtcoutsrc_FillH2cCmd(void *pBtcContext, u8 elementId, u32 cmdLen,
866
866
867
867
static void halbtcoutsrc_DisplayDbgMsg (void * pBtcContext , u8 dispType )
868
868
{
869
- struct BTC_COEXIST * pBtCoexist ;
869
+ struct BTC_COEXIST * pBtCoexist ;
870
870
871
871
872
872
pBtCoexist = (struct BTC_COEXIST * )pBtcContext ;
@@ -888,7 +888,7 @@ static void halbtcoutsrc_DisplayDbgMsg(void *pBtcContext, u8 dispType)
888
888
/* */
889
889
static u8 EXhalbtcoutsrc_BindBtCoexWithAdapter (void * padapter )
890
890
{
891
- struct BTC_COEXIST * pBtCoexist = & GLBtCoexist ;
891
+ struct BTC_COEXIST * pBtCoexist = & GLBtCoexist ;
892
892
893
893
if (pBtCoexist -> bBinded )
894
894
return false;
@@ -914,7 +914,7 @@ static u8 EXhalbtcoutsrc_BindBtCoexWithAdapter(void *padapter)
914
914
915
915
void hal_btcoex_Initialize (void * padapter )
916
916
{
917
- struct BTC_COEXIST * pBtCoexist ;
917
+ struct BTC_COEXIST * pBtCoexist ;
918
918
919
919
memset (& GLBtCoexist , 0 , sizeof (GLBtCoexist ));
920
920
@@ -960,7 +960,7 @@ void hal_btcoex_Initialize(void *padapter)
960
960
GLBtcWiFiInIQKState = false;
961
961
}
962
962
963
- void EXhalbtcoutsrc_PowerOnSetting (struct BTC_COEXIST * pBtCoexist )
963
+ void EXhalbtcoutsrc_PowerOnSetting (struct BTC_COEXIST * pBtCoexist )
964
964
{
965
965
if (!halbtcoutsrc_IsBtCoexistAvailable (pBtCoexist ))
966
966
return ;
@@ -972,7 +972,7 @@ void EXhalbtcoutsrc_PowerOnSetting(struct BTC_COEXIST * pBtCoexist)
972
972
EXhalbtc8723b1ant_PowerOnSetting (pBtCoexist );
973
973
}
974
974
975
- void EXhalbtcoutsrc_InitHwConfig (struct BTC_COEXIST * pBtCoexist , u8 bWifiOnly )
975
+ void EXhalbtcoutsrc_InitHwConfig (struct BTC_COEXIST * pBtCoexist , u8 bWifiOnly )
976
976
{
977
977
if (!halbtcoutsrc_IsBtCoexistAvailable (pBtCoexist ))
978
978
return ;
@@ -985,7 +985,7 @@ void EXhalbtcoutsrc_InitHwConfig(struct BTC_COEXIST * pBtCoexist, u8 bWifiOnly)
985
985
EXhalbtc8723b1ant_InitHwConfig (pBtCoexist , bWifiOnly );
986
986
}
987
987
988
- void EXhalbtcoutsrc_InitCoexDm (struct BTC_COEXIST * pBtCoexist )
988
+ void EXhalbtcoutsrc_InitCoexDm (struct BTC_COEXIST * pBtCoexist )
989
989
{
990
990
if (!halbtcoutsrc_IsBtCoexistAvailable (pBtCoexist ))
991
991
return ;
@@ -1000,7 +1000,7 @@ void EXhalbtcoutsrc_InitCoexDm(struct BTC_COEXIST * pBtCoexist)
1000
1000
pBtCoexist -> bInitilized = true;
1001
1001
}
1002
1002
1003
- void EXhalbtcoutsrc_IpsNotify (struct BTC_COEXIST * pBtCoexist , u8 type )
1003
+ void EXhalbtcoutsrc_IpsNotify (struct BTC_COEXIST * pBtCoexist , u8 type )
1004
1004
{
1005
1005
u8 ipsType ;
1006
1006
@@ -1027,7 +1027,7 @@ void EXhalbtcoutsrc_IpsNotify(struct BTC_COEXIST * pBtCoexist, u8 type)
1027
1027
/* halbtcoutsrc_NormalLowPower(pBtCoexist); */
1028
1028
}
1029
1029
1030
- void EXhalbtcoutsrc_LpsNotify (struct BTC_COEXIST * pBtCoexist , u8 type )
1030
+ void EXhalbtcoutsrc_LpsNotify (struct BTC_COEXIST * pBtCoexist , u8 type )
1031
1031
{
1032
1032
u8 lpsType ;
1033
1033
@@ -1050,7 +1050,7 @@ void EXhalbtcoutsrc_LpsNotify(struct BTC_COEXIST * pBtCoexist, u8 type)
1050
1050
EXhalbtc8723b1ant_LpsNotify (pBtCoexist , lpsType );
1051
1051
}
1052
1052
1053
- void EXhalbtcoutsrc_ScanNotify (struct BTC_COEXIST * pBtCoexist , u8 type )
1053
+ void EXhalbtcoutsrc_ScanNotify (struct BTC_COEXIST * pBtCoexist , u8 type )
1054
1054
{
1055
1055
u8 scanType ;
1056
1056
@@ -1079,7 +1079,7 @@ void EXhalbtcoutsrc_ScanNotify(struct BTC_COEXIST * pBtCoexist, u8 type)
1079
1079
/* halbtcoutsrc_NormalLowPower(pBtCoexist); */
1080
1080
}
1081
1081
1082
- void EXhalbtcoutsrc_ConnectNotify (struct BTC_COEXIST * pBtCoexist , u8 action )
1082
+ void EXhalbtcoutsrc_ConnectNotify (struct BTC_COEXIST * pBtCoexist , u8 action )
1083
1083
{
1084
1084
u8 assoType ;
1085
1085
@@ -1105,7 +1105,8 @@ void EXhalbtcoutsrc_ConnectNotify(struct BTC_COEXIST * pBtCoexist, u8 action)
1105
1105
/* halbtcoutsrc_NormalLowPower(pBtCoexist); */
1106
1106
}
1107
1107
1108
- void EXhalbtcoutsrc_MediaStatusNotify (struct BTC_COEXIST * pBtCoexist , enum RT_MEDIA_STATUS mediaStatus )
1108
+ void EXhalbtcoutsrc_MediaStatusNotify (struct BTC_COEXIST * pBtCoexist , enum
1109
+ RT_MEDIA_STATUS mediaStatus )
1109
1110
{
1110
1111
u8 mStatus ;
1111
1112
@@ -1132,7 +1133,7 @@ void EXhalbtcoutsrc_MediaStatusNotify(struct BTC_COEXIST * pBtCoexist, enum RT_M
1132
1133
/* halbtcoutsrc_NormalLowPower(pBtCoexist); */
1133
1134
}
1134
1135
1135
- void EXhalbtcoutsrc_SpecialPacketNotify (struct BTC_COEXIST * pBtCoexist , u8 pktType )
1136
+ void EXhalbtcoutsrc_SpecialPacketNotify (struct BTC_COEXIST * pBtCoexist , u8 pktType )
1136
1137
{
1137
1138
u8 packetType ;
1138
1139
@@ -1163,7 +1164,7 @@ void EXhalbtcoutsrc_SpecialPacketNotify(struct BTC_COEXIST * pBtCoexist, u8 pktT
1163
1164
/* halbtcoutsrc_NormalLowPower(pBtCoexist); */
1164
1165
}
1165
1166
1166
- void EXhalbtcoutsrc_BtInfoNotify (struct BTC_COEXIST * pBtCoexist , u8 * tmpBuf , u8 length )
1167
+ void EXhalbtcoutsrc_BtInfoNotify (struct BTC_COEXIST * pBtCoexist , u8 * tmpBuf , u8 length )
1167
1168
{
1168
1169
if (!halbtcoutsrc_IsBtCoexistAvailable (pBtCoexist ))
1169
1170
return ;
@@ -1181,7 +1182,7 @@ void EXhalbtcoutsrc_BtInfoNotify(struct BTC_COEXIST * pBtCoexist, u8 *tmpBuf, u8
1181
1182
/* halbtcoutsrc_NormalLowPower(pBtCoexist); */
1182
1183
}
1183
1184
1184
- void EXhalbtcoutsrc_HaltNotify (struct BTC_COEXIST * pBtCoexist )
1185
+ void EXhalbtcoutsrc_HaltNotify (struct BTC_COEXIST * pBtCoexist )
1185
1186
{
1186
1187
if (!halbtcoutsrc_IsBtCoexistAvailable (pBtCoexist ))
1187
1188
return ;
@@ -1194,7 +1195,7 @@ void EXhalbtcoutsrc_HaltNotify(struct BTC_COEXIST * pBtCoexist)
1194
1195
pBtCoexist -> bBinded = false;
1195
1196
}
1196
1197
1197
- void EXhalbtcoutsrc_PnpNotify (struct BTC_COEXIST * pBtCoexist , u8 pnpState )
1198
+ void EXhalbtcoutsrc_PnpNotify (struct BTC_COEXIST * pBtCoexist , u8 pnpState )
1198
1199
{
1199
1200
if (!halbtcoutsrc_IsBtCoexistAvailable (pBtCoexist ))
1200
1201
return ;
@@ -1210,7 +1211,7 @@ void EXhalbtcoutsrc_PnpNotify(struct BTC_COEXIST * pBtCoexist, u8 pnpState)
1210
1211
EXhalbtc8723b2ant_PnpNotify (pBtCoexist , pnpState );
1211
1212
}
1212
1213
1213
- void EXhalbtcoutsrc_Periodical (struct BTC_COEXIST * pBtCoexist )
1214
+ void EXhalbtcoutsrc_Periodical (struct BTC_COEXIST * pBtCoexist )
1214
1215
{
1215
1216
if (!halbtcoutsrc_IsBtCoexistAvailable (pBtCoexist ))
1216
1217
return ;
@@ -1255,7 +1256,7 @@ void EXhalbtcoutsrc_SetSingleAntPath(u8 singleAntPath)
1255
1256
GLBtCoexist .boardInfo .singleAntPath = singleAntPath ;
1256
1257
}
1257
1258
1258
- void EXhalbtcoutsrc_DisplayBtCoexInfo (struct BTC_COEXIST * pBtCoexist )
1259
+ void EXhalbtcoutsrc_DisplayBtCoexInfo (struct BTC_COEXIST * pBtCoexist )
1259
1260
{
1260
1261
if (!halbtcoutsrc_IsBtCoexistAvailable (pBtCoexist ))
1261
1262
return ;
0 commit comments