mirror of
https://github.com/hanwckf/immortalwrt-mt798x.git
synced 2025-01-05 00:53:32 +08:00
iwinfo: remove unused functions and vars
This commit is contained in:
parent
ddeca34127
commit
9a80f9bd59
@ -625,26 +625,6 @@ static int mtk_get_scanlist(const char *dev, char *buf, int *len)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static double wext_freq2float(const struct iw_freq *in)
|
||||
{
|
||||
int i;
|
||||
double res = (double) in->m;
|
||||
for(i = 0; i < in->e; i++) res *= 10;
|
||||
return res;
|
||||
}
|
||||
|
||||
static inline int wext_freq2mhz(const struct iw_freq *in)
|
||||
{
|
||||
if( in->e == 6 )
|
||||
{
|
||||
return in->m;
|
||||
}
|
||||
else
|
||||
{
|
||||
return (int)(wext_freq2float(in) / 1000000);
|
||||
}
|
||||
}
|
||||
|
||||
static int mtk_get_freqlist(const char *dev, char *buf, int *len)
|
||||
{
|
||||
struct iwreq wrq;
|
||||
@ -730,14 +710,10 @@ static int mtk_get_countrylist(const char *dev, char *buf, int *len)
|
||||
|
||||
static int mtk_get_hwmodelist(const char *dev, int *buf)
|
||||
{
|
||||
const char *ifname;
|
||||
char chans[IWINFO_BUFSIZE] = { 0 };
|
||||
struct iwinfo_freqlist_entry *e = NULL;
|
||||
struct uci_section *s;
|
||||
const char* band = NULL;
|
||||
struct iwreq wrq;
|
||||
int chband;
|
||||
int len = 0;
|
||||
|
||||
*buf = 0;
|
||||
|
||||
@ -777,14 +753,10 @@ uciout:
|
||||
|
||||
static int mtk_get_htmodelist(const char *dev, int *buf)
|
||||
{
|
||||
const char *ifname;
|
||||
char chans[IWINFO_BUFSIZE] = { 0 };
|
||||
struct iwinfo_freqlist_entry *e = NULL;
|
||||
struct uci_section *s;
|
||||
const char* band = NULL;
|
||||
struct iwreq wrq;
|
||||
int chband;
|
||||
int len = 0;
|
||||
|
||||
*buf = 0;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user