diff options
author | Thomas Pedersen <thomas@cozybit.com> | 2013-03-04 16:06:14 -0500 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2013-03-06 10:36:13 -0500 |
commit | 146bb4839adfd5637beb6daa01aa94f342de5eab (patch) | |
tree | 1247d789b835c85391178f78407957b5297a043a /net/mac80211/cfg.c | |
parent | d37bb18ae3a3fa7ef239aad533742a8b07eae15f (diff) |
mac80211: disallow changing auto_open_plinks
while user MPM is running.
Signed-off-by: Thomas Pedersen <thomas@cozybit.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/cfg.c')
-rw-r--r-- | net/mac80211/cfg.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/net/mac80211/cfg.c b/net/mac80211/cfg.c index c6c7f6e0b585..1d1ddabd89ca 100644 --- a/net/mac80211/cfg.c +++ b/net/mac80211/cfg.c | |||
@@ -1773,8 +1773,11 @@ static int ieee80211_update_mesh_config(struct wiphy *wiphy, | |||
1773 | conf->dot11MeshTTL = nconf->dot11MeshTTL; | 1773 | conf->dot11MeshTTL = nconf->dot11MeshTTL; |
1774 | if (_chg_mesh_attr(NL80211_MESHCONF_ELEMENT_TTL, mask)) | 1774 | if (_chg_mesh_attr(NL80211_MESHCONF_ELEMENT_TTL, mask)) |
1775 | conf->element_ttl = nconf->element_ttl; | 1775 | conf->element_ttl = nconf->element_ttl; |
1776 | if (_chg_mesh_attr(NL80211_MESHCONF_AUTO_OPEN_PLINKS, mask)) | 1776 | if (_chg_mesh_attr(NL80211_MESHCONF_AUTO_OPEN_PLINKS, mask)) { |
1777 | if (ifmsh->user_mpm) | ||
1778 | return -EBUSY; | ||
1777 | conf->auto_open_plinks = nconf->auto_open_plinks; | 1779 | conf->auto_open_plinks = nconf->auto_open_plinks; |
1780 | } | ||
1778 | if (_chg_mesh_attr(NL80211_MESHCONF_SYNC_OFFSET_MAX_NEIGHBOR, mask)) | 1781 | if (_chg_mesh_attr(NL80211_MESHCONF_SYNC_OFFSET_MAX_NEIGHBOR, mask)) |
1779 | conf->dot11MeshNbrOffsetMaxNeighbor = | 1782 | conf->dot11MeshNbrOffsetMaxNeighbor = |
1780 | nconf->dot11MeshNbrOffsetMaxNeighbor; | 1783 | nconf->dot11MeshNbrOffsetMaxNeighbor; |