aboutsummaryrefslogtreecommitdiffstats
path: root/net/wireless
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
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')
-rw-r--r--net/wireless/core.c3
-rw-r--r--net/wireless/nl80211.c4
2 files changed, 6 insertions, 1 deletions
diff --git a/net/wireless/core.c b/net/wireless/core.c
index 6ac70c101523..37d0e0ab4432 100644
--- a/net/wireless/core.c
+++ b/net/wireless/core.c
@@ -705,7 +705,8 @@ static int cfg80211_netdev_notifier_call(struct notifier_block * nb,
705 wdev->ps = true; 705 wdev->ps = true;
706 else 706 else
707 wdev->ps = false; 707 wdev->ps = false;
708 wdev->ps_timeout = 100; 708 /* allow mac80211 to determine the timeout */
709 wdev->ps_timeout = -1;
709 if (rdev->ops->set_power_mgmt) 710 if (rdev->ops->set_power_mgmt)
710 if (rdev->ops->set_power_mgmt(wdev->wiphy, dev, 711 if (rdev->ops->set_power_mgmt(wdev->wiphy, dev,
711 wdev->ps, 712 wdev->ps,
diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c
index 356a84a5daee..01da83ddcff7 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