git.99rst.org
/
openwrt-luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
d1fd6e7
)
modules/admin-full: remove usage of wifi.channels()
author
Jo-Philipp Wich
<redacted>
Wed, 8 Aug 2012 20:22:15 +0000
(20:22 +0000)
committer
Jo-Philipp Wich
<redacted>
Wed, 8 Aug 2012 20:22:15 +0000
(20:22 +0000)
modules/admin-full/luasrc/model/cbi/admin_network/wifi.lua
patch
|
blob
|
history
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 7b88e7a9eff6a822bdea2e0fbc4e1d75ba6d2ed4..d3a27b64ca2c09529e4f04b155441eef0ab3ece2 100644
(file)
--- a/
modules/admin-full/luasrc/model/cbi/admin_network/wifi.lua
+++ b/
modules/admin-full/luasrc/model/cbi/admin_network/wifi.lua
@@
-166,7
+166,7
@@
if has_sta then
else
ch = s:taboption("general", Value, "channel", translate("Channel"))
ch:value("auto", translate("auto"))
- for _, f in ipairs(iw and iw.freqlist
or luci.sys.wifi.channels()
) do
+ for _, f in ipairs(iw and iw.freqlist) do
if not f.restricted then
ch:value(f.channel, "%i (%.3f GHz)" %{ f.channel, f.mhz / 1000 })
end
git clone https://git.99rst.org/PROJECT