mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2024-11-22 04:23:39 +00:00
rtl8188eu: Remove CONFIG_FIND_BEST_CHANNEL
This variable is selected. Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
f50db5cd2c
commit
d2528caa5f
7 changed files with 0 additions and 19 deletions
|
@ -1006,7 +1006,6 @@ int proc_get_all_sta_info(char *page, char **start,
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_FIND_BEST_CHANNEL
|
|
||||||
int proc_get_best_channel(char *page, char **start,
|
int proc_get_best_channel(char *page, char **start,
|
||||||
off_t offset, int count,
|
off_t offset, int count,
|
||||||
int *eof, void *data)
|
int *eof, void *data)
|
||||||
|
@ -1066,7 +1065,6 @@ int proc_get_best_channel(char *page, char **start,
|
||||||
return len;
|
return len;
|
||||||
|
|
||||||
}
|
}
|
||||||
#endif /* CONFIG_FIND_BEST_CHANNEL */
|
|
||||||
#ifdef CONFIG_BT_COEXIST
|
#ifdef CONFIG_BT_COEXIST
|
||||||
#define _bt_dbg_off_ 0
|
#define _bt_dbg_off_ 0
|
||||||
#define _bt_dbg_on_ 1
|
#define _bt_dbg_on_ 1
|
||||||
|
|
|
@ -9937,9 +9937,6 @@ u8 sitesurvey_cmd_hdl(_adapter *padapter, u8 *pbuf)
|
||||||
|
|
||||||
if ((pmlmeext->sitesurvey_res.state == SCAN_START) || (pmlmeext->sitesurvey_res.state == SCAN_TXNULL))
|
if ((pmlmeext->sitesurvey_res.state == SCAN_START) || (pmlmeext->sitesurvey_res.state == SCAN_TXNULL))
|
||||||
{
|
{
|
||||||
#ifdef CONFIG_FIND_BEST_CHANNEL
|
|
||||||
#endif /* CONFIG_FIND_BEST_CHANNEL */
|
|
||||||
|
|
||||||
/* disable dynamic functions, such as high power, DIG */
|
/* disable dynamic functions, such as high power, DIG */
|
||||||
Save_DM_Func_Flag(padapter);
|
Save_DM_Func_Flag(padapter);
|
||||||
Switch_DM_Func(padapter, DYNAMIC_FUNC_DISABLE, false);
|
Switch_DM_Func(padapter, DYNAMIC_FUNC_DISABLE, false);
|
||||||
|
|
|
@ -1615,20 +1615,15 @@ sint validate_recv_frame(_adapter *adapter, union recv_frame *precv_frame)
|
||||||
|
|
||||||
u8 *ptr = precv_frame->u.hdr.rx_data;
|
u8 *ptr = precv_frame->u.hdr.rx_data;
|
||||||
u8 ver =(unsigned char) (*ptr)&0x3 ;
|
u8 ver =(unsigned char) (*ptr)&0x3 ;
|
||||||
#ifdef CONFIG_FIND_BEST_CHANNEL
|
|
||||||
struct mlme_ext_priv *pmlmeext = &adapter->mlmeextpriv;
|
struct mlme_ext_priv *pmlmeext = &adapter->mlmeextpriv;
|
||||||
#endif
|
|
||||||
|
|
||||||
_func_enter_;
|
_func_enter_;
|
||||||
|
|
||||||
|
|
||||||
#ifdef CONFIG_FIND_BEST_CHANNEL
|
|
||||||
if (pmlmeext->sitesurvey_res.state == SCAN_PROCESS) {
|
if (pmlmeext->sitesurvey_res.state == SCAN_PROCESS) {
|
||||||
int ch_set_idx = rtw_ch_set_search_ch(pmlmeext->channel_set, rtw_get_oper_ch(adapter));
|
int ch_set_idx = rtw_ch_set_search_ch(pmlmeext->channel_set, rtw_get_oper_ch(adapter));
|
||||||
if (ch_set_idx >= 0)
|
if (ch_set_idx >= 0)
|
||||||
pmlmeext->channel_set[ch_set_idx].rx_count++;
|
pmlmeext->channel_set[ch_set_idx].rx_count++;
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
/* add version chk */
|
/* add version chk */
|
||||||
if (ver!=0){
|
if (ver!=0){
|
||||||
|
|
|
@ -64,7 +64,6 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define CONFIG_NATIVEAP_MLME
|
#define CONFIG_NATIVEAP_MLME
|
||||||
#define CONFIG_FIND_BEST_CHANNEL
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define CONFIG_P2P
|
#define CONFIG_P2P
|
||||||
|
|
|
@ -323,11 +323,9 @@ extern u32 GlobalDebugLevel;
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_FIND_BEST_CHANNEL
|
|
||||||
int proc_get_best_channel(char *page, char **start,
|
int proc_get_best_channel(char *page, char **start,
|
||||||
off_t offset, int count,
|
off_t offset, int count,
|
||||||
int *eof, void *data);
|
int *eof, void *data);
|
||||||
#endif
|
|
||||||
|
|
||||||
int proc_get_rx_signal(char *page, char **start,
|
int proc_get_rx_signal(char *page, char **start,
|
||||||
off_t offset, int count,
|
off_t offset, int count,
|
||||||
|
|
|
@ -404,9 +404,7 @@ typedef struct _RT_CHANNEL_INFO
|
||||||
//u16 ScanPeriod; // Listen time in millisecond in this channel.
|
//u16 ScanPeriod; // Listen time in millisecond in this channel.
|
||||||
//s32 MaxTxPwrDbm; // Max allowed tx power.
|
//s32 MaxTxPwrDbm; // Max allowed tx power.
|
||||||
//u32 ExInfo; // Extended Information for this channel.
|
//u32 ExInfo; // Extended Information for this channel.
|
||||||
#ifdef CONFIG_FIND_BEST_CHANNEL
|
|
||||||
u32 rx_count;
|
u32 rx_count;
|
||||||
#endif
|
|
||||||
}RT_CHANNEL_INFO, *PRT_CHANNEL_INFO;
|
}RT_CHANNEL_INFO, *PRT_CHANNEL_INFO;
|
||||||
|
|
||||||
int rtw_ch_set_search_ch(RT_CHANNEL_INFO *ch_set, const u32 ch);
|
int rtw_ch_set_search_ch(RT_CHANNEL_INFO *ch_set, const u32 ch);
|
||||||
|
|
|
@ -494,14 +494,12 @@ void rtw_proc_init_one(struct net_device *dev)
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_FIND_BEST_CHANNEL
|
|
||||||
entry = create_proc_read_entry("best_channel", S_IFREG | S_IRUGO,
|
entry = create_proc_read_entry("best_channel", S_IFREG | S_IRUGO,
|
||||||
dir_dev, proc_get_best_channel, dev);
|
dir_dev, proc_get_best_channel, dev);
|
||||||
if (!entry) {
|
if (!entry) {
|
||||||
pr_info("Unable to create_proc_read_entry!\n");
|
pr_info("Unable to create_proc_read_entry!\n");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
entry = create_proc_read_entry("rx_signal", S_IFREG | S_IRUGO,
|
entry = create_proc_read_entry("rx_signal", S_IFREG | S_IRUGO,
|
||||||
dir_dev, proc_get_rx_signal, dev);
|
dir_dev, proc_get_rx_signal, dev);
|
||||||
|
@ -606,9 +604,7 @@ void rtw_proc_remove_one(struct net_device *dev)
|
||||||
remove_proc_entry("all_sta_info", dir_dev);
|
remove_proc_entry("all_sta_info", dir_dev);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_FIND_BEST_CHANNEL
|
|
||||||
remove_proc_entry("best_channel", dir_dev);
|
remove_proc_entry("best_channel", dir_dev);
|
||||||
#endif
|
|
||||||
remove_proc_entry("rx_signal", dir_dev);
|
remove_proc_entry("rx_signal", dir_dev);
|
||||||
#ifdef CONFIG_80211N_HT
|
#ifdef CONFIG_80211N_HT
|
||||||
remove_proc_entry("cbw40_enable", dir_dev);
|
remove_proc_entry("cbw40_enable", dir_dev);
|
||||||
|
|
Loading…
Reference in a new issue