Skip to contentSkip to conversation

support for setting RANN interval and mesh gate

PATCH In review Thomas Pedersen 1 participant 2 messages Aug 10, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 support for setting RANN interval and mesh gate

From: Javier Cardona <[email protected]>

---
 mesh.c    |    4 ++++
 nl80211.h |    9 +++++++++
 2 files changed, 13 insertions(+), 0 deletions(-)
mesh.c +4 -0
index 7c6ab3d..dc8f49c 100644
@@ -173,6 +173,10 @@ const static struct mesh_param_descr _mesh_param_descrs[] =
 	_my_nla_put_u16, _parse_u16, _print_u16_in_TUs},
 	{"mesh_hwmp_rootmode", NL80211_MESHCONF_HWMP_ROOTMODE,
 	_my_nla_put_u8, _parse_u8, _print_u8},
+	{"mesh_hwmp_rann_interval", NL80211_MESHCONF_HWMP_RANN_INTERVAL,
+	_my_nla_put_u16, _parse_u16, _print_u16},
+	{"mesh_gate_announcements", NL80211_MESHCONF_GATE_ANNOUNCEMENTS,
+	_my_nla_put_u8, _parse_u8, _print_u8},
 };
 
 static void print_all_mesh_param_descr(void)
nl80211.h +9 -0
index 7ba71e4..4830bd6 100644
@@ -1826,6 +1826,13 @@ enum nl80211_mntr_flags {
  * @NL80211_MESHCONF_ELEMENT_TTL: specifies the value of TTL field set at a
  * source mesh point for path selection elements.
  *
+ * @NL80211_MESHCONF_HWMP_RANN_INTERVAL:  The interval of time (in TUs) between
+ * root announcements are transmitted.
+ *
+ * @NL80211_MESHCONF_GATE_ANNOUNCEMENTS: Advertise that this mesh station has
+ * access to a broader network beyond the MBSS.  This is done via Root
+ * Announcement frames.
+ *
  * @NL80211_MESHCONF_ATTR_MAX: highest possible mesh configuration attribute
  *
  * @__NL80211_MESHCONF_ATTR_AFTER_LAST: internal use
@@ -1847,6 +1854,8 @@ enum nl80211_meshconf_params {
 	NL80211_MESHCONF_HWMP_NET_DIAM_TRVS_TIME,
 	NL80211_MESHCONF_HWMP_ROOTMODE,
 	NL80211_MESHCONF_ELEMENT_TTL,
+	NL80211_MESHCONF_HWMP_RANN_INTERVAL,
+	NL80211_MESHCONF_GATE_ANNOUNCEMENTS,
 
 	/* keep last */
 	__NL80211_MESHCONF_ATTR_AFTER_LAST,
Signature · 1 line
1.7.6
#1 lore raw

Subject should have indicated this is in fact an iw patch.

Quoted 53 lines · Thomas Pedersen

From: Javier Cardona <[email protected]>

---
 mesh.c    |    4 ++++
 nl80211.h |    9 +++++++++

 2 files changed, 13 insertions(+), 0 deletions(-)
mesh.c +4 -0
index 7c6ab3d..dc8f49c 100644
@@ -173,6 +173,10 @@ const static struct mesh_param_descr _mesh_param_descrs[] =
        _my_nla_put_u16, _parse_u16, _print_u16_in_TUs},
        {"mesh_hwmp_rootmode", NL80211_MESHCONF_HWMP_ROOTMODE,
        _my_nla_put_u8, _parse_u8, _print_u8},
+       {"mesh_hwmp_rann_interval", NL80211_MESHCONF_HWMP_RANN_INTERVAL,
+       _my_nla_put_u16, _parse_u16, _print_u16},
+       {"mesh_gate_announcements", NL80211_MESHCONF_GATE_ANNOUNCEMENTS,
+       _my_nla_put_u8, _parse_u8, _print_u8},
  };
 
  static void print_all_mesh_param_descr(void)
nl80211.h +9 -1
index 7ba71e4..4830bd6 100644
@@ -1826,6 +1826,13 @@ enum nl80211_mntr_flags {
  * @NL80211_MESHCONF_ELEMENT_TTL: specifies the value of TTL field set at a
  * source mesh point for path selection elements.
  *
+ * @NL80211_MESHCONF_HWMP_RANN_INTERVAL:  The interval of time (in TUs) between
+ * root announcements are transmitted.
+ *
+ * @NL80211_MESHCONF_GATE_ANNOUNCEMENTS: Advertise that this mesh station has
+ * access to a broader network beyond the MBSS.  This is done via Root
+ * Announcement frames.
+ *
  * @NL80211_MESHCONF_ATTR_MAX: highest possible mesh configuration attribute
  *
  * @__NL80211_MESHCONF_ATTR_AFTER_LAST: internal use
@@ -1847,6 +1854,8 @@ enum nl80211_meshconf_params {
        NL80211_MESHCONF_HWMP_NET_DIAM_TRVS_TIME,
        NL80211_MESHCONF_HWMP_ROOTMODE,
        NL80211_MESHCONF_ELEMENT_TTL,
+       NL80211_MESHCONF_HWMP_RANN_INTERVAL,
+       NL80211_MESHCONF_GATE_ANNOUNCEMENTS,
 
        /* keep last */
        __NL80211_MESHCONF_ATTR_AFTER_LAST,
--

1.7.6