From d2b42624ad5106dd3b49917e346f0485f30f5f14 Mon Sep 17 00:00:00 2001
From: Chun-Yeow Yeoh <yeohchunyeow@gmail.com>
Date: Wed, 18 Jan 2012 00:36:34 +0800
Subject: [PATCH] Support non-forwarding entity in Mesh

Signed-off-by: Chun-Yeow Yeoh <yeohchunyeow@gmail.com>
---
 mesh.c    |    5 +++++
 nl80211.h |    5 +++++
 2 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/mesh.c b/mesh.c
index dc8f49c..f815f4c 100644
--- a/mesh.c
+++ b/mesh.c
@@ -177,6 +177,11 @@ 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_hwmp_perr_min_interval",
+	NL80211_MESHCONF_HWMP_PERR_MIN_INTERVAL,
+	 _my_nla_put_u16, _parse_u16, _print_u16_in_TUs},
+	{"mesh_forwarding", NL80211_MESHCONF_FORWARDING,
+	_my_nla_put_u8, _parse_u8_as_bool, _print_u8},	
 };
 
 static void print_all_mesh_param_descr(void)
diff --git a/nl80211.h b/nl80211.h
index a187606..7d3d992 100644
--- a/nl80211.h
+++ b/nl80211.h
@@ -2098,6 +2098,10 @@ enum nl80211_mntr_flags {
  * TUs) during which a mesh STA can send only one Action frame containing a
  * PERR element.
  *
+ * @NL80211_MESHCONF_FORWARDING: set Mesh STA as forwarding or non-forwarding
+ * or forwarding entity (default is TRUE - forwarding entity)
+ *
+ *
  * @NL80211_MESHCONF_ATTR_MAX: highest possible mesh configuration attribute
  *
  * @__NL80211_MESHCONF_ATTR_AFTER_LAST: internal use
@@ -2122,6 +2126,7 @@ enum nl80211_meshconf_params {
 	NL80211_MESHCONF_HWMP_RANN_INTERVAL,
 	NL80211_MESHCONF_GATE_ANNOUNCEMENTS,
 	NL80211_MESHCONF_HWMP_PERR_MIN_INTERVAL,
+	NL80211_MESHCONF_FORWARDING,
 
 	/* keep last */
 	__NL80211_MESHCONF_ATTR_AFTER_LAST,
-- 
1.7.0.4

