mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2024-11-26 14:23:39 +00:00
rtl8188eu: Convert CONFIG_FIND_BEST_CHANNEL to CONFIG_AP_MODE
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
9decc528d8
commit
7b6e9a069d
5 changed files with 6 additions and 9 deletions
|
@ -1042,7 +1042,7 @@ int proc_get_all_sta_info(char *page, char **start,
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_FIND_BEST_CHANNEL
|
#ifdef CONFIG_AP_MODE
|
||||||
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)
|
||||||
|
@ -1127,7 +1127,7 @@ int proc_set_best_channel(struct file *file, const char __user *buffer,
|
||||||
|
|
||||||
return count;
|
return count;
|
||||||
}
|
}
|
||||||
#endif /* CONFIG_FIND_BEST_CHANNEL */
|
#endif /* CONFIG_AP_MODE */
|
||||||
#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
|
||||||
|
|
|
@ -2014,7 +2014,7 @@ sint validate_recv_frame(struct 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
|
#ifdef CONFIG_AP_MODE
|
||||||
struct mlme_ext_priv *pmlmeext = &adapter->mlmeextpriv;
|
struct mlme_ext_priv *pmlmeext = &adapter->mlmeextpriv;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -2032,7 +2032,7 @@ sint validate_recv_frame(struct adapter *adapter, union recv_frame *precv_frame)
|
||||||
;
|
;
|
||||||
|
|
||||||
|
|
||||||
#ifdef CONFIG_FIND_BEST_CHANNEL
|
#ifdef CONFIG_AP_MODE
|
||||||
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)
|
||||||
|
|
|
@ -31,9 +31,6 @@
|
||||||
#define CONFIG_EMBEDDED_FWIMG
|
#define CONFIG_EMBEDDED_FWIMG
|
||||||
|
|
||||||
#define CONFIG_AP_MODE
|
#define CONFIG_AP_MODE
|
||||||
#ifdef CONFIG_AP_MODE
|
|
||||||
#define CONFIG_FIND_BEST_CHANNEL
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#define CONFIG_P2P
|
#define CONFIG_P2P
|
||||||
#ifdef CONFIG_P2P
|
#ifdef CONFIG_P2P
|
||||||
|
|
|
@ -373,7 +373,7 @@ extern u32 GlobalDebugLevel;
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_FIND_BEST_CHANNEL
|
#ifdef CONFIG_AP_MODE
|
||||||
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);
|
||||||
|
|
|
@ -439,7 +439,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
|
#ifdef CONFIG_AP_MODE
|
||||||
u32 rx_count;
|
u32 rx_count;
|
||||||
#endif
|
#endif
|
||||||
}RT_CHANNEL_INFO, *PRT_CHANNEL_INFO;
|
}RT_CHANNEL_INFO, *PRT_CHANNEL_INFO;
|
||||||
|
|
Loading…
Reference in a new issue