]> git.ipfire.org Git - thirdparty/iw.git/commitdiff
iw: Add support of setting non-forwarding entity in Mesh
authorChun-Yeow Yeoh <yeohchunyeow@gmail.com>
Sun, 4 Mar 2012 17:41:46 +0000 (01:41 +0800)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 26 Mar 2012 09:09:41 +0000 (11:09 +0200)
This patch creates a new mesh parameter known as mesh_fwding. Mesh node will become
non-forwarding entity if this parameter is set to 0. By default, it is set as 1.

Signed-off-by: Chun-Yeow Yeoh <yeohchunyeow@gmail.com>
mesh.c

diff --git a/mesh.c b/mesh.c
index 37fd1cd33207513fef5c401d12a1578fe2bb0bad..b2c72086baa23e1748cbde5ee324d6e5493b3274 100644 (file)
--- a/mesh.c
+++ b/mesh.c
@@ -177,6 +177,8 @@ const static struct mesh_param_descr _mesh_param_descrs[] =
        _my_nla_put_u16, _parse_u16, _print_u16},
        {"mesh_gate_announcements", NL80211_MESHCONF_GATE_ANNOUNCEMENTS,
        _my_nla_put_u8, _parse_u8, _print_u8},
+       {"mesh_fwding", NL80211_MESHCONF_FORWARDING,
+       _my_nla_put_u8, _parse_u8_as_bool, _print_u8},
 };
 
 static void print_all_mesh_param_descr(void)