Skip to content

Commit

Permalink
Staging: rtl8723bs: fix spaces in odm.c
Browse files Browse the repository at this point in the history
This commit fixes the following checkpatch.pl errors:

    ERROR:POINTER_LOCATION: "foo * bar" should be "foo *bar"
    torvalds#285: FILE: ./hal/odm.c:285:
    +void odm_CommonInfoSelfInit(struct DM_ODM_T * pDM_Odm);

    ERROR:POINTER_LOCATION: "foo * bar" should be "foo *bar"
    torvalds#287: FILE: ./hal/odm.c:287:
    +void odm_CommonInfoSelfUpdate(struct DM_ODM_T * pDM_Odm);

    ERROR:POINTER_LOCATION: "foo * bar" should be "foo *bar"
    torvalds#289: FILE: ./hal/odm.c:289:
    +void odm_CmnInfoInit_Debug(struct DM_ODM_T * pDM_Odm);

    ERROR:POINTER_LOCATION: "foo * bar" should be "foo *bar"
    torvalds#291: FILE: ./hal/odm.c:291:
    +void odm_BasicDbgMessage(struct DM_ODM_T * pDM_Odm);

    ERROR:POINTER_LOCATION: "foo * bar" should be "foo *bar"
    torvalds#305: FILE: ./hal/odm.c:305:
    +void odm_RefreshRateAdaptiveMaskCE(struct DM_ODM_T * pDM_Odm);

    ERROR:POINTER_LOCATION: "foo * bar" should be "foo *bar"
    torvalds#309: FILE: ./hal/odm.c:309:
    +void odm_RSSIMonitorInit(struct DM_ODM_T * pDM_Odm);

    ERROR:POINTER_LOCATION: "foo * bar" should be "foo *bar"
    torvalds#311: FILE: ./hal/odm.c:311:
    +void odm_RSSIMonitorCheckCE(struct DM_ODM_T * pDM_Odm);

    ERROR:POINTER_LOCATION: "foo * bar" should be "foo *bar"
    torvalds#313: FILE: ./hal/odm.c:313:
    +void odm_RSSIMonitorCheck(struct DM_ODM_T * pDM_Odm);

    ERROR:POINTER_LOCATION: "foo * bar" should be "foo *bar"
    torvalds#315: FILE: ./hal/odm.c:315:
    +void odm_SwAntDetectInit(struct DM_ODM_T * pDM_Odm);

    ERROR:POINTER_LOCATION: "foo * bar" should be "foo *bar"
    torvalds#323: FILE: ./hal/odm.c:323:
    +void odm_RefreshRateAdaptiveMask(struct DM_ODM_T * pDM_Odm);

    ERROR:POINTER_LOCATION: "foo * bar" should be "foo *bar"
    torvalds#325: FILE: ./hal/odm.c:325:
    +void ODM_TXPowerTrackingCheck(struct DM_ODM_T * pDM_Odm);

    ERROR:POINTER_LOCATION: "foo * bar" should be "foo *bar"
    torvalds#327: FILE: ./hal/odm.c:327:
    +void odm_RateAdaptiveMaskInit(struct DM_ODM_T * pDM_Odm);

    ERROR:POINTER_LOCATION: "foo * bar" should be "foo *bar"
    torvalds#330: FILE: ./hal/odm.c:330:
    +void odm_TXPowerTrackingInit(struct DM_ODM_T * pDM_Odm);

    ERROR:POINTER_LOCATION: "foo * bar" should be "foo *bar"
    torvalds#338: FILE: ./hal/odm.c:338:
    +void odm_InitHybridAntDiv(struct DM_ODM_T * pDM_Odm);

    ERROR:POINTER_LOCATION: "foo * bar" should be "foo *bar"
    torvalds#341: FILE: ./hal/odm.c:341:
    +	struct DM_ODM_T * pDM_Odm,

    ERROR:POINTER_LOCATION: "foo * bar" should be "foo *bar"
    torvalds#349: FILE: ./hal/odm.c:349:
    +void odm_SetRxIdleAnt(struct DM_ODM_T * pDM_Odm, u8 Ant, bool bDualPath);

    ERROR:POINTER_LOCATION: "foo * bar" should be "foo *bar"
    torvalds#353: FILE: ./hal/odm.c:353:
    +void odm_HwAntDiv(struct DM_ODM_T * pDM_Odm);

    ERROR:POINTER_LOCATION: "foo * bar" should be "foo *bar"
    torvalds#363: FILE: ./hal/odm.c:363:
    +void ODM_DMInit(struct DM_ODM_T * pDM_Odm)

    ERROR:POINTER_LOCATION: "foo * bar" should be "foo *bar"
    torvalds#393: FILE: ./hal/odm.c:393:
    +void ODM_DMWatchdog(struct DM_ODM_T * pDM_Odm)

    ERROR:POINTER_LOCATION: "foo * bar" should be "foo *bar"
    torvalds#420: FILE: ./hal/odm.c:420:
    +		struct DIG_T * pDM_DigTable = &pDM_Odm->DM_DigTable;

    ERROR:POINTER_LOCATION: "foo * bar" should be "foo *bar"
    torvalds#448: FILE: ./hal/odm.c:448:
    +void ODM_CmnInfoInit(struct DM_ODM_T * pDM_Odm, enum ODM_CMNINFO_E CmnInfo, u32 Value)

    ERROR:POINTER_LOCATION: "foo * bar" should be "foo *bar"
    torvalds#560: FILE: ./hal/odm.c:560:
    +void ODM_CmnInfoHook(struct DM_ODM_T * pDM_Odm, enum ODM_CMNINFO_E CmnInfo, void *pValue)

    ERROR:POINTER_LOCATION: "foo * bar" should be "foo *bar"
    torvalds#689: FILE: ./hal/odm.c:689:
    +	struct DM_ODM_T * pDM_Odm,

    ERROR:POINTER_LOCATION: "foo * bar" should be "foo *bar"
    torvalds#717: FILE: ./hal/odm.c:717:
    +void ODM_CmnInfoUpdate(struct DM_ODM_T * pDM_Odm, u32 CmnInfo, u64 Value)

    ERROR:POINTER_LOCATION: "foo * bar" should be "foo *bar"
    torvalds#831: FILE: ./hal/odm.c:831:
    +void odm_CommonInfoSelfInit(struct DM_ODM_T * pDM_Odm)

    ERROR:POINTER_LOCATION: "foo * bar" should be "foo *bar"
    torvalds#841: FILE: ./hal/odm.c:841:
    +void odm_CommonInfoSelfUpdate(struct DM_ODM_T * pDM_Odm)

    ERROR:POINTER_LOCATION: "foo * bar" should be "foo *bar"
    torvalds#867: FILE: ./hal/odm.c:867:
    +void odm_CmnInfoInit_Debug(struct DM_ODM_T * pDM_Odm)

    ERROR:POINTER_LOCATION: "foo * bar" should be "foo *bar"
    torvalds#888: FILE: ./hal/odm.c:888:
    +void odm_BasicDbgMessage(struct DM_ODM_T * pDM_Odm)

    ERROR:POINTER_LOCATION: "foo * bar" should be "foo *bar"
    torvalds#935: FILE: ./hal/odm.c:935:
    +void odm_RateAdaptiveMaskInit(struct DM_ODM_T * pDM_Odm)

    ERROR:POINTER_LOCATION: "foo * bar" should be "foo *bar"
    torvalds#937: FILE: ./hal/odm.c:937:
    +	struct ODM_RATE_ADAPTIVE * pOdmRA = &pDM_Odm->RateAdaptive;

    ERROR:POINTER_LOCATION: "foo * bar" should be "foo *bar"
    torvalds#953: FILE: ./hal/odm.c:953:
    +	struct DM_ODM_T * pDM_Odm,

    ERROR:POINTER_LOCATION: "foo * bar" should be "foo *bar"
    torvalds#1083: FILE: ./hal/odm.c:1083:
    +void odm_RefreshRateAdaptiveMask(struct DM_ODM_T * pDM_Odm)

    ERROR:POINTER_LOCATION: "foo * bar" should be "foo *bar"
    torvalds#1094: FILE: ./hal/odm.c:1094:
    +void odm_RefreshRateAdaptiveMaskCE(struct DM_ODM_T * pDM_Odm)

    ERROR:POINTER_LOCATION: "foo * bar" should be "foo *bar"
    #1131: FILE: ./hal/odm.c:1131:
    +	struct DM_ODM_T * pDM_Odm,

    ERROR:POINTER_LOCATION: "foo * bar" should be "foo *bar"
    #1137: FILE: ./hal/odm.c:1137:
    +	struct ODM_RATE_ADAPTIVE * pRA = &pDM_Odm->RateAdaptive;

    ERROR:POINTER_LOCATION: "foo * bar" should be "foo *bar"
    #1196: FILE: ./hal/odm.c:1196:
    +void odm_RSSIMonitorInit(struct DM_ODM_T * pDM_Odm)

    ERROR:POINTER_LOCATION: "foo * bar" should be "foo *bar"
    #1198: FILE: ./hal/odm.c:1198:
    +	struct RA_T * pRA_Table = &pDM_Odm->DM_RA_Table;

    ERROR:POINTER_LOCATION: "foo * bar" should be "foo *bar"
    #1204: FILE: ./hal/odm.c:1204:
    +void odm_RSSIMonitorCheck(struct DM_ODM_T * pDM_Odm)

    ERROR:POINTER_LOCATION: "foo * bar" should be "foo *bar"
    #1217: FILE: ./hal/odm.c:1217:
    +	struct DM_ODM_T * pDM_Odm = &(pHalData->odmpriv);

    ERROR:POINTER_LOCATION: "foo * bar" should be "foo *bar"
    #1234: FILE: ./hal/odm.c:1234:
    +void odm_RSSIMonitorCheckCE(struct DM_ODM_T * pDM_Odm)

    ERROR:POINTER_LOCATION: "foo * bar" should be "foo *bar"
    #1243: FILE: ./hal/odm.c:1243:
    +	struct RA_T * pRA_Table = &pDM_Odm->DM_RA_Table;

    ERROR:POINTER_LOCATION: "foo * bar" should be "foo *bar"
    #1306: FILE: ./hal/odm.c:1306:
    +static u8 getSwingIndex(struct DM_ODM_T * pDM_Odm)

    ERROR:POINTER_LOCATION: "foo * bar" should be "foo *bar"
    #1330: FILE: ./hal/odm.c:1330:
    +void odm_TXPowerTrackingInit(struct DM_ODM_T * pDM_Odm)

    ERROR:POINTER_LOCATION: "foo * bar" should be "foo *bar"
    #1374: FILE: ./hal/odm.c:1374:
    +void ODM_TXPowerTrackingCheck(struct DM_ODM_T * pDM_Odm)

    ERROR:POINTER_LOCATION: "foo * bar" should be "foo *bar"
    #1398: FILE: ./hal/odm.c:1398:
    +void odm_SwAntDetectInit(struct DM_ODM_T * pDM_Odm)

    ERROR:POINTER_LOCATION: "foo * bar" should be "foo *bar"
    #1400: FILE: ./hal/odm.c:1400:
    +	struct SWAT_T * pDM_SWAT_Table = &pDM_Odm->DM_SWAT_Table;

