aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJavier Cardona <javier@cozybit.com>2011-08-09 19:45:11 -0400
committerJohn W. Linville <linville@tuxdriver.com>2011-08-24 13:59:43 -0400
commit16dd7267f460739b3e29d984e73f05c5ffe2b142 (patch)
tree2902dddb8d8ef045ae64bff734eb400bf8a23fb7 /include
parent0507e159a2b590666982b53ecf6fb2843a5bb423 (diff)
{nl,cfg,mac}80211: let userspace make meshif mesh gate
Allow userspace to set NL80211_MESHCONF_GATE_ANNOUNCEMENTS attribute, which will advertise this mesh node as being a mesh gate. NL80211_HWMP_ROOTMODE must be set or this will do nothing. Signed-off-by: Javier Cardona <javier@cozybit.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/nl80211.h5
-rw-r--r--include/net/cfg80211.h5
2 files changed, 10 insertions, 0 deletions
diff --git a/include/linux/nl80211.h b/include/linux/nl80211.h
index 20353bb44840..3769303d6fa6 100644
--- a/include/linux/nl80211.h
+++ b/include/linux/nl80211.h
@@ -1864,6 +1864,10 @@ enum nl80211_mntr_flags {
1864 * @NL80211_MESHCONF_HWMP_RANN_INTERVAL: The interval of time (in TUs) between 1864 * @NL80211_MESHCONF_HWMP_RANN_INTERVAL: The interval of time (in TUs) between
1865 * root announcements are transmitted. 1865 * root announcements are transmitted.
1866 * 1866 *
1867 * @NL80211_MESHCONF_GATE_ANNOUNCEMENTS: Advertise that this mesh station has
1868 * access to a broader network beyond the MBSS. This is done via Root
1869 * Announcement frames.
1870 *
1867 * @NL80211_MESHCONF_ATTR_MAX: highest possible mesh configuration attribute 1871 * @NL80211_MESHCONF_ATTR_MAX: highest possible mesh configuration attribute
1868 * 1872 *
1869 * @__NL80211_MESHCONF_ATTR_AFTER_LAST: internal use 1873 * @__NL80211_MESHCONF_ATTR_AFTER_LAST: internal use
@@ -1886,6 +1890,7 @@ enum nl80211_meshconf_params {
1886 NL80211_MESHCONF_HWMP_ROOTMODE, 1890 NL80211_MESHCONF_HWMP_ROOTMODE,
1887 NL80211_MESHCONF_ELEMENT_TTL, 1891 NL80211_MESHCONF_ELEMENT_TTL,
1888 NL80211_MESHCONF_HWMP_RANN_INTERVAL, 1892 NL80211_MESHCONF_HWMP_RANN_INTERVAL,
1893 NL80211_MESHCONF_GATE_ANNOUNCEMENTS,
1889 1894
1890 /* keep last */ 1895 /* keep last */
1891 __NL80211_MESHCONF_ATTR_AFTER_LAST, 1896 __NL80211_MESHCONF_ATTR_AFTER_LAST,
diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h
index 4f0d12e349d1..77aa777c10ef 100644
--- a/include/net/cfg80211.h
+++ b/include/net/cfg80211.h
@@ -756,6 +756,11 @@ struct mesh_config {
756 u16 dot11MeshHWMPnetDiameterTraversalTime; 756 u16 dot11MeshHWMPnetDiameterTraversalTime;
757 u8 dot11MeshHWMPRootMode; 757 u8 dot11MeshHWMPRootMode;
758 u16 dot11MeshHWMPRannInterval; 758 u16 dot11MeshHWMPRannInterval;
759 /* This is missnamed in draft 12.0: dot11MeshGateAnnouncementProtocol
760 * set to true only means that the station will announce others it's a
761 * mesh gate, but not necessarily using the gate announcement protocol.
762 * Still keeping the same nomenclature to be in sync with the spec. */
763 bool dot11MeshGateAnnouncementProtocol;
759}; 764};
760 765
761/** 766/**