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:
d0b04df
)
modules/admin-full: cope with undefined frequency lists
author
Jo-Philipp Wich
<redacted>
Wed, 26 Sep 2012 17:34:58 +0000
(17:34 +0000)
committer
Jo-Philipp Wich
<redacted>
Wed, 26 Sep 2012 17:34:58 +0000
(17:34 +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 bcc44162103430f7b9e98312d738c21285b6970c..f645493a61d17c6cb17df308f33df1b0b33e6b57 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) do
+ for _, f in ipairs(iw and iw.freqlist
or { }
) 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