From f443bcaca6903464376a3dcf548035396c73e0bc Mon Sep 17 00:00:00 2001 From: Manuel Munz Date: Sun, 27 Apr 2014 13:45:53 +0000 Subject: [PATCH] applications/meshwizard: Fox error when iwinfo.freqlist is empty --- .../luci-meshwizard/luasrc/model/cbi/freifunk/meshwizard.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.25.1