diff options
author | Martin Kaiser <martin@kaiser.cx> | 2021-10-10 19:52:01 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-10-13 14:26:51 +0200 |
commit | 8f78bc11b8ae1f3522af99b3c54a049ecc7c043d (patch) | |
tree | b7fc8fd6e99eeeb6811b1b548ad062fbc662ef4b /drivers/staging/r8188eu | |
parent | 640649a15e90a5d9f9762d88ced873ccea79b378 (diff) |
staging: r8188eu: remove odm hct test info
The "in hct test" variable is never set, it's always 0.
Remove the variable and fix up the one place where it was used.
Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Link: https://lore.kernel.org/r/20211010175204.24029-8-martin@kaiser.cx
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/r8188eu')
-rw-r--r-- | drivers/staging/r8188eu/hal/odm.c | 3 | ||||
-rw-r--r-- | drivers/staging/r8188eu/hal/odm_HWConfig.c | 2 | ||||
-rw-r--r-- | drivers/staging/r8188eu/include/odm.h | 2 |
3 files changed, 1 insertions, 6 deletions
diff --git a/drivers/staging/r8188eu/hal/odm.c b/drivers/staging/r8188eu/hal/odm.c index f76bdf3d9a80..c094cffb9e6a 100644 --- a/drivers/staging/r8188eu/hal/odm.c +++ b/drivers/staging/r8188eu/hal/odm.c @@ -246,9 +246,6 @@ void ODM_CmnInfoInit(struct odm_dm_struct *pDM_Odm, enum odm_common_info_def Cmn case ODM_CMNINFO_EXT_TRSW: pDM_Odm->ExtTRSW = (u8)Value; break; - case ODM_CMNINFO_BINHCT_TEST: - pDM_Odm->bInHctTest = (bool)Value; - break; /* To remove the compiler warning, must add an empty default statement to handle the other values. */ default: /* do nothing */ diff --git a/drivers/staging/r8188eu/hal/odm_HWConfig.c b/drivers/staging/r8188eu/hal/odm_HWConfig.c index 2ae1a001d339..8e419fd88a12 100644 --- a/drivers/staging/r8188eu/hal/odm_HWConfig.c +++ b/drivers/staging/r8188eu/hal/odm_HWConfig.c @@ -143,7 +143,7 @@ static void odm_RxPhyStatus92CSeries_Parsing(struct odm_dm_struct *dm_odm, if (pPktinfo->bPacketMatchBSSID) { u8 SQ, SQ_rpt; - if (pPhyInfo->RxPWDBAll > 40 && !dm_odm->bInHctTest) { + if (pPhyInfo->RxPWDBAll > 40) { SQ = 100; } else { SQ_rpt = pPhyStaRpt->cck_sig_qual_ofdm_pwdb_all; diff --git a/drivers/staging/r8188eu/include/odm.h b/drivers/staging/r8188eu/include/odm.h index a4e5d4f9f0b9..462424f0a49b 100644 --- a/drivers/staging/r8188eu/include/odm.h +++ b/drivers/staging/r8188eu/include/odm.h @@ -271,7 +271,6 @@ enum odm_common_info_def { ODM_CMNINFO_EXT_LNA, /* true */ ODM_CMNINFO_EXT_PA, ODM_CMNINFO_EXT_TRSW, - ODM_CMNINFO_BINHCT_TEST, /* HOOK BEFORE REG INIT----------- */ /* Dynamic value: */ @@ -655,7 +654,6 @@ struct odm_dm_struct { u8 ExtPA; /* with external TRSW NO/Yes = 0/1 */ u8 ExtTRSW; - bool bInHctTest; u32 BK_SupportAbility; u8 AntDivType; |