summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-meshwizard/luasrc
diff options
context:
space:
mode:
Diffstat (limited to 'applications/luci-meshwizard/luasrc')
-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 a8d07cbece..8cb0822875 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)