staging: r8188eu: Remove unused macros and defines from odm.h
PATCH 1/1 staging: r8188eu: Remove unused macros and defines from odm.h
This header defines a number of symbols/macros that are not used and can be removed. In addition, it defines a number of synonym symbols that are used interchangeably in the source. Only one is now selected.
In addition to the above, a number of comments that have no meaning for this chip have been removed.
Signed-off-by Larry Finger <[email protected]>
--- .../r8188eu/hal/Hal8188ERateAdaptive.c | 12 +- drivers/staging/r8188eu/include/odm.h | 145 ++---------------- 2 files changed, 15 insertions(+), 142 deletions(-)
drivers/staging/r8188eu/hal/Hal8188ERateAdaptive.c +6 -6
@@ -538,7 +538,7 @@ int ODM_RAInfo_Init_all(struct odm_dm_struct *dm_odm)u8 ODM_RA_GetShortGI_8188E (struct odm_dm_struct *dm_odm,u8 macid) { -if ((NULL == dm_odm) || (macid >=ASSOCIATE_ENTRY_NUM )) +if ((NULL == dm_odm) || (macid >=ODM_ASSOCIATE_ENTRY_NUM ))return 0 ;return dm_odm->RAInfo[macid].RateSGI; }
@@ -547,7 +547,7 @@ u8 ODM_RA_GetDecisionRate_8188E(struct odm_dm_struct *dm_odm, u8 macid) {u8 DecisionRate =0 ; -if ((NULL == dm_odm) || (macid >=ASSOCIATE_ENTRY_NUM )) +if ((NULL == dm_odm) || (macid >=ODM_ASSOCIATE_ENTRY_NUM ))return 0 ; DecisionRate = (dm_odm->RAInfo[macid].DecisionRate);return DecisionRate;
@@ -557,7 +557,7 @@ u8 ODM_RA_GetHwPwrStatus_8188E(struct odm_dm_struct *dm_odm, u8 macid) {u8 PTStage =5 ; -if ((NULL == dm_odm) || (macid >=ASSOCIATE_ENTRY_NUM )) +if ((NULL == dm_odm) || (macid >=ODM_ASSOCIATE_ENTRY_NUM ))return 0 ; PTStage = (dm_odm->RAInfo[macid].PTStage);return PTStage;
@@ -567,7 +567,7 @@ void ODM_RA_UpdateRateInfo_8188E(struct odm_dm_struct *dm_odm, u8 macid, u8 Rate {struct odm_ra_info *pRaInfo =NULL ; -if ((NULL == dm_odm) || (macid >=ASSOCIATE_ENTRY_NUM )) +if ((NULL == dm_odm) || (macid >=ODM_ASSOCIATE_ENTRY_NUM ))return ; pRaInfo = &dm_odm->RAInfo[macid];
@@ -581,7 +581,7 @@ void ODM_RA_SetRSSI_8188E(struct odm_dm_struct *dm_odm, u8 macid, u8 Rssi) {struct odm_ra_info *pRaInfo =NULL ; -if ((NULL == dm_odm) || (macid >=ASSOCIATE_ENTRY_NUM )) +if ((NULL == dm_odm) || (macid >=ODM_ASSOCIATE_ENTRY_NUM ))return ; pRaInfo = &dm_odm->RAInfo[macid];
@@ -605,7 +605,7 @@ void ODM_RA_TxRPT2Handle_8188E(struct odm_dm_struct *dm_odm, u8 *TxRPT_Buf, u16 pBuffer = TxRPT_Buf; do { - if (MacId >= ASSOCIATE_ENTRY_NUM) + if (MacId >= ODM_ASSOCIATE_ENTRY_NUM) valid = 0; else if (MacId >= 32) valid = (1 << (MacId - 32)) & macid_entry1;
drivers/staging/r8188eu/include/odm.h +9 -136
218 lines not on this page · raw message
Signature · 1 line
2.33.0