applications/meshwizard: Fox error when iwinfo.freqlist is empty

This commit is contained in:
Manuel Munz 2014-04-27 13:45:53 +00:00
parent dff51d2e02
commit f443bcaca6

View file

@ -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)