summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2012-08-08 20:25:03 +0000
committerJo-Philipp Wich <jow@openwrt.org>2012-08-08 20:25:03 +0000
commit9bd814cf0e04d2b15c4a6e197d59e1e1be5bdb15 (patch)
tree3b27f7856976e85164497349db6f4647d0072ff9
parent92fc96f6fd74f5301667c67552115d9d6f74ae4a (diff)
libs/sys: remove wifi.channels()
-rw-r--r--libs/sys/luasrc/sys.lua33
1 files changed, 0 insertions, 33 deletions
diff --git a/libs/sys/luasrc/sys.lua b/libs/sys/luasrc/sys.lua
index a5c5ab1ec..33cf87591 100644
--- a/libs/sys/luasrc/sys.lua
+++ b/libs/sys/luasrc/sys.lua
@@ -836,39 +836,6 @@ function wifi.getiwinfo(ifname)
end
end
---- Get available channels from given wireless iface.
--- @param iface Wireless interface (optional)
--- @return Table of available channels
-function wifi.channels(iface)
- local stat, iwinfo = pcall(require, "iwinfo")
- local cns
-
- if stat then
- local t = iwinfo.type(iface or "")
- if iface and t and iwinfo[t] then
- cns = iwinfo[t].freqlist(iface)
- end
- end
-
- if not cns or #cns == 0 then
- cns = {
- {channel = 1, mhz = 2412},
- {channel = 2, mhz = 2417},
- {channel = 3, mhz = 2422},
- {channel = 4, mhz = 2427},
- {channel = 5, mhz = 2432},
- {channel = 6, mhz = 2437},
- {channel = 7, mhz = 2442},
- {channel = 8, mhz = 2447},
- {channel = 9, mhz = 2452},
- {channel = 10, mhz = 2457},
- {channel = 11, mhz = 2462}
- }
- end
-
- return cns
-end
-
--- LuCI system utilities / init related functions.
-- @class module