diff options
author | Javier Cardona <javier@cozybit.com> | 2011-08-09 19:45:11 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-08-24 13:59:43 -0400 |
commit | 16dd7267f460739b3e29d984e73f05c5ffe2b142 (patch) | |
tree | 2902dddb8d8ef045ae64bff734eb400bf8a23fb7 /net/mac80211/debugfs_netdev.c | |
parent | 0507e159a2b590666982b53ecf6fb2843a5bb423 (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 'net/mac80211/debugfs_netdev.c')
-rw-r--r-- | net/mac80211/debugfs_netdev.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/mac80211/debugfs_netdev.c b/net/mac80211/debugfs_netdev.c index bac94434a874..6e8eab7919e2 100644 --- a/net/mac80211/debugfs_netdev.c +++ b/net/mac80211/debugfs_netdev.c | |||
@@ -372,6 +372,8 @@ IEEE80211_IF_FILE(min_discovery_timeout, | |||
372 | u.mesh.mshcfg.min_discovery_timeout, DEC); | 372 | u.mesh.mshcfg.min_discovery_timeout, DEC); |
373 | IEEE80211_IF_FILE(dot11MeshHWMPRootMode, | 373 | IEEE80211_IF_FILE(dot11MeshHWMPRootMode, |
374 | u.mesh.mshcfg.dot11MeshHWMPRootMode, DEC); | 374 | u.mesh.mshcfg.dot11MeshHWMPRootMode, DEC); |
375 | IEEE80211_IF_FILE(dot11MeshGateAnnouncementProtocol, | ||
376 | u.mesh.mshcfg.dot11MeshGateAnnouncementProtocol, DEC); | ||
375 | IEEE80211_IF_FILE(dot11MeshHWMPRannInterval, | 377 | IEEE80211_IF_FILE(dot11MeshHWMPRannInterval, |
376 | u.mesh.mshcfg.dot11MeshHWMPRannInterval, DEC); | 378 | u.mesh.mshcfg.dot11MeshHWMPRannInterval, DEC); |
377 | #endif | 379 | #endif |
@@ -489,6 +491,7 @@ static void add_mesh_config(struct ieee80211_sub_if_data *sdata) | |||
489 | MESHPARAMS_ADD(min_discovery_timeout); | 491 | MESHPARAMS_ADD(min_discovery_timeout); |
490 | MESHPARAMS_ADD(dot11MeshHWMPRootMode); | 492 | MESHPARAMS_ADD(dot11MeshHWMPRootMode); |
491 | MESHPARAMS_ADD(dot11MeshHWMPRannInterval); | 493 | MESHPARAMS_ADD(dot11MeshHWMPRannInterval); |
494 | MESHPARAMS_ADD(dot11MeshGateAnnouncementProtocol); | ||
492 | #undef MESHPARAMS_ADD | 495 | #undef MESHPARAMS_ADD |
493 | } | 496 | } |
494 | #endif | 497 | #endif |