mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-05 20:33:49 -04:00
staging: r8188eu: remove odm ext lna info
The ext lna info is never set. Remove it and fix up the one place where it's read. Signed-off-by: Martin Kaiser <martin@kaiser.cx> Link: https://lore.kernel.org/r/20211010175204.24029-11-martin@kaiser.cx Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
28ad741b21
commit
997e127a28
@@ -237,9 +237,6 @@ void ODM_CmnInfoInit(struct odm_dm_struct *pDM_Odm, enum odm_common_info_def Cmn
|
||||
case ODM_CMNINFO_BOARD_TYPE:
|
||||
pDM_Odm->BoardType = (u8)Value;
|
||||
break;
|
||||
case ODM_CMNINFO_EXT_LNA:
|
||||
pDM_Odm->ExtLNA = (u8)Value;
|
||||
break;
|
||||
/* To remove the compiler warning, must add an empty default statement to handle the other values. */
|
||||
default:
|
||||
/* do nothing */
|
||||
@@ -494,7 +491,7 @@ void odm_DIG(struct odm_dm_struct *pDM_Odm)
|
||||
|
||||
/* 1 Boundary Decision */
|
||||
if ((pDM_Odm->SupportICType & (ODM_RTL8192C | ODM_RTL8723A)) &&
|
||||
((pDM_Odm->BoardType == ODM_BOARD_HIGHPWR) || pDM_Odm->ExtLNA)) {
|
||||
(pDM_Odm->BoardType == ODM_BOARD_HIGHPWR)) {
|
||||
if (pDM_Odm->SupportPlatform & (ODM_AP | ODM_ADSL)) {
|
||||
dm_dig_max = DM_DIG_MAX_AP_HP;
|
||||
dm_dig_min = DM_DIG_MIN_AP_HP;
|
||||
@@ -729,8 +726,6 @@ void odm_CCKPacketDetectionThresh(struct odm_dm_struct *pDM_Odm)
|
||||
|
||||
if (!(pDM_Odm->SupportAbility & (ODM_BB_CCK_PD | ODM_BB_FA_CNT)))
|
||||
return;
|
||||
if (pDM_Odm->ExtLNA)
|
||||
return;
|
||||
if (pDM_Odm->bLinked) {
|
||||
if (pDM_Odm->RSSI_Min > 25) {
|
||||
CurCCK_CCAThres = 0xcd;
|
||||
|
||||
@@ -268,7 +268,6 @@ enum odm_common_info_def {
|
||||
ODM_CMNINFO_IC_TYPE, /* ODM_IC_TYPE_E */
|
||||
ODM_CMNINFO_RF_TYPE, /* RF_PATH_E or ODM_RF_TYPE_E? */
|
||||
ODM_CMNINFO_BOARD_TYPE, /* ODM_BOARD_TYPE_E */
|
||||
ODM_CMNINFO_EXT_LNA, /* true */
|
||||
/* HOOK BEFORE REG INIT----------- */
|
||||
|
||||
/* Dynamic value: */
|
||||
@@ -646,8 +645,6 @@ struct odm_dm_struct {
|
||||
u8 RFType;
|
||||
/* Board Type Normal/HighPower/MiniCard/SLIM/Combo/. = 0/1/2/3/4/. */
|
||||
u8 BoardType;
|
||||
/* with external LNA NO/Yes = 0/1 */
|
||||
u8 ExtLNA;
|
||||
|
||||
u32 BK_SupportAbility;
|
||||
u8 AntDivType;
|
||||
|
||||
Reference in New Issue
Block a user