gluon-web-wifi-config: default to enabled 5GHz mesh interfaces when disabling outdoor mode
When disabling outdoor mode, 5GHz mesh interfaces should be enabled by
default again (unless disabled in site.conf).
(cherry picked from commit d2052431dd
)
This commit is contained in:
parent
86b0a60d8d
commit
b466d00d3f
@ -1,5 +1,6 @@
|
||||
local iwinfo = require 'iwinfo'
|
||||
local uci = require("simple-uci").cursor()
|
||||
local site = require 'gluon.site'
|
||||
local wireless = require 'gluon.wireless'
|
||||
|
||||
|
||||
@ -155,6 +156,9 @@ if has_5ghz_radio() then
|
||||
|
||||
for _, mesh_vif in ipairs(mesh_vifs_5ghz) do
|
||||
mesh_vif:depends(outdoor, false)
|
||||
if outdoor.default then
|
||||
mesh_vif.default = not site.wifi5.mesh.disabled(false)
|
||||
end
|
||||
end
|
||||
|
||||
function outdoor:write(data)
|
||||
|
Loading…
Reference in New Issue
Block a user