diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2012-09-26 17:34:58 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2012-09-26 17:34:58 +0000 |
commit | 02ac6686fe8165a3965fd79e3fb32aaf1f831c79 (patch) | |
tree | fefffade75413f9c538dc2132f1481b98c1afabf /modules/admin-full/luasrc/model/cbi | |
parent | d0b04df5c98222a66aac3e2a1579f519227641bd (diff) |
modules/admin-full: cope with undefined frequency lists
Diffstat (limited to 'modules/admin-full/luasrc/model/cbi')
-rw-r--r-- | modules/admin-full/luasrc/model/cbi/admin_network/wifi.lua | 2 |
1 files changed, 1 insertions, 1 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 bcc4416210..f645493a61 100644 --- 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 |