modules/admin-full: adjust usage of luci.sys.wifi.channels(), fix some i18n
This commit is contained in:
parent
21c3e37062
commit
c7ff38c778
1 changed files with 2 additions and 5 deletions
|
@ -44,10 +44,7 @@ nw.init(m.uci)
|
||||||
ww.init(m.uci)
|
ww.init(m.uci)
|
||||||
|
|
||||||
local wnet = ww:get_network(arg[2])
|
local wnet = ww:get_network(arg[2])
|
||||||
|
m.title = wnet and ww:get_i18n(wnet) or translate("Wireless Network")
|
||||||
if wnet then
|
|
||||||
m.title = wnet and ww:get_i18n(wnet)
|
|
||||||
end
|
|
||||||
|
|
||||||
|
|
||||||
local iw = nil
|
local iw = nil
|
||||||
|
@ -92,7 +89,7 @@ local nsantenna = m:get(arg[1], "antenna")
|
||||||
ch = s:taboption("general", Value, "channel", translate("Channel"))
|
ch = s:taboption("general", Value, "channel", translate("Channel"))
|
||||||
ch:value("auto", translate("auto"))
|
ch:value("auto", translate("auto"))
|
||||||
for _, f in ipairs(luci.sys.wifi.channels()) do
|
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
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue