diff options
author | Thomas Pedersen <thomas@cozybit.com> | 2013-03-04 16:06:13 -0500 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2013-03-06 10:36:13 -0500 |
commit | d37bb18ae3a3fa7ef239aad533742a8b07eae15f (patch) | |
tree | e36f11d0356b5ef78b456d80831485f9fff8f579 /net/wireless/nl80211.c | |
parent | a6dad6a26e15f2f9269eea41b756c8cf0971b2bc (diff) |
nl80211: user_mpm overrides auto_open_plinks
If the user requested a userspace MPM, automatically
disable auto_open_plinks to fully disable the kernel MPM.
Signed-off-by: Thomas Pedersen <thomas@cozybit.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/wireless/nl80211.c')
-rw-r--r-- | net/wireless/nl80211.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c index 946b2e7acdf2..f924d45af1b8 100644 --- a/net/wireless/nl80211.c +++ b/net/wireless/nl80211.c | |||
@@ -7449,6 +7449,9 @@ static int nl80211_join_mesh(struct sk_buff *skb, struct genl_info *info) | |||
7449 | return err; | 7449 | return err; |
7450 | } | 7450 | } |
7451 | 7451 | ||
7452 | if (setup.user_mpm) | ||
7453 | cfg.auto_open_plinks = false; | ||
7454 | |||
7452 | if (info->attrs[NL80211_ATTR_WIPHY_FREQ]) { | 7455 | if (info->attrs[NL80211_ATTR_WIPHY_FREQ]) { |
7453 | err = nl80211_parse_chandef(rdev, info, &setup.chandef); | 7456 | err = nl80211_parse_chandef(rdev, info, &setup.chandef); |
7454 | if (err) | 7457 | if (err) |