mirror of https://gitee.com/openkylin/linux.git
staging: rtl8188eu: Move channel_table away from rtw_mlme_ext.h
Moved "static const struct channel_table[]" from include/rtw_mlme_ext.h to core/rtw_ioctl_set.c because the latter is the only file that uses that array of struct(s) in the whole driver. "make rtl8188eu/ W=1" output several warnings about "'channel_table' defined but not used [-Wunused-const-variable=]". Signed-off-by: Fabio M. De Francesco <fmdefrancesco@gmail.com> Link: https://lore.kernel.org/r/20210413102033.24781-1-fmdefrancesco@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
174250f8d9
commit
c3db59cfe1
|
@ -11,6 +11,14 @@
|
|||
#include <rtw_ioctl_set.h>
|
||||
#include <hal_intf.h>
|
||||
|
||||
static const struct {
|
||||
int channel_plan;
|
||||
char *name;
|
||||
} channel_table[] = { { RT_CHANNEL_DOMAIN_FCC, "US" },
|
||||
{ RT_CHANNEL_DOMAIN_ETSI, "EU" },
|
||||
{ RT_CHANNEL_DOMAIN_MKK, "JP" },
|
||||
{ RT_CHANNEL_DOMAIN_CHINA, "CN"} };
|
||||
|
||||
extern void indicate_wx_scan_complete_event(struct adapter *padapter);
|
||||
|
||||
u8 rtw_do_join(struct adapter *padapter)
|
||||
|
|
|
@ -171,14 +171,6 @@ struct rt_channel_plan_map {
|
|||
unsigned char Index2G;
|
||||
};
|
||||
|
||||
static const struct {
|
||||
int channel_plan;
|
||||
char *name;
|
||||
} channel_table[] = { { RT_CHANNEL_DOMAIN_FCC, "US" },
|
||||
{ RT_CHANNEL_DOMAIN_ETSI, "EU" },
|
||||
{ RT_CHANNEL_DOMAIN_MKK, "JP" },
|
||||
{ RT_CHANNEL_DOMAIN_CHINA, "CN"} };
|
||||
|
||||
enum Associated_AP {
|
||||
atherosAP = 0,
|
||||
broadcomAP = 1,
|
||||
|
|
Loading…
Reference in New Issue