summaryrefslogtreecommitdiffhomepage
path: root/modules/admin-full
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2009-11-15 17:09:40 +0000
committerJo-Philipp Wich <jow@openwrt.org>2009-11-15 17:09:40 +0000
commitc7ff38c7789857bad6be4e0bdf72f6742b1e5c51 (patch)
tree0783e45e10e18e70acaa506cefc8419f81ac9613 /modules/admin-full
parent21c3e370626fb49395ccba43df540e5ee068e0bd (diff)
modules/admin-full: adjust usage of luci.sys.wifi.channels(), fix some i18n
Diffstat (limited to 'modules/admin-full')
-rw-r--r--modules/admin-full/luasrc/model/cbi/admin_network/wifi.lua7
1 files changed, 2 insertions, 5 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 00bd560fc2..1d46c7551d 100644
--- a/modules/admin-full/luasrc/model/cbi/admin_network/wifi.lua
+++ b/modules/admin-full/luasrc/model/cbi/admin_network/wifi.lua
@@ -44,10 +44,7 @@ nw.init(m.uci)
ww.init(m.uci)
local wnet = ww:get_network(arg[2])
-
-if wnet then
- m.title = wnet and ww:get_i18n(wnet)
-end
+m.title = wnet and ww:get_i18n(wnet) or translate("Wireless Network")
local iw = nil
@@ -92,7 +89,7 @@ local nsantenna = m:get(arg[1], "antenna")
ch = s:taboption("general", Value, "channel", translate("Channel"))
ch:value("auto", translate("auto"))
for _, f in ipairs(luci.sys.wifi.channels()) do
- ch:value(f.channel, "%i (%.3f GHz)" %{ f.channel, f.mhz })
+ ch:value(f.channel, "%i (%.3f GHz)" %{ f.channel, f.mhz / 1000 })
end