summaryrefslogtreecommitdiffhomepage
path: root/applications
diff options
context:
space:
mode:
authorManuel Munz <freifunk@somakoma.de>2014-04-27 13:45:53 +0000
committerManuel Munz <freifunk@somakoma.de>2014-04-27 13:45:53 +0000
commitf443bcaca6903464376a3dcf548035396c73e0bc (patch)
tree84fe518c30318b54429e09055186da945faad2f0 /applications
parentdff51d2e02d3707e88c665888ff9284b22ccef39 (diff)
applications/meshwizard: Fox error when iwinfo.freqlist is empty
Diffstat (limited to 'applications')
-rw-r--r--applications/luci-meshwizard/luasrc/model/cbi/freifunk/meshwizard.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/applications/luci-meshwizard/luasrc/model/cbi/freifunk/meshwizard.lua b/applications/luci-meshwizard/luasrc/model/cbi/freifunk/meshwizard.lua
index a8d07cbec..8cb082287 100644
--- a/applications/luci-meshwizard/luasrc/model/cbi/freifunk/meshwizard.lua
+++ b/applications/luci-meshwizard/luasrc/model/cbi/freifunk/meshwizard.lua
@@ -118,7 +118,7 @@ uci:foreach("wireless", "wifi-device", function(section)
chan:value('default')
local iwinfo = sys.wifi.getiwinfo(device)
- if iwinfo then
+ if iwinfo and iwinfo.freqlist then
for _, f in ipairs(iwinfo.freqlist) do
if not f.restricted then
chan:value(f.channel)