From 9a80f9bd59b3646e3a4182f4bc1e8c874e92206c Mon Sep 17 00:00:00 2001 From: hanwckf Date: Tue, 15 Oct 2024 00:04:08 +0800 Subject: [PATCH] iwinfo: remove unused functions and vars --- package/network/utils/iwinfo/src/iwinfo_mtk.c | 28 ------------------- 1 file changed, 28 deletions(-) diff --git a/package/network/utils/iwinfo/src/iwinfo_mtk.c b/package/network/utils/iwinfo/src/iwinfo_mtk.c index 15742704ac..23f0135137 100644 --- a/package/network/utils/iwinfo/src/iwinfo_mtk.c +++ b/package/network/utils/iwinfo/src/iwinfo_mtk.c @@ -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;