diff options
author | John W. Linville <linville@tuxdriver.com> | 2012-09-14 13:53:49 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-09-14 13:53:49 -0400 |
commit | 9316f0e3c6ba524d8fa14bfded048b252891931a (patch) | |
tree | 60326e5943997bb72aaf2a375f8a20c61ec7bbcd /net/wireless | |
parent | 7f2e6a5d8608d0353b017a0fe15502307593734e (diff) | |
parent | 7a5f799becc51c842ec1a3aeb8dd82651aea7036 (diff) |
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next into for-davem
Diffstat (limited to 'net/wireless')
-rw-r--r-- | net/wireless/nl80211.c | 4 | ||||
-rw-r--r-- | net/wireless/reg.c | 6 | ||||
-rw-r--r-- | net/wireless/scan.c | 2 | ||||
-rw-r--r-- | net/wireless/wext-core.c | 8 |
4 files changed, 10 insertions, 10 deletions
diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c index 34eb5c07a567..139946dc8020 100644 --- a/net/wireless/nl80211.c +++ b/net/wireless/nl80211.c | |||
@@ -5656,8 +5656,10 @@ static int nl80211_connect(struct sk_buff *skb, struct genl_info *info) | |||
5656 | sizeof(connect.ht_capa_mask)); | 5656 | sizeof(connect.ht_capa_mask)); |
5657 | 5657 | ||
5658 | if (info->attrs[NL80211_ATTR_HT_CAPABILITY]) { | 5658 | if (info->attrs[NL80211_ATTR_HT_CAPABILITY]) { |
5659 | if (!info->attrs[NL80211_ATTR_HT_CAPABILITY_MASK]) | 5659 | if (!info->attrs[NL80211_ATTR_HT_CAPABILITY_MASK]) { |
5660 | kfree(connkeys); | ||
5660 | return -EINVAL; | 5661 | return -EINVAL; |
5662 | } | ||
5661 | memcpy(&connect.ht_capa, | 5663 | memcpy(&connect.ht_capa, |
5662 | nla_data(info->attrs[NL80211_ATTR_HT_CAPABILITY]), | 5664 | nla_data(info->attrs[NL80211_ATTR_HT_CAPABILITY]), |
5663 | sizeof(connect.ht_capa)); | 5665 | sizeof(connect.ht_capa)); |
diff --git a/net/wireless/reg.c b/net/wireless/reg.c index 2ded3c7fad06..1ad04e54014c 100644 --- a/net/wireless/reg.c +++ b/net/wireless/reg.c | |||
@@ -1949,8 +1949,7 @@ static void restore_regulatory_settings(bool reset_user) | |||
1949 | if (reg_request->initiator != | 1949 | if (reg_request->initiator != |
1950 | NL80211_REGDOM_SET_BY_USER) | 1950 | NL80211_REGDOM_SET_BY_USER) |
1951 | continue; | 1951 | continue; |
1952 | list_del(®_request->list); | 1952 | list_move_tail(®_request->list, &tmp_reg_req_list); |
1953 | list_add_tail(®_request->list, &tmp_reg_req_list); | ||
1954 | } | 1953 | } |
1955 | } | 1954 | } |
1956 | spin_unlock(®_requests_lock); | 1955 | spin_unlock(®_requests_lock); |
@@ -2009,8 +2008,7 @@ static void restore_regulatory_settings(bool reset_user) | |||
2009 | "into the queue\n", | 2008 | "into the queue\n", |
2010 | reg_request->alpha2[0], | 2009 | reg_request->alpha2[0], |
2011 | reg_request->alpha2[1]); | 2010 | reg_request->alpha2[1]); |
2012 | list_del(®_request->list); | 2011 | list_move_tail(®_request->list, ®_requests_list); |
2013 | list_add_tail(®_request->list, ®_requests_list); | ||
2014 | } | 2012 | } |
2015 | spin_unlock(®_requests_lock); | 2013 | spin_unlock(®_requests_lock); |
2016 | 2014 | ||
diff --git a/net/wireless/scan.c b/net/wireless/scan.c index 848523a2b22f..9730c9862bdc 100644 --- a/net/wireless/scan.c +++ b/net/wireless/scan.c | |||
@@ -815,7 +815,7 @@ cfg80211_inform_bss_frame(struct wiphy *wiphy, | |||
815 | return NULL; | 815 | return NULL; |
816 | 816 | ||
817 | if (WARN_ON(wiphy->signal_type == CFG80211_SIGNAL_TYPE_UNSPEC && | 817 | if (WARN_ON(wiphy->signal_type == CFG80211_SIGNAL_TYPE_UNSPEC && |
818 | (signal < 0 || signal > 100))) | 818 | (signal < 0 || signal > 100))) |
819 | return NULL; | 819 | return NULL; |
820 | 820 | ||
821 | if (WARN_ON(len < offsetof(struct ieee80211_mgmt, u.probe_resp.variable))) | 821 | if (WARN_ON(len < offsetof(struct ieee80211_mgmt, u.probe_resp.variable))) |
diff --git a/net/wireless/wext-core.c b/net/wireless/wext-core.c index b0eb7aa49b60..c8717c1d082e 100644 --- a/net/wireless/wext-core.c +++ b/net/wireless/wext-core.c | |||
@@ -478,13 +478,13 @@ void wireless_send_event(struct net_device * dev, | |||
478 | if (descr->header_type == IW_HEADER_TYPE_POINT) { | 478 | if (descr->header_type == IW_HEADER_TYPE_POINT) { |
479 | /* Check if number of token fits within bounds */ | 479 | /* Check if number of token fits within bounds */ |
480 | if (wrqu->data.length > descr->max_tokens) { | 480 | if (wrqu->data.length > descr->max_tokens) { |
481 | netdev_err(dev, "(WE) : Wireless Event too big (%d)\n", | 481 | netdev_err(dev, "(WE) : Wireless Event (cmd=0x%04X) too big (%d)\n", |
482 | wrqu->data.length); | 482 | cmd, wrqu->data.length); |
483 | return; | 483 | return; |
484 | } | 484 | } |
485 | if (wrqu->data.length < descr->min_tokens) { | 485 | if (wrqu->data.length < descr->min_tokens) { |
486 | netdev_err(dev, "(WE) : Wireless Event too small (%d)\n", | 486 | netdev_err(dev, "(WE) : Wireless Event (cmd=0x%04X) too small (%d)\n", |
487 | wrqu->data.length); | 487 | cmd, wrqu->data.length); |
488 | return; | 488 | return; |
489 | } | 489 | } |
490 | /* Calculate extra_len - extra is NULL for restricted events */ | 490 | /* Calculate extra_len - extra is NULL for restricted events */ |