From 955dc886a8fa8b018fa7dbf3a948201dc5751ef2 Mon Sep 17 00:00:00 2001 From: kb-light Date: Sun, 13 Sep 2015 20:47:57 +0200 Subject: [PATCH] gluon-mesh-batman-adv-core: prepare for 802.11s mesh keep macfilter and maclist config after fw-update --- .../lib/gluon/upgrade/320-gluon-mesh-batman-adv-core-wireless | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/package/gluon-mesh-batman-adv-core/files/lib/gluon/upgrade/320-gluon-mesh-batman-adv-core-wireless b/package/gluon-mesh-batman-adv-core/files/lib/gluon/upgrade/320-gluon-mesh-batman-adv-core-wireless index 2c16d0e0..b1423f46 100755 --- a/package/gluon-mesh-batman-adv-core/files/lib/gluon/upgrade/320-gluon-mesh-batman-adv-core-wireless +++ b/package/gluon-mesh-batman-adv-core/files/lib/gluon/upgrade/320-gluon-mesh-batman-adv-core-wireless @@ -87,6 +87,8 @@ end local function configure_mesh(config, radio, index, suffix) local name = 'mesh_' .. radio 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('wireless', name) @@ -110,6 +112,8 @@ local function configure_mesh(config, radio, index, suffix) mcast_rate = config.mcast_rate, ifname = suffix and 'mesh' .. suffix, disabled = disabled, + macfilter = macfilter, + maclist = maclist, } ) end