mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2025-05-07 05:53:06 +00:00
rtl8188eu: Remove ANTENNA DIVERSITY configuration variables and dead code
These changes include the following: 1. CONFIG_SW_ANTENNA_DIVERSITY - not selected 2. CONFIG_HW_ANTENNA_DIVERSITY - selected 3. CONFIG_ANTENNA_DIVERSITY - selected Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
9ba4954378
commit
951757e916
17 changed files with 42 additions and 944 deletions
|
@ -77,14 +77,6 @@
|
|||
#define CONFIG_XMIT_THREAD_MODE
|
||||
#endif
|
||||
|
||||
//befor link
|
||||
#define CONFIG_ANTENNA_DIVERSITY
|
||||
|
||||
//after link
|
||||
#ifdef CONFIG_ANTENNA_DIVERSITY
|
||||
#define CONFIG_HW_ANTENNA_DIVERSITY
|
||||
#endif
|
||||
|
||||
#define CONFIG_AP_MODE
|
||||
#ifdef CONFIG_AP_MODE
|
||||
#ifdef CONFIG_INTERRUPT_BASED_TXBCN
|
||||
|
|
|
@ -204,10 +204,8 @@ struct hal_ops {
|
|||
void (*run_thread)(_adapter *padapter);
|
||||
void (*cancel_thread)(_adapter *padapter);
|
||||
|
||||
#ifdef CONFIG_ANTENNA_DIVERSITY
|
||||
u8 (*AntDivBeforeLinkHandler)(_adapter *padapter);
|
||||
void (*AntDivCompareHandler)(_adapter *padapter, WLAN_BSSID_EX *dst, WLAN_BSSID_EX *src);
|
||||
#endif
|
||||
u8 (*interface_ps_func)(_adapter *padapter,HAL_INTF_PS_FUNC efunc_id, u8* val);
|
||||
|
||||
s32 (*hal_xmit)(_adapter *padapter, struct xmit_frame *pxmitframe);
|
||||
|
@ -424,10 +422,8 @@ void rtw_hal_set_bwmode(_adapter *padapter, HT_CHANNEL_WIDTH Bandwidth, u8 Offse
|
|||
void rtw_hal_set_chan(_adapter *padapter, u8 channel);
|
||||
void rtw_hal_dm_watchdog(_adapter *padapter);
|
||||
|
||||
#ifdef CONFIG_ANTENNA_DIVERSITY
|
||||
u8 rtw_hal_antdiv_before_linked(_adapter *padapter);
|
||||
void rtw_hal_antdiv_rssi_compared(_adapter *padapter, WLAN_BSSID_EX *dst, WLAN_BSSID_EX *src);
|
||||
#endif
|
||||
|
||||
#ifdef DBG_CONFIG_ERROR_DETECT
|
||||
void rtw_hal_sreset_init(_adapter *padapter);
|
||||
|
|
|
@ -263,7 +263,6 @@ typedef struct _SW_Antenna_Switch_
|
|||
u8Byte RXByteCnt_B;
|
||||
u1Byte TrafficLoad;
|
||||
RT_TIMER SwAntennaSwitchTimer;
|
||||
#ifdef CONFIG_HW_ANTENNA_DIVERSITY
|
||||
//Hybrid Antenna Diversity
|
||||
u4Byte CCK_Ant1_Cnt[ASSOCIATE_ENTRY_NUM];
|
||||
u4Byte CCK_Ant2_Cnt[ASSOCIATE_ENTRY_NUM];
|
||||
|
@ -275,9 +274,6 @@ typedef struct _SW_Antenna_Switch_
|
|||
u1Byte TargetSTA;
|
||||
u1Byte antsel;
|
||||
u1Byte RxIdleAnt;
|
||||
|
||||
#endif
|
||||
|
||||
}SWAT_T, *pSWAT_T;
|
||||
|
||||
typedef struct _EDCA_TURBO_
|
||||
|
|
|
@ -103,9 +103,6 @@ typedef enum _RT_SPINLOCK_TYPE{
|
|||
#define STA_INFO_T RT_WLAN_STA
|
||||
#define PSTA_INFO_T PRT_WLAN_STA
|
||||
|
||||
#define CONFIG_HW_ANTENNA_DIVERSITY
|
||||
#define CONFIG_SW_ANTENNA_DIVERSITY
|
||||
|
||||
#elif (DM_ODM_SUPPORT_TYPE == ODM_AP)
|
||||
|
||||
// To let ADSL/AP project compile ok; it should be removed after all conflict are solved. Added by Annie, 2011-10-07.
|
||||
|
|
|
@ -56,9 +56,7 @@ void rtl8188e_deinit_dm_priv(PADAPTER Adapter);
|
|||
void rtl8188e_InitHalDm(PADAPTER Adapter);
|
||||
void rtl8188e_HalDmWatchDog(PADAPTER Adapter);
|
||||
|
||||
#ifdef CONFIG_ANTENNA_DIVERSITY
|
||||
void AntDivCompare8188E(PADAPTER Adapter, WLAN_BSSID_EX *dst, WLAN_BSSID_EX *src);
|
||||
u8 AntDivBeforeLink8188E(PADAPTER Adapter );
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
|
@ -948,10 +948,7 @@ u8 rtw_lps_ctrl_wk_cmd(_adapter*padapter, u8 lps_ctrl_type, u8 enqueue);
|
|||
u8 rtw_rpt_timer_cfg_cmd(_adapter*padapter, u16 minRptTime);
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_ANTENNA_DIVERSITY
|
||||
extern u8 rtw_antenna_select_cmd(_adapter*padapter, u8 antenna,u8 enqueue);
|
||||
#endif
|
||||
|
||||
extern u8 rtw_ps_cmd(_adapter*padapter);
|
||||
|
||||
#ifdef CONFIG_AP_MODE
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue