staging: r8188eu: remove an unused define
PATCH 1/11 staging: r8188eu: remove an unused define
_HCI_INTF_C_ is not used and can be removed.
--- drivers/staging/r8188eu/os_dep/usb_intf.c | 2 -- 1 file changed, 2 deletions(-)
drivers/staging/r8188eu/os_dep/usb_intf.c +0 -2
@@ -1,8 +1,6 @@// SPDX-License-Identifier: GPL-2.0 /* Copyright(c) 2007 - 2011 Realtek Corporation. */ -#define _HCI_INTF_C_ -#include <linux/usb.h> #include "../include/osdep_service.h" #include "../include/drv_types.h"
Signature · 1 line
2.20.1
PATCH 2/11 staging: r8188eu: remove specific device table
This driver implements a mechanism to set additional configuration flags per supported usb device.
None of the supported devices uses these additional flags. Remove the data types and the code to process the flags.
--- drivers/staging/r8188eu/include/drv_types.h | 13 --------- drivers/staging/r8188eu/os_dep/usb_intf.c | 29 --------------------- 2 files changed, 42 deletions(-)
drivers/staging/r8188eu/include/drv_types.h +0 -13
@@ -37,19 +37,6 @@#define DRIVERVERSION "v4.1.4_6773.20130222" -#define SPEC_DEV_ID_NONE BIT(0) -#define SPEC_DEV_ID_DISABLE_HT BIT(1) -#define SPEC_DEV_ID_ENABLE_PS BIT(2) -#define SPEC_DEV_ID_RF_CONFIG_1T1R BIT(3) -#define SPEC_DEV_ID_RF_CONFIG_2T2R BIT(4) -#define SPEC_DEV_ID_ASSIGN_IFNAME BIT(5) - -struct specific_device_id { -u32 flags; -u16 idVendor; -u16 idProduct; -}; -struct registry_priv {u8 chip_version;u8 rfintfs;
drivers/staging/r8188eu/os_dep/usb_intf.c +0 -29
@@ -49,10 +49,6 @@ static struct usb_device_id rtw_usb_id_tbl[] = {MODULE_DEVICE_TABLE (usb, rtw_usb_id_tbl); -static struct specific_device_id specific_device_id_tbl[] = { - {}/* empty table for now */ -}; -struct rtw_usb_drv {struct usb_driver usbdrv;int drv_registered;
@@ -212,28 +208,6 @@ static void rtw_dev_unload(struct adapter *padapter)DBG_88E ("<=== rtw_dev_unload\n" ); } -static void process_spec_devid (const struct usb_device_id *pdid) -{ -u16 vid, pid; -u32 flags; -int i; -int num =sizeof (specific_device_id_tbl) / -sizeof (struct specific_device_id ); - -for (i =0 ; i < num; i++) { - vid = specific_device_id_tbl[i].idVendor; - pid = specific_device_id_tbl[i].idProduct; - flags = specific_device_id_tbl[i].flags; - -if ((pdid->idVendor == vid) && (pdid->idProduct == pid) && - (flags &SPEC_DEV_ID_DISABLE_HT )) { - rtw_ht_enable =0 ; - rtw_cbw40_enable =0 ; - rtw_ampdu_enable =0 ; - } - } -} -static int rtw_suspend (struct usb_interface *pusb_intf,pm_message_t message) {struct dvobj_priv *dvobj =usb_get_intfdata (pusb_intf);
@@ -499,9 +473,6 @@ static int rtw_drv_init(struct usb_interface *pusb_intf, const struct usb_devicestruct adapter *if1 =NULL ;struct dvobj_priv *dvobj; -/* step 0. */ -process_spec_devid (pdid); -/* Initialize dvobj_priv */ dvobj =usb_dvobj_init (pusb_intf);if (!dvobj)
Signature · 1 line
2.20.1
PATCH 3/11 staging: r8188eu: RfOnOffDetect is unused
In reply to Martin KaiserRemove the RfOnOffDetect function, which is not used.
--- drivers/staging/r8188eu/hal/usb_halinit.c | 18 ------------------ drivers/staging/r8188eu/include/rtw_pwrctrl.h | 2 -- 2 files changed, 20 deletions(-)
drivers/staging/r8188eu/hal/usb_halinit.c +0 -18
@@ -599,24 +599,6 @@ static void _InitAntenna_Selection(struct adapter *Adapter)DBG_88E ("%s,Cur_ant:(%x)%s\n" , __func__, haldata->CurAntenna, (haldata->CurAntenna == Antenna_A) ?"Antenna_A" :"Antenna_B" ); } -enum rt_rf_power_state RfOnOffDetect (struct adapter *adapt) -{ -u8 val8; -enum rt_rf_power_state rfpowerstate = rf_off; - -if (adapt->pwrctrlpriv.bHWPowerdown) { - val8 =rtw_read8 (adapt,REG_HSISR ); -DBG_88E ("pwrdown, 0x5c(BIT(7))=%02x\n" , val8); - rfpowerstate = (val8 &BIT (7 )) ? rf_off : rf_on; - }else {/* rf on/off */ -rtw_write8 (adapt,REG_MAC_PINMUX_CFG ,rtw_read8 (adapt,REG_MAC_PINMUX_CFG ) & ~(BIT (3 ))); - val8 =rtw_read8 (adapt,REG_GPIO_IO_SEL ); -DBG_88E ("GPIO_IN=%02x\n" , val8); - rfpowerstate = (val8 &BIT (3 )) ? rf_on : rf_off; - } -return rfpowerstate; -}/* HalDetectPwrDownMode */ -u32 rtl8188eu_hal_init (struct adapter *Adapter) {u8 value8 =0 ;
drivers/staging/r8188eu/include/rtw_pwrctrl.h +0 -2
@@ -143,8 +143,6 @@ int ips_leave(struct adapter *padapter);void rtw_ps_processor (struct adapter *padapter); -enum rt_rf_power_state RfOnOffDetect (struct adapter *iadapter); -s32 LPS_RF_ON_check (struct adapter *adapter,u32 delay_ms);void LPS_Enter (struct adapter *adapter);void LPS_Leave (struct adapter *adapter);
Signature · 1 line
2.20.1
PATCH 4/11 staging: r8188eu: remove odm fab version info
In reply to Martin KaiserThe fab version info is set but not used. Remove it.
--- drivers/staging/r8188eu/hal/odm.c | 3 --- drivers/staging/r8188eu/hal/rtl8188e_dm.c | 4 +--- drivers/staging/r8188eu/include/odm.h | 9 --------- 3 files changed, 1 insertion(+), 15 deletions(-)
drivers/staging/r8188eu/hal/odm.c +0 -3
@@ -231,9 +231,6 @@ void ODM_CmnInfoInit(struct odm_dm_struct *pDM_Odm, enum odm_common_info_def Cmncase ODM_CMNINFO_CUT_VER : pDM_Odm->CutVersion = (u8 )Value;break ; -case ODM_CMNINFO_FAB_VER : - pDM_Odm->FabVersion = (u8 )Value; -break ;case ODM_CMNINFO_RF_TYPE : pDM_Odm->RFType = (u8 )Value;break ;
drivers/staging/r8188eu/hal/rtl8188e_dm.c +1 -3
@@ -31,7 +31,7 @@ static void Init_ODM_ComInfo_88E(struct adapter *Adapter)struct hal_data_8188e *hal_data =GET_HAL_DATA (Adapter);struct dm_priv *pdmpriv = &hal_data->dmpriv;struct odm_dm_struct *dm_odm = &hal_data->odmpriv; -u8 cut_ver, fab_ver; +u8 cut_ver;/* Init Value */ memset (dm_odm,0 ,sizeof (*dm_odm));
@@ -44,10 +44,8 @@ static void Init_ODM_ComInfo_88E(struct adapter *Adapter)ODM_CmnInfoInit (dm_odm,ODM_CMNINFO_IC_TYPE ,ODM_RTL8188E ); - fab_ver =ODM_TSMC ; cut_ver =ODM_CUT_A ; -ODM_CmnInfoInit (dm_odm,ODM_CMNINFO_FAB_VER , fab_ver);ODM_CmnInfoInit (dm_odm,ODM_CMNINFO_CUT_VER , cut_ver);ODM_CmnInfoInit (dm_odm,ODM_CMNINFO_MP_TEST_CHIP ,IS_NORMAL_CHIP (hal_data->VersionID));
drivers/staging/r8188eu/include/odm.h +0 -9
@@ -267,7 +267,6 @@ enum odm_common_info_def {ODM_CMNINFO_MP_TEST_CHIP ,ODM_CMNINFO_IC_TYPE ,/* ODM_IC_TYPE_E */ ODM_CMNINFO_CUT_VER ,/* ODM_CUT_VERSION_E */ -ODM_CMNINFO_FAB_VER ,/* ODM_FAB_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 */
@@ -384,12 +383,6 @@ enum odm_cut_version { ODM_CUT_TEST = 7, }; -/* ODM_CMNINFO_FAB_VER */ -enum odm_fab_Version { -ODM_TSMC =0 , -ODM_UMC =1 , -}; -/* ODM_CMNINFO_RF_TYPE */ /* For example 1T2R (A+AB = BIT(0)|BIT(4)|BIT(5)) */ enum odm_rf_path {
@@ -668,8 +661,6 @@ struct odm_dm_struct {u32 SupportICType;/* Cut Version TestChip/A-cut/B-cut... = 0/1/2/3/... */ u8 CutVersion; -/* Fab Version TSMC/UMC = 0/1 */ -u8 FabVersion;/* RF Type 4T4R/3T3R/2T2R/1T2R/1T1R/... */ u8 RFType;/* Board Type Normal/HighPower/MiniCard/SLIM/Combo/. = 0/1/2/3/4/. */
Signature · 1 line
2.20.1
PATCH 5/11 staging: r8188eu: remove odm cut version info
In reply to Martin KaiserThe cut version info is set but not used. Remove it.
--- drivers/staging/r8188eu/hal/odm.c | 3 --- drivers/staging/r8188eu/hal/rtl8188e_dm.c | 5 ----- drivers/staging/r8188eu/include/odm.h | 14 -------------- 3 files changed, 22 deletions(-)
drivers/staging/r8188eu/hal/odm.c +0 -3
@@ -228,9 +228,6 @@ void ODM_CmnInfoInit(struct odm_dm_struct *pDM_Odm, enum odm_common_info_def Cmncase ODM_CMNINFO_IC_TYPE : pDM_Odm->SupportICType = Value;break ; -case ODM_CMNINFO_CUT_VER : - pDM_Odm->CutVersion = (u8 )Value; -break ;case ODM_CMNINFO_RF_TYPE : pDM_Odm->RFType = (u8 )Value;break ;
drivers/staging/r8188eu/hal/rtl8188e_dm.c +0 -5
@@ -31,7 +31,6 @@ static void Init_ODM_ComInfo_88E(struct adapter *Adapter)struct hal_data_8188e *hal_data =GET_HAL_DATA (Adapter);struct dm_priv *pdmpriv = &hal_data->dmpriv;struct odm_dm_struct *dm_odm = &hal_data->odmpriv; -u8 cut_ver;/* Init Value */ memset (dm_odm,0 ,sizeof (*dm_odm));
@@ -44,10 +43,6 @@ static void Init_ODM_ComInfo_88E(struct adapter *Adapter)ODM_CmnInfoInit (dm_odm,ODM_CMNINFO_IC_TYPE ,ODM_RTL8188E ); - cut_ver =ODM_CUT_A ; - -ODM_CmnInfoInit (dm_odm,ODM_CMNINFO_CUT_VER , cut_ver); -ODM_CmnInfoInit (dm_odm,ODM_CMNINFO_MP_TEST_CHIP ,IS_NORMAL_CHIP (hal_data->VersionID));ODM_CmnInfoInit (dm_odm,ODM_CMNINFO_BWIFI_TEST , Adapter->registrypriv.wifi_spec);
drivers/staging/r8188eu/include/odm.h +0 -14
@@ -266,7 +266,6 @@ enum odm_common_info_def {ODM_CMNINFO_INTERFACE ,/* ODM_INTERFACE_E */ ODM_CMNINFO_MP_TEST_CHIP ,ODM_CMNINFO_IC_TYPE ,/* ODM_IC_TYPE_E */ -ODM_CMNINFO_CUT_VER ,/* ODM_CUT_VERSION_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 */
@@ -372,17 +371,6 @@ enum odm_ic_type { ODM_RTL8821 = BIT(6), }; -/* ODM_CMNINFO_CUT_VER */ -enum odm_cut_version { -ODM_CUT_A =1 , -ODM_CUT_B =2 , -ODM_CUT_C =3 , -ODM_CUT_D =4 , -ODM_CUT_E =5 , -ODM_CUT_F =6 , -ODM_CUT_TEST =7 , -}; -/* ODM_CMNINFO_RF_TYPE */ /* For example 1T2R (A+AB = BIT(0)|BIT(4)|BIT(5)) */ enum odm_rf_path {
@@ -659,8 +647,6 @@ struct odm_dm_struct {/* ODM composite or independent. Bit oriented/ 92C+92D+ .... or any * other type = 1/2/3/... */ u32 SupportICType; -/* Cut Version TestChip/A-cut/B-cut... = 0/1/2/3/... */ -u8 CutVersion;/* RF Type 4T4R/3T3R/2T2R/1T2R/1T1R/... */ u8 RFType;/* Board Type Normal/HighPower/MiniCard/SLIM/Combo/. = 0/1/2/3/4/. */
Signature · 1 line
2.20.1
PATCH 6/11 staging: r8188eu: remove odm dualmac smart concurrent info
In reply to Martin KaiserThe dualmac smart concurrent info is set but not used. Remove it.
--- drivers/staging/r8188eu/hal/odm.c | 3 --- drivers/staging/r8188eu/include/odm.h | 2 -- 2 files changed, 5 deletions(-)
drivers/staging/r8188eu/hal/odm.c +0 -3
@@ -252,9 +252,6 @@ void ODM_CmnInfoInit(struct odm_dm_struct *pDM_Odm, enum odm_common_info_def Cmncase ODM_CMNINFO_BWIFI_TEST : pDM_Odm->bWIFITest = (bool )Value;break ; -case ODM_CMNINFO_SMART_CONCURRENT : - pDM_Odm->bDualMacSmartConcurrent = (bool )Value; -break ;/* To remove the compiler warning, must add an empty default statement to handle the other values. */ default :/* do nothing */
drivers/staging/r8188eu/include/odm.h +0 -2
@@ -273,7 +273,6 @@ enum odm_common_info_def {ODM_CMNINFO_EXT_TRSW ,ODM_CMNINFO_BINHCT_TEST , ODM_CMNINFO_BWIFI_TEST, - ODM_CMNINFO_SMART_CONCURRENT,/* HOOK BEFORE REG INIT----------- */ /* Dynamic value: */
@@ -660,7 +659,6 @@ struct odm_dm_struct {bool bInHctTest;bool bWIFITest; -bool bDualMacSmartConcurrent;u32 BK_SupportAbility;u8 AntDivType;/* HOOK BEFORE REG INIT----------- */
Signature · 1 line
2.20.1
PATCH 7/11 staging: r8188eu: remove odm wifi test info
In reply to Martin KaiserThe wifi test info is set but not used. Remove it.
--- drivers/staging/r8188eu/hal/odm.c | 3 --- drivers/staging/r8188eu/hal/rtl8188e_dm.c | 2 -- drivers/staging/r8188eu/include/odm.h | 2 -- 3 files changed, 7 deletions(-)
drivers/staging/r8188eu/hal/odm.c +0 -3
@@ -249,9 +249,6 @@ void ODM_CmnInfoInit(struct odm_dm_struct *pDM_Odm, enum odm_common_info_def Cmncase ODM_CMNINFO_BINHCT_TEST : pDM_Odm->bInHctTest = (bool )Value;break ; -case ODM_CMNINFO_BWIFI_TEST : - pDM_Odm->bWIFITest = (bool )Value; -break ;/* To remove the compiler warning, must add an empty default statement to handle the other values. */ default :/* do nothing */
drivers/staging/r8188eu/hal/rtl8188e_dm.c +0 -2
@@ -45,8 +45,6 @@ static void Init_ODM_ComInfo_88E(struct adapter *Adapter)ODM_CmnInfoInit (dm_odm,ODM_CMNINFO_MP_TEST_CHIP ,IS_NORMAL_CHIP (hal_data->VersionID)); -ODM_CmnInfoInit (dm_odm,ODM_CMNINFO_BWIFI_TEST , Adapter->registrypriv.wifi_spec); -if (hal_data->rf_type ==RF_1T1R )ODM_CmnInfoUpdate (dm_odm,ODM_CMNINFO_RF_TYPE ,ODM_1T1R );else if (hal_data->rf_type ==RF_2T2R )
drivers/staging/r8188eu/include/odm.h +0 -2
@@ -272,7 +272,6 @@ enum odm_common_info_def {ODM_CMNINFO_EXT_PA ,ODM_CMNINFO_EXT_TRSW , ODM_CMNINFO_BINHCT_TEST, - ODM_CMNINFO_BWIFI_TEST,/* HOOK BEFORE REG INIT----------- */ /* Dynamic value: */
@@ -657,7 +656,6 @@ struct odm_dm_struct {/* with external TRSW NO/Yes = 0/1 */ u8 ExtTRSW;bool bInHctTest; -bool bWIFITest;u32 BK_SupportAbility;u8 AntDivType;
Signature · 1 line
2.20.1
PATCH 8/11 staging: r8188eu: remove odm hct test info
In reply to Martin KaiserThe "in hct test" variable is never set, it's always 0.
Remove the variable and fix up the one place where it was used.
--- drivers/staging/r8188eu/hal/odm.c | 3 --- drivers/staging/r8188eu/hal/odm_HWConfig.c | 2 +- drivers/staging/r8188eu/include/odm.h | 2 -- 3 files changed, 1 insertion(+), 6 deletions(-)
drivers/staging/r8188eu/hal/odm.c +0 -3
@@ -246,9 +246,6 @@ void ODM_CmnInfoInit(struct odm_dm_struct *pDM_Odm, enum odm_common_info_def Cmncase 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 */
drivers/staging/r8188eu/hal/odm_HWConfig.c +1 -1
@@ -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;
drivers/staging/r8188eu/include/odm.h +0 -2
@@ -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;
Signature · 1 line
2.20.1
PATCH 9/11 staging: r8188eu: remove odm ext trsw info
In reply to Martin KaiserThe ext trsw info is not used. Remove it.
--- drivers/staging/r8188eu/hal/odm.c | 3 --- drivers/staging/r8188eu/include/odm.h | 3 --- 2 files changed, 6 deletions(-)
drivers/staging/r8188eu/hal/odm.c +0 -3
@@ -243,9 +243,6 @@ void ODM_CmnInfoInit(struct odm_dm_struct *pDM_Odm, enum odm_common_info_def Cmncase ODM_CMNINFO_EXT_PA : pDM_Odm->ExtPA = (u8 )Value;break ; -case ODM_CMNINFO_EXT_TRSW : - pDM_Odm->ExtTRSW = (u8 )Value; -break ;/* To remove the compiler warning, must add an empty default statement to handle the other values. */ default :/* do nothing */
drivers/staging/r8188eu/include/odm.h +0 -3
@@ -270,7 +270,6 @@ enum odm_common_info_def {ODM_CMNINFO_BOARD_TYPE ,/* ODM_BOARD_TYPE_E */ ODM_CMNINFO_EXT_LNA ,/* true */ ODM_CMNINFO_EXT_PA, - ODM_CMNINFO_EXT_TRSW,/* HOOK BEFORE REG INIT----------- */ /* Dynamic value: */
@@ -652,8 +651,6 @@ struct odm_dm_struct {u8 ExtLNA;/* with external PA NO/Yes = 0/1 */ u8 ExtPA; -/* with external TRSW NO/Yes = 0/1 */ -u8 ExtTRSW;u32 BK_SupportAbility;u8 AntDivType;
Signature · 1 line
2.20.1
PATCH 10/11 staging: r8188eu: remove odm ext pa info
In reply to Martin KaiserThe ext pa info is not used. Remove it.
--- drivers/staging/r8188eu/hal/odm.c | 3 --- drivers/staging/r8188eu/include/odm.h | 3 --- 2 files changed, 6 deletions(-)
drivers/staging/r8188eu/hal/odm.c +0 -3
@@ -240,9 +240,6 @@ void ODM_CmnInfoInit(struct odm_dm_struct *pDM_Odm, enum odm_common_info_def Cmncase ODM_CMNINFO_EXT_LNA : pDM_Odm->ExtLNA = (u8 )Value;break ; -case ODM_CMNINFO_EXT_PA : - pDM_Odm->ExtPA = (u8 )Value; -break ;/* To remove the compiler warning, must add an empty default statement to handle the other values. */ default :/* do nothing */
drivers/staging/r8188eu/include/odm.h +0 -3
@@ -269,7 +269,6 @@ enum odm_common_info_def {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 */ - ODM_CMNINFO_EXT_PA,/* HOOK BEFORE REG INIT----------- */ /* Dynamic value: */
@@ -649,8 +648,6 @@ struct odm_dm_struct {u8 BoardType;/* with external LNA NO/Yes = 0/1 */ u8 ExtLNA; -/* with external PA NO/Yes = 0/1 */ -u8 ExtPA;u32 BK_SupportAbility;u8 AntDivType;
Signature · 1 line
2.20.1
PATCH 11/11 staging: r8188eu: remove odm ext lna info
In reply to Martin KaiserThe ext lna info is never set. Remove it and fix up the one place where it's read.
--- drivers/staging/r8188eu/hal/odm.c | 7 +------ drivers/staging/r8188eu/include/odm.h | 3 --- 2 files changed, 1 insertion(+), 9 deletions(-)
drivers/staging/r8188eu/hal/odm.c +1 -6
@@ -237,9 +237,6 @@ void ODM_CmnInfoInit(struct odm_dm_struct *pDM_Odm, enum odm_common_info_def Cmncase 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 ;
drivers/staging/r8188eu/include/odm.h +0 -3
@@ -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;
Signature · 1 line
2.20.1