batman-adv: use batctl for configuration of gw_mode
authorSven Eckelmann <sven@narfation.org>
Fri, 22 Feb 2019 20:47:40 +0000 (21:47 +0100)
committerSven Eckelmann <sven@narfation.org>
Fri, 22 Feb 2019 21:46:21 +0000 (22:46 +0100)
commit7d973599eff3a3c52eb558823da1329e311f75f4
treeb1b5723a9b1f73a6eb8ba59da869e7e26c50dc7d
parentad27ee7f9a2973dde6c04f3a17f9a9ca97b48248
batman-adv: use batctl for configuration of gw_mode

The batctl tool should be used for modifying settings in the batman-adv
driver to keep the scripts consistent and allow to use the correct way of
communicating with the kernel (sysfs vs. netlink).

The gw_mode, gw_bandwidth and gw_sel_class options are all handled by
the same gw_mode command in batctl and thus have to be combined depending
on the "gw_mode" value.

Signed-off-by: Sven Eckelmann <sven@narfation.org>
batman-adv/Makefile
batman-adv/files/lib/batman-adv/config.sh