mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 03:15:31 +09:00
staging: r8188eu: odm_rate_adapt Type is constant
Type in struct odm_rate_adapt is always DM_Type_ByDriver. Therefore, bUseRAMask is always true. Remove the constant components, unused defines and dead code. Acked-by: Phillip Potter <phil@philpotter.co.uk> Signed-off-by: Martin Kaiser <martin@kaiser.cx> Link: https://lore.kernel.org/r/20211020195401.12931-2-martin@kaiser.cx Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
4df5190976
commit
35f8fa8f01
@@ -669,12 +669,6 @@ void odm_RateAdaptiveMaskInit(struct odm_dm_struct *pDM_Odm)
|
||||
{
|
||||
struct odm_rate_adapt *pOdmRA = &pDM_Odm->RateAdaptive;
|
||||
|
||||
pOdmRA->Type = DM_Type_ByDriver;
|
||||
if (pOdmRA->Type == DM_Type_ByDriver)
|
||||
pDM_Odm->bUseRAMask = true;
|
||||
else
|
||||
pDM_Odm->bUseRAMask = false;
|
||||
|
||||
pOdmRA->RATRState = DM_RATR_STA_INIT;
|
||||
pOdmRA->HighRSSIThresh = 50;
|
||||
pOdmRA->LowRSSIThresh = 20;
|
||||
@@ -755,9 +749,6 @@ void odm_RefreshRateAdaptiveMask(struct odm_dm_struct *pDM_Odm)
|
||||
if (pAdapter->bDriverStopped)
|
||||
return;
|
||||
|
||||
if (!pDM_Odm->bUseRAMask)
|
||||
return;
|
||||
|
||||
for (i = 0; i < ODM_ASSOCIATE_ENTRY_NUM; i++) {
|
||||
struct sta_info *pstat = pDM_Odm->pODM_StaInfo[i];
|
||||
if (IS_STA_VALID(pstat)) {
|
||||
|
||||
@@ -150,7 +150,6 @@ struct edca_turbo {
|
||||
};
|
||||
|
||||
struct odm_rate_adapt {
|
||||
u8 Type; /* DM_Type_ByFW/DM_Type_ByDriver */
|
||||
u8 HighRSSIThresh; /* if RSSI > HighRSSIThresh => RATRState is DM_RATR_STA_HIGH */
|
||||
u8 LowRSSIThresh; /* if RSSI <= LowRSSIThresh => RATRState is DM_RATR_STA_LOW */
|
||||
u8 RATRState; /* Current RSSI level, DM_RATR_STA_HIGH/DM_RATR_STA_MIDDLE/DM_RATR_STA_LOW */
|
||||
@@ -165,8 +164,6 @@ struct odm_rate_adapt {
|
||||
#define AVG_THERMAL_NUM 8
|
||||
#define IQK_Matrix_REG_NUM 8
|
||||
|
||||
#define DM_Type_ByDriver 1
|
||||
|
||||
struct odm_phy_dbg_info {
|
||||
/* ODM Write,debug info */
|
||||
s8 RxSNRdB[MAX_PATH_NUM_92CS];
|
||||
@@ -586,9 +583,6 @@ struct odm_dm_struct {
|
||||
bool bPSDinProcess;
|
||||
bool bDMInitialGainEnable;
|
||||
|
||||
/* for rate adaptive, in fact, 88c/92c fw will handle this */
|
||||
u8 bUseRAMask;
|
||||
|
||||
struct odm_rate_adapt RateAdaptive;
|
||||
|
||||
struct odm_rf_cal RFCalibrateInfo;
|
||||
|
||||
Reference in New Issue
Block a user