From 89ece183ef93a16afcbbdf3dca5398d34c233aa6 Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Sun, 15 Nov 2009 15:46:27 +0000 Subject: Merge luci.sys.wifi.channels to iwinfo --- modules/admin-full/luasrc/model/cbi/admin_network/wifi.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/admin-full') diff --git a/modules/admin-full/luasrc/model/cbi/admin_network/wifi.lua b/modules/admin-full/luasrc/model/cbi/admin_network/wifi.lua index 78d763056..00bd560fc 100644 --- a/modules/admin-full/luasrc/model/cbi/admin_network/wifi.lua +++ b/modules/admin-full/luasrc/model/cbi/admin_network/wifi.lua @@ -91,8 +91,8 @@ local nsantenna = m:get(arg[1], "antenna") ch = s:taboption("general", Value, "channel", translate("Channel")) ch:value("auto", translate("auto")) -for c, f in luci.util.kspairs(luci.sys.wifi.channels()) do - ch:value(c, "%i (%.3f GHz)" %{ c, f }) +for _, f in ipairs(luci.sys.wifi.channels()) do + ch:value(f.channel, "%i (%.3f GHz)" %{ f.channel, f.mhz }) end -- cgit v1.2.3