diff options
author | Steven Barth <steven@midlink.org> | 2009-11-15 15:46:27 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2009-11-15 15:46:27 +0000 |
commit | 89ece183ef93a16afcbbdf3dca5398d34c233aa6 (patch) | |
tree | bb9ed3a1bf1de0b86ffe01700d90e5ef089ee293 /modules/admin-full/luasrc/model/cbi | |
parent | 1b77a6f4c49b29b83e3063d9deca1a38e97ad897 (diff) |
Merge luci.sys.wifi.channels to iwinfo
Diffstat (limited to 'modules/admin-full/luasrc/model/cbi')
-rw-r--r-- | modules/admin-full/luasrc/model/cbi/admin_network/wifi.lua | 4 |
1 files changed, 2 insertions, 2 deletions
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 78d7630564..00bd560fc2 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 |