gluon-mesh-batman-adv-core: prepare for 802.11s mesh

keep macfilter and maclist config after fw-update
This commit is contained in:
kb-light 2015-09-13 20:47:57 +02:00
parent 46f996b4f0
commit 955dc886a8

View File

@ -87,6 +87,8 @@ end
local function configure_mesh(config, radio, index, suffix) local function configure_mesh(config, radio, index, suffix)
local name = 'mesh_' .. radio local name = 'mesh_' .. radio
local disabled = is_disabled(config, name) local disabled = is_disabled(config, name)
local macfilter = uci:get('wireless', name, 'macfilter')
local maclist = uci:get('wireless', name, 'maclist')
uci:delete('network', name) uci:delete('network', name)
uci:delete('wireless', name) uci:delete('wireless', name)
@ -110,6 +112,8 @@ local function configure_mesh(config, radio, index, suffix)
mcast_rate = config.mcast_rate, mcast_rate = config.mcast_rate,
ifname = suffix and 'mesh' .. suffix, ifname = suffix and 'mesh' .. suffix,
disabled = disabled, disabled = disabled,
macfilter = macfilter,
maclist = maclist,
} }
) )
end end