提交 c7ff38c7 编写于 作者: J Jo-Philipp Wich

modules/admin-full: adjust usage of luci.sys.wifi.channels(), fix some i18n

上级 21c3e370
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册