aboutsummaryrefslogtreecommitdiffstats
path: root/net/wireless/nl80211.c
diff options
context:
space:
mode:
authorJohn W. Linville <linville@tuxdriver.com>2010-05-05 16:14:16 -0400
committerJohn W. Linville <linville@tuxdriver.com>2010-05-05 16:14:16 -0400
commit83163244f845c296a118ce85c653872dbff6abfe (patch)
treece2eac695a1c198f23d537e20ed86c16ece21f7e /net/wireless/nl80211.c
parent0a12761bcd5646691c5d16dd93df84d1b8849285 (diff)
parentadfba3c7c026a6a5560d2a43fefc9b198cb74462 (diff)
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next-2.6 into for-davem
Conflicts: drivers/net/wireless/libertas_tf/cmd.c drivers/net/wireless/libertas_tf/main.c
Diffstat (limited to 'net/wireless/nl80211.c')
-rw-r--r--net/wireless/nl80211.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c
index 356a84a5dae..01da83ddcff 100644
--- a/net/wireless/nl80211.c
+++ b/net/wireless/nl80211.c
@@ -152,6 +152,7 @@ static const struct nla_policy nl80211_policy[NL80211_ATTR_MAX+1] = {
152 [NL80211_ATTR_PS_STATE] = { .type = NLA_U32 }, 152 [NL80211_ATTR_PS_STATE] = { .type = NLA_U32 },
153 [NL80211_ATTR_CQM] = { .type = NLA_NESTED, }, 153 [NL80211_ATTR_CQM] = { .type = NLA_NESTED, },
154 [NL80211_ATTR_LOCAL_STATE_CHANGE] = { .type = NLA_FLAG }, 154 [NL80211_ATTR_LOCAL_STATE_CHANGE] = { .type = NLA_FLAG },
155 [NL80211_ATTR_AP_ISOLATE] = { .type = NLA_U8 },
155}; 156};
156 157
157/* policy for the attributes */ 158/* policy for the attributes */
@@ -2442,6 +2443,7 @@ static int nl80211_set_bss(struct sk_buff *skb, struct genl_info *info)
2442 params.use_cts_prot = -1; 2443 params.use_cts_prot = -1;
2443 params.use_short_preamble = -1; 2444 params.use_short_preamble = -1;
2444 params.use_short_slot_time = -1; 2445 params.use_short_slot_time = -1;
2446 params.ap_isolate = -1;
2445 2447
2446 if (info->attrs[NL80211_ATTR_BSS_CTS_PROT]) 2448 if (info->attrs[NL80211_ATTR_BSS_CTS_PROT])
2447 params.use_cts_prot = 2449 params.use_cts_prot =
@@ -2458,6 +2460,8 @@ static int nl80211_set_bss(struct sk_buff *skb, struct genl_info *info)
2458 params.basic_rates_len = 2460 params.basic_rates_len =
2459 nla_len(info->attrs[NL80211_ATTR_BSS_BASIC_RATES]); 2461 nla_len(info->attrs[NL80211_ATTR_BSS_BASIC_RATES]);
2460 } 2462 }
2463 if (info->attrs[NL80211_ATTR_AP_ISOLATE])
2464 params.ap_isolate = !!nla_get_u8(info->attrs[NL80211_ATTR_AP_ISOLATE]);
2461 2465
2462 rtnl_lock(); 2466 rtnl_lock();
2463 2467