aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/cfg.c
diff options
context:
space:
mode:
authorThomas Pedersen <thomas@cozybit.com>2011-08-25 13:36:14 -0400
committerJohn W. Linville <linville@tuxdriver.com>2011-08-26 10:39:23 -0400
commitc613366113c8956ee869e12558099927586785bb (patch)
tree0336b039c694ca19b9e5ce42608aebd0ec0b92fe /net/mac80211/cfg.c
parent25232490af96f899f7e17de2c136e03d2c9ded62 (diff)
mac80211: mesh gate fixes
Since a v1 of the mesh gate series was accidentally applied, this patch contains the changes in v2. These are: - automatically make mesh gate a root node. - use TU_TO_EXP_TIME macro. - initialize timer instead of checking for NULL timer function. - cleanups. Signed-off-by: Thomas Pedersen <thomas@cozybit.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/cfg.c')
-rw-r--r--net/mac80211/cfg.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/net/mac80211/cfg.c b/net/mac80211/cfg.c
index 7d17a9183b8a..6ab67ab34b5c 100644
--- a/net/mac80211/cfg.c
+++ b/net/mac80211/cfg.c
@@ -1138,6 +1138,14 @@ static int ieee80211_update_mesh_config(struct wiphy *wiphy,
1138 ieee80211_mesh_root_setup(ifmsh); 1138 ieee80211_mesh_root_setup(ifmsh);
1139 } 1139 }
1140 if (_chg_mesh_attr(NL80211_MESHCONF_GATE_ANNOUNCEMENTS, mask)) { 1140 if (_chg_mesh_attr(NL80211_MESHCONF_GATE_ANNOUNCEMENTS, mask)) {
1141 /* our current gate announcement implementation rides on root
1142 * announcements, so require this ifmsh to also be a root node
1143 * */
1144 if (nconf->dot11MeshGateAnnouncementProtocol &&
1145 !conf->dot11MeshHWMPRootMode) {
1146 conf->dot11MeshHWMPRootMode = 1;
1147 ieee80211_mesh_root_setup(ifmsh);
1148 }
1141 conf->dot11MeshGateAnnouncementProtocol = 1149 conf->dot11MeshGateAnnouncementProtocol =
1142 nconf->dot11MeshGateAnnouncementProtocol; 1150 nconf->dot11MeshGateAnnouncementProtocol;
1143 } 1151 }