Signed-off-by: Marco Cesati <marcocesati@gmail.com>
  • Loading branch information
Marco Cesati authored and intel-lab-lkp committed Mar 15, 2021
1 parent 8600d4a commit 0da988e
Showing 1 changed file with 46 additions and 46 deletions.
92 changes: 46 additions & 46 deletions drivers/staging/rtl8723bs/hal/odm.c
Original file line number Diff line number Diff line change
Expand Up @@ -282,13 +282,13 @@ u32 TxScalingTable_Jaguar[TXSCALE_TABLE_SIZE] = {
/* Local Function predefine. */

/* START------------COMMON INFO RELATED--------------- */
void odm_CommonInfoSelfInit(struct DM_ODM_T * pDM_Odm);
void odm_CommonInfoSelfInit(struct DM_ODM_T *pDM_Odm);

void odm_CommonInfoSelfUpdate(struct DM_ODM_T * pDM_Odm);
void odm_CommonInfoSelfUpdate(struct DM_ODM_T *pDM_Odm);

void odm_CmnInfoInit_Debug(struct DM_ODM_T * pDM_Odm);
void odm_CmnInfoInit_Debug(struct DM_ODM_T *pDM_Odm);

void odm_BasicDbgMessage(struct DM_ODM_T * pDM_Odm);
void odm_BasicDbgMessage(struct DM_ODM_T *pDM_Odm);

/* END------------COMMON INFO RELATED--------------- */

Expand All @@ -302,55 +302,55 @@ void odm_BasicDbgMessage(struct DM_ODM_T * pDM_Odm);
/* Remove BB power Saving by YuChen */
/* END---------BB POWER SAVE----------------------- */

void odm_RefreshRateAdaptiveMaskCE(struct DM_ODM_T * pDM_Odm);
void odm_RefreshRateAdaptiveMaskCE(struct DM_ODM_T *pDM_Odm);

/* Remove by YuChen */

void odm_RSSIMonitorInit(struct DM_ODM_T * pDM_Odm);
void odm_RSSIMonitorInit(struct DM_ODM_T *pDM_Odm);

void odm_RSSIMonitorCheckCE(struct DM_ODM_T * pDM_Odm);
void odm_RSSIMonitorCheckCE(struct DM_ODM_T *pDM_Odm);

void odm_RSSIMonitorCheck(struct DM_ODM_T * pDM_Odm);
void odm_RSSIMonitorCheck(struct DM_ODM_T *pDM_Odm);

void odm_SwAntDetectInit(struct DM_ODM_T * pDM_Odm);
void odm_SwAntDetectInit(struct DM_ODM_T *pDM_Odm);

void odm_SwAntDivChkAntSwitchCallback(void *FunctionContext);



void odm_GlobalAdapterCheck(void);

void odm_RefreshRateAdaptiveMask(struct DM_ODM_T * pDM_Odm);
void odm_RefreshRateAdaptiveMask(struct DM_ODM_T *pDM_Odm);

void ODM_TXPowerTrackingCheck(struct DM_ODM_T * pDM_Odm);
void ODM_TXPowerTrackingCheck(struct DM_ODM_T *pDM_Odm);

void odm_RateAdaptiveMaskInit(struct DM_ODM_T * pDM_Odm);
void odm_RateAdaptiveMaskInit(struct DM_ODM_T *pDM_Odm);


void odm_TXPowerTrackingInit(struct DM_ODM_T * pDM_Odm);
void odm_TXPowerTrackingInit(struct DM_ODM_T *pDM_Odm);

/* Remove Edca by Yu Chen */


#define RxDefaultAnt1 0x65a9
#define RxDefaultAnt2 0x569a

void odm_InitHybridAntDiv(struct DM_ODM_T * pDM_Odm);
void odm_InitHybridAntDiv(struct DM_ODM_T *pDM_Odm);

bool odm_StaDefAntSel(
struct DM_ODM_T * pDM_Odm,
struct DM_ODM_T *pDM_Odm,
u32 OFDM_Ant1_Cnt,
u32 OFDM_Ant2_Cnt,
u32 CCK_Ant1_Cnt,
u32 CCK_Ant2_Cnt,
u8 *pDefAnt
);

void odm_SetRxIdleAnt(struct DM_ODM_T * pDM_Odm, u8 Ant, bool bDualPath);
void odm_SetRxIdleAnt(struct DM_ODM_T *pDM_Odm, u8 Ant, bool bDualPath);



void odm_HwAntDiv(struct DM_ODM_T * pDM_Odm);
void odm_HwAntDiv(struct DM_ODM_T *pDM_Odm);


/* */
Expand All @@ -360,7 +360,7 @@ void odm_HwAntDiv(struct DM_ODM_T * pDM_Odm);
/* */
/* 2011/09/21 MH Add to describe different team necessary resource allocate?? */
/* */
void ODM_DMInit(struct DM_ODM_T * pDM_Odm)
void ODM_DMInit(struct DM_ODM_T *pDM_Odm)
{

odm_CommonInfoSelfInit(pDM_Odm);
Expand Down Expand Up @@ -390,7 +390,7 @@ void ODM_DMInit(struct DM_ODM_T * pDM_Odm)
/* You can not add any dummy function here, be care, you can only use DM structure */
/* to perform any new ODM_DM. */
/* */
void ODM_DMWatchdog(struct DM_ODM_T * pDM_Odm)
void ODM_DMWatchdog(struct DM_ODM_T *pDM_Odm)
{
odm_CommonInfoSelfUpdate(pDM_Odm);
odm_BasicDbgMessage(pDM_Odm);
Expand All @@ -417,7 +417,7 @@ void ODM_DMWatchdog(struct DM_ODM_T * pDM_Odm)
odm_DIG(pDM_Odm);

{
struct DIG_T * pDM_DigTable = &pDM_Odm->DM_DigTable;
struct DIG_T *pDM_DigTable = &pDM_Odm->DM_DigTable;

odm_Adaptivity(pDM_Odm, pDM_DigTable->CurIGValue);
}
Expand Down Expand Up @@ -445,7 +445,7 @@ void ODM_DMWatchdog(struct DM_ODM_T * pDM_Odm)
/* */
/* Init /.. Fixed HW value. Only init time. */
/* */
void ODM_CmnInfoInit(struct DM_ODM_T * pDM_Odm, enum ODM_CMNINFO_E CmnInfo, u32 Value)
void ODM_CmnInfoInit(struct DM_ODM_T *pDM_Odm, enum ODM_CMNINFO_E CmnInfo, u32 Value)
{
/* */
/* This section is used for init value */
Expand Down Expand Up @@ -557,7 +557,7 @@ void ODM_CmnInfoInit(struct DM_ODM_T * pDM_Odm, enum ODM_CMNINFO_E CmnInfo, u32
}


void ODM_CmnInfoHook(struct DM_ODM_T * pDM_Odm, enum ODM_CMNINFO_E CmnInfo, void *pValue)
void ODM_CmnInfoHook(struct DM_ODM_T *pDM_Odm, enum ODM_CMNINFO_E CmnInfo, void *pValue)
{
/* */
/* Hook call by reference pointer. */
Expand Down Expand Up @@ -686,7 +686,7 @@ void ODM_CmnInfoHook(struct DM_ODM_T * pDM_Odm, enum ODM_CMNINFO_E CmnInfo, void


void ODM_CmnInfoPtrArrayHook(
struct DM_ODM_T * pDM_Odm,
struct DM_ODM_T *pDM_Odm,
enum ODM_CMNINFO_E CmnInfo,
u16 Index,
void *pValue
Expand Down Expand Up @@ -714,7 +714,7 @@ void ODM_CmnInfoPtrArrayHook(
/* */
/* Update Band/CHannel/.. The values are dynamic but non-per-packet. */
/* */
void ODM_CmnInfoUpdate(struct DM_ODM_T * pDM_Odm, u32 CmnInfo, u64 Value)
void ODM_CmnInfoUpdate(struct DM_ODM_T *pDM_Odm, u32 CmnInfo, u64 Value)
{
/* */
/* This init variable may be changed in run time. */
Expand Down Expand Up @@ -828,7 +828,7 @@ void ODM_CmnInfoUpdate(struct DM_ODM_T * pDM_Odm, u32 CmnInfo, u64 Value)

}

void odm_CommonInfoSelfInit(struct DM_ODM_T * pDM_Odm)
void odm_CommonInfoSelfInit(struct DM_ODM_T *pDM_Odm)
{
pDM_Odm->bCckHighPower = (bool) PHY_QueryBBReg(pDM_Odm->Adapter, ODM_REG(CCK_RPT_FORMAT, pDM_Odm), ODM_BIT(CCK_RPT_FORMAT, pDM_Odm));
pDM_Odm->RFPathRxEnable = (u8) PHY_QueryBBReg(pDM_Odm->Adapter, ODM_REG(BB_RX_PATH, pDM_Odm), ODM_BIT(BB_RX_PATH, pDM_Odm));
Expand All @@ -838,7 +838,7 @@ void odm_CommonInfoSelfInit(struct DM_ODM_T * pDM_Odm)
pDM_Odm->TxRate = 0xFF;
}

void odm_CommonInfoSelfUpdate(struct DM_ODM_T * pDM_Odm)
void odm_CommonInfoSelfUpdate(struct DM_ODM_T *pDM_Odm)
{
u8 EntryCnt = 0;
u8 i;
Expand All @@ -864,7 +864,7 @@ void odm_CommonInfoSelfUpdate(struct DM_ODM_T * pDM_Odm)
pDM_Odm->bOneEntryOnly = false;
}

void odm_CmnInfoInit_Debug(struct DM_ODM_T * pDM_Odm)
void odm_CmnInfoInit_Debug(struct DM_ODM_T *pDM_Odm)
{
ODM_RT_TRACE(pDM_Odm, ODM_COMP_COMMON, ODM_DBG_LOUD, ("odm_CmnInfoInit_Debug ==>\n"));
ODM_RT_TRACE(pDM_Odm, ODM_COMP_COMMON, ODM_DBG_LOUD, ("SupportPlatform =%d\n", pDM_Odm->SupportPlatform));
Expand All @@ -885,7 +885,7 @@ void odm_CmnInfoInit_Debug(struct DM_ODM_T * pDM_Odm)

}

void odm_BasicDbgMessage(struct DM_ODM_T * pDM_Odm)
void odm_BasicDbgMessage(struct DM_ODM_T *pDM_Odm)
{
ODM_RT_TRACE(pDM_Odm, ODM_COMP_COMMON, ODM_DBG_LOUD, ("odm_BasicDbgMsg ==>\n"));
ODM_RT_TRACE(pDM_Odm, ODM_COMP_COMMON, ODM_DBG_LOUD, ("bLinked = %d, RSSI_Min = %d,\n",
Expand Down Expand Up @@ -932,9 +932,9 @@ void odm_BasicDbgMessage(struct DM_ODM_T * pDM_Odm)
/* 3 Rate Adaptive */
/* 3 ============================================================ */

void odm_RateAdaptiveMaskInit(struct DM_ODM_T * pDM_Odm)
void odm_RateAdaptiveMaskInit(struct DM_ODM_T *pDM_Odm)
{
struct ODM_RATE_ADAPTIVE * pOdmRA = &pDM_Odm->RateAdaptive;
struct ODM_RATE_ADAPTIVE *pOdmRA = &pDM_Odm->RateAdaptive;

pOdmRA->Type = DM_Type_ByDriver;
if (pOdmRA->Type == DM_Type_ByDriver)
Expand All @@ -950,7 +950,7 @@ void odm_RateAdaptiveMaskInit(struct DM_ODM_T * pDM_Odm)
}

u32 ODM_Get_Rate_Bitmap(
struct DM_ODM_T * pDM_Odm,
struct DM_ODM_T *pDM_Odm,
u32 macid,
u32 ra_mask,
u8 rssi_level
Expand Down Expand Up @@ -1080,7 +1080,7 @@ u32 ODM_Get_Rate_Bitmap(
*
* --------------------------------------------------------------------------
*/
void odm_RefreshRateAdaptiveMask(struct DM_ODM_T * pDM_Odm)
void odm_RefreshRateAdaptiveMask(struct DM_ODM_T *pDM_Odm)
{

ODM_RT_TRACE(pDM_Odm, ODM_COMP_RA_MASK, ODM_DBG_TRACE, ("odm_RefreshRateAdaptiveMask()---------->\n"));
Expand All @@ -1091,7 +1091,7 @@ void odm_RefreshRateAdaptiveMask(struct DM_ODM_T * pDM_Odm)
odm_RefreshRateAdaptiveMaskCE(pDM_Odm);
}

void odm_RefreshRateAdaptiveMaskCE(struct DM_ODM_T * pDM_Odm)
void odm_RefreshRateAdaptiveMaskCE(struct DM_ODM_T *pDM_Odm)
{
u8 i;
struct adapter *padapter = pDM_Odm->Adapter;
Expand Down Expand Up @@ -1128,13 +1128,13 @@ void odm_RefreshRateAdaptiveMaskCE(struct DM_ODM_T * pDM_Odm)
/* Return Value: bool */
/* - true: RATRState is changed. */
bool ODM_RAStateCheck(
struct DM_ODM_T * pDM_Odm,
struct DM_ODM_T *pDM_Odm,
s32 RSSI,
bool bForceUpdate,
u8 *pRATRState
)
{
struct ODM_RATE_ADAPTIVE * pRA = &pDM_Odm->RateAdaptive;
struct ODM_RATE_ADAPTIVE *pRA = &pDM_Odm->RateAdaptive;
const u8 GoUpGap = 5;
u8 HighRSSIThreshForRA = pRA->HighRSSIThresh;
u8 LowRSSIThreshForRA = pRA->LowRSSIThresh;
Expand Down Expand Up @@ -1193,15 +1193,15 @@ bool ODM_RAStateCheck(
/* 3 RSSI Monitor */
/* 3 ============================================================ */

void odm_RSSIMonitorInit(struct DM_ODM_T * pDM_Odm)
void odm_RSSIMonitorInit(struct DM_ODM_T *pDM_Odm)
{
struct RA_T * pRA_Table = &pDM_Odm->DM_RA_Table;
struct RA_T *pRA_Table = &pDM_Odm->DM_RA_Table;

pRA_Table->firstconnect = false;

}

void odm_RSSIMonitorCheck(struct DM_ODM_T * pDM_Odm)
void odm_RSSIMonitorCheck(struct DM_ODM_T *pDM_Odm)
{
if (!(pDM_Odm->SupportAbility & ODM_BB_RSSI_MONITOR))
return;
Expand All @@ -1214,7 +1214,7 @@ static void FindMinimumRSSI(struct adapter *padapter)
{
struct hal_com_data *pHalData = GET_HAL_DATA(padapter);
struct dm_priv *pdmpriv = &pHalData->dmpriv;
struct DM_ODM_T * pDM_Odm = &(pHalData->odmpriv);
struct DM_ODM_T *pDM_Odm = &pHalData->odmpriv;

/* 1 1.Determine the minimum RSSI */

Expand All @@ -1231,7 +1231,7 @@ static void FindMinimumRSSI(struct adapter *padapter)
/* ODM_RT_TRACE(pDM_Odm, COMP_DIG, DBG_LOUD, ("MinUndecoratedPWDBForDM =%d\n", pHalData->MinUndecoratedPWDBForDM)); */
}

void odm_RSSIMonitorCheckCE(struct DM_ODM_T * pDM_Odm)
void odm_RSSIMonitorCheckCE(struct DM_ODM_T *pDM_Odm)
{
struct adapter *Adapter = pDM_Odm->Adapter;
struct hal_com_data *pHalData = GET_HAL_DATA(Adapter);
Expand All @@ -1240,7 +1240,7 @@ void odm_RSSIMonitorCheckCE(struct DM_ODM_T * pDM_Odm)
int tmpEntryMaxPWDB = 0, tmpEntryMinPWDB = 0xff;
u8 sta_cnt = 0;
u32 PWDB_rssi[NUM_STA] = {0};/* 0~15]:MACID, [16~31]:PWDB_rssi */
struct RA_T * pRA_Table = &pDM_Odm->DM_RA_Table;
struct RA_T *pRA_Table = &pDM_Odm->DM_RA_Table;

if (pDM_Odm->bLinked != true)
return;
Expand Down Expand Up @@ -1303,7 +1303,7 @@ void odm_RSSIMonitorCheckCE(struct DM_ODM_T * pDM_Odm)
/* 3 Tx Power Tracking */
/* 3 ============================================================ */

static u8 getSwingIndex(struct DM_ODM_T * pDM_Odm)
static u8 getSwingIndex(struct DM_ODM_T *pDM_Odm)
{
struct adapter *Adapter = pDM_Odm->Adapter;
u8 i = 0;
Expand All @@ -1327,7 +1327,7 @@ static u8 getSwingIndex(struct DM_ODM_T * pDM_Odm)
return i;
}

void odm_TXPowerTrackingInit(struct DM_ODM_T * pDM_Odm)
void odm_TXPowerTrackingInit(struct DM_ODM_T *pDM_Odm)
{
u8 defaultSwingIndex = getSwingIndex(pDM_Odm);
u8 p = 0;
Expand Down Expand Up @@ -1371,7 +1371,7 @@ void odm_TXPowerTrackingInit(struct DM_ODM_T * pDM_Odm)

}

void ODM_TXPowerTrackingCheck(struct DM_ODM_T * pDM_Odm)
void ODM_TXPowerTrackingCheck(struct DM_ODM_T *pDM_Odm)
{
struct adapter *Adapter = pDM_Odm->Adapter;

Expand All @@ -1395,9 +1395,9 @@ void ODM_TXPowerTrackingCheck(struct DM_ODM_T * pDM_Odm)
/* 3 ============================================================ */
/* 3 SW Antenna Diversity */
/* 3 ============================================================ */
void odm_SwAntDetectInit(struct DM_ODM_T * pDM_Odm)
void odm_SwAntDetectInit(struct DM_ODM_T *pDM_Odm)
{
struct SWAT_T * pDM_SWAT_Table = &pDM_Odm->DM_SWAT_Table;
struct SWAT_T *pDM_SWAT_Table = &pDM_Odm->DM_SWAT_Table;

pDM_SWAT_Table->SWAS_NoLink_BK_Reg92c = rtw_read32(pDM_Odm->Adapter, rDPDT_control);
pDM_SWAT_Table->PreAntenna = MAIN_ANT;
Expand Down

0 comments on commit 0da988e

Please sign in to comment.