applications/meshwizard: Fox error when iwinfo.freqlist is empty
This commit is contained in:
parent
dff51d2e02
commit
f443bcaca6
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue