gluon-core: fix handling of 'disabled' site.conf attributes for mesh interfaces

Because is_disabled() was always returning true or false, the
first_non_nil() would never actually check the default setting from
site.conf. This was broken since v2017.1.

Fixes: 6cf03bab37 ("treewide: replace normal uses of luci.model.uci with simple-uci to reduce LuCI dependencies")
This commit is contained in:
Matthias Schiffer 2020-06-11 23:52:22 +02:00
parent b3edfd292a
commit 3c2593b684
No known key found for this signature in database
GPG Key ID: 16EF3F64CB201D9C

View File

@ -85,7 +85,7 @@ local function is_disabled(name)
if uci:get('wireless', name) then
return uci:get_bool('wireless', name, 'disabled')
else
return false
return nil
end
end