staging: r8188eu: make odm_CommonInfoSelfUpdate() static
Function odm_CommonInfoSelfUpdate() is only used in odm.c. Make it static. Signed-off-by: Michael Straube <straube.linux@gmail.com> Link: https://lore.kernel.org/r/20211229205108.26373-19-straube.linux@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
7d3cbea175
commit
5ab68d92cd
@ -311,6 +311,32 @@ static void odm_CommonInfoSelfInit(struct odm_dm_struct *pDM_Odm)
|
||||
pDM_Odm->RFPathRxEnable = (u8)rtl8188e_PHY_QueryBBReg(adapter, 0xc04, 0x0F);
|
||||
}
|
||||
|
||||
static void odm_CommonInfoSelfUpdate(struct odm_dm_struct *pDM_Odm)
|
||||
{
|
||||
u8 EntryCnt = 0;
|
||||
u8 i;
|
||||
struct sta_info *pEntry;
|
||||
|
||||
if (*pDM_Odm->pBandWidth == ODM_BW40M) {
|
||||
if (*pDM_Odm->pSecChOffset == 1)
|
||||
pDM_Odm->ControlChannel = *pDM_Odm->pChannel - 2;
|
||||
else if (*pDM_Odm->pSecChOffset == 2)
|
||||
pDM_Odm->ControlChannel = *pDM_Odm->pChannel + 2;
|
||||
} else {
|
||||
pDM_Odm->ControlChannel = *pDM_Odm->pChannel;
|
||||
}
|
||||
|
||||
for (i = 0; i < ODM_ASSOCIATE_ENTRY_NUM; i++) {
|
||||
pEntry = pDM_Odm->pODM_StaInfo[i];
|
||||
if (IS_STA_VALID(pEntry))
|
||||
EntryCnt++;
|
||||
}
|
||||
if (EntryCnt == 1)
|
||||
pDM_Odm->bOneEntryOnly = true;
|
||||
else
|
||||
pDM_Odm->bOneEntryOnly = false;
|
||||
}
|
||||
|
||||
/* 3 Export Interface */
|
||||
|
||||
/* 2011/09/21 MH Add to describe different team necessary resource allocate?? */
|
||||
@ -434,32 +460,6 @@ void ODM_CmnInfoUpdate(struct odm_dm_struct *pDM_Odm, u32 CmnInfo, u64 Value)
|
||||
}
|
||||
}
|
||||
|
||||
void odm_CommonInfoSelfUpdate(struct odm_dm_struct *pDM_Odm)
|
||||
{
|
||||
u8 EntryCnt = 0;
|
||||
u8 i;
|
||||
struct sta_info *pEntry;
|
||||
|
||||
if (*pDM_Odm->pBandWidth == ODM_BW40M) {
|
||||
if (*pDM_Odm->pSecChOffset == 1)
|
||||
pDM_Odm->ControlChannel = *pDM_Odm->pChannel - 2;
|
||||
else if (*pDM_Odm->pSecChOffset == 2)
|
||||
pDM_Odm->ControlChannel = *pDM_Odm->pChannel + 2;
|
||||
} else {
|
||||
pDM_Odm->ControlChannel = *pDM_Odm->pChannel;
|
||||
}
|
||||
|
||||
for (i = 0; i < ODM_ASSOCIATE_ENTRY_NUM; i++) {
|
||||
pEntry = pDM_Odm->pODM_StaInfo[i];
|
||||
if (IS_STA_VALID(pEntry))
|
||||
EntryCnt++;
|
||||
}
|
||||
if (EntryCnt == 1)
|
||||
pDM_Odm->bOneEntryOnly = true;
|
||||
else
|
||||
pDM_Odm->bOneEntryOnly = false;
|
||||
}
|
||||
|
||||
void ODM_Write_DIG(struct odm_dm_struct *pDM_Odm, u8 CurrentIGI)
|
||||
{
|
||||
struct rtw_dig *pDM_DigTable = &pDM_Odm->DM_DigTable;
|
||||
|
@ -35,7 +35,6 @@ void odm_RateAdaptiveMaskInit(struct odm_dm_struct *pDM_Odm);
|
||||
void odm_DynamicBBPowerSavingInit(struct odm_dm_struct *pDM_Odm);
|
||||
void odm_TXPowerTrackingInit(struct odm_dm_struct *pDM_Odm);
|
||||
void ODM_EdcaTurboInit(struct odm_dm_struct *pDM_Odm);
|
||||
void odm_CommonInfoSelfUpdate(struct odm_dm_struct *pDM_Odm);
|
||||
void odm_FalseAlarmCounterStatistics(struct odm_dm_struct *pDM_Odm);
|
||||
void odm_CCKPacketDetectionThresh(struct odm_dm_struct *pDM_Odm);
|
||||
void odm_EdcaTurboCheck(struct odm_dm_struct *pDM_Odm);
|
||||
|
Loading…
Reference in New Issue
Block a user