diff options
author | John W. Linville <linville@tuxdriver.com> | 2012-09-07 14:49:46 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-09-07 14:49:46 -0400 |
commit | 4a3e12fd7a106bdf092704ea10ff463d2309213a (patch) | |
tree | 302f2f1c7cd7c370719fe5a69371c1f5a6a87157 /net | |
parent | a4881cc45a3fab4488e16c4934e149cfa620f1a9 (diff) | |
parent | 768be59f30f2ee8958ba3718101162c694efab12 (diff) |
Merge branch 'for-john' of git://git.kernel.org/pub/scm/linux/kernel/git/jberg/mac80211-next
Diffstat (limited to 'net')
-rw-r--r-- | net/mac80211/iface.c | 16 | ||||
-rw-r--r-- | net/mac80211/rx.c | 2 | ||||
-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 |
5 files changed, 17 insertions, 17 deletions
diff --git a/net/mac80211/iface.c b/net/mac80211/iface.c index 59f8adc2aa5f..d747da541747 100644 --- a/net/mac80211/iface.c +++ b/net/mac80211/iface.c | |||
@@ -278,13 +278,15 @@ static int ieee80211_check_queues(struct ieee80211_sub_if_data *sdata) | |||
278 | int n_queues = sdata->local->hw.queues; | 278 | int n_queues = sdata->local->hw.queues; |
279 | int i; | 279 | int i; |
280 | 280 | ||
281 | for (i = 0; i < IEEE80211_NUM_ACS; i++) { | 281 | if (sdata->vif.type != NL80211_IFTYPE_P2P_DEVICE) { |
282 | if (WARN_ON_ONCE(sdata->vif.hw_queue[i] == | 282 | for (i = 0; i < IEEE80211_NUM_ACS; i++) { |
283 | IEEE80211_INVAL_HW_QUEUE)) | 283 | if (WARN_ON_ONCE(sdata->vif.hw_queue[i] == |
284 | return -EINVAL; | 284 | IEEE80211_INVAL_HW_QUEUE)) |
285 | if (WARN_ON_ONCE(sdata->vif.hw_queue[i] >= | 285 | return -EINVAL; |
286 | n_queues)) | 286 | if (WARN_ON_ONCE(sdata->vif.hw_queue[i] >= |
287 | return -EINVAL; | 287 | n_queues)) |
288 | return -EINVAL; | ||
289 | } | ||
288 | } | 290 | } |
289 | 291 | ||
290 | if ((sdata->vif.type != NL80211_IFTYPE_AP) || | 292 | if ((sdata->vif.type != NL80211_IFTYPE_AP) || |
diff --git a/net/mac80211/rx.c b/net/mac80211/rx.c index b382605c5733..61c621e9273f 100644 --- a/net/mac80211/rx.c +++ b/net/mac80211/rx.c | |||
@@ -103,7 +103,7 @@ ieee80211_rx_radiotap_len(struct ieee80211_local *local, | |||
103 | return len; | 103 | return len; |
104 | } | 104 | } |
105 | 105 | ||
106 | /** | 106 | /* |
107 | * ieee80211_add_rx_radiotap_header - add radiotap header | 107 | * ieee80211_add_rx_radiotap_header - add radiotap header |
108 | * | 108 | * |
109 | * add a radiotap header containing all the fields which the hardware provided. | 109 | * add a radiotap header containing all the fields which the hardware provided. |
diff --git a/net/wireless/reg.c b/net/wireless/reg.c index 2303ee73b50a..c6e0d467f8bd 100644 --- a/net/wireless/reg.c +++ b/net/wireless/reg.c | |||
@@ -1932,8 +1932,7 @@ static void restore_regulatory_settings(bool reset_user) | |||
1932 | if (reg_request->initiator != | 1932 | if (reg_request->initiator != |
1933 | NL80211_REGDOM_SET_BY_USER) | 1933 | NL80211_REGDOM_SET_BY_USER) |
1934 | continue; | 1934 | continue; |
1935 | list_del(®_request->list); | 1935 | list_move_tail(®_request->list, &tmp_reg_req_list); |
1936 | list_add_tail(®_request->list, &tmp_reg_req_list); | ||
1937 | } | 1936 | } |
1938 | } | 1937 | } |
1939 | spin_unlock(®_requests_lock); | 1938 | spin_unlock(®_requests_lock); |
@@ -1992,8 +1991,7 @@ static void restore_regulatory_settings(bool reset_user) | |||
1992 | "into the queue\n", | 1991 | "into the queue\n", |
1993 | reg_request->alpha2[0], | 1992 | reg_request->alpha2[0], |
1994 | reg_request->alpha2[1]); | 1993 | reg_request->alpha2[1]); |
1995 | list_del(®_request->list); | 1994 | list_move_tail(®_request->list, ®_requests_list); |
1996 | list_add_tail(®_request->list, ®_requests_list); | ||
1997 | } | 1995 | } |
1998 | spin_unlock(®_requests_lock); | 1996 | spin_unlock(®_requests_lock); |
1999 | 1997 | ||
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 */ |