]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blob - releases/3.3.4/cfg80211-fix-interface-combinations-check.patch
4.9-stable patches
[thirdparty/kernel/stable-queue.git] / releases / 3.3.4 / cfg80211-fix-interface-combinations-check.patch
1 From e55a4046dab28c440c96890bdddcf02dc8981f2d Mon Sep 17 00:00:00 2001
2 From: Lukasz Kucharczyk <lukasz.kucharczyk@tieto.com>
3 Date: Wed, 11 Apr 2012 14:55:10 +0200
4 Subject: cfg80211: fix interface combinations check.
5
6 From: Lukasz Kucharczyk <lukasz.kucharczyk@tieto.com>
7
8 commit e55a4046dab28c440c96890bdddcf02dc8981f2d upstream.
9
10 Signed-off-by: Lukasz Kucharczyk <lukasz.kucharczyk@tieto.com>
11 Signed-off-by: John W. Linville <linville@tuxdriver.com>
12 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
13
14 ---
15 net/wireless/util.c | 2 +-
16 1 file changed, 1 insertion(+), 1 deletion(-)
17
18 --- a/net/wireless/util.c
19 +++ b/net/wireless/util.c
20 @@ -988,7 +988,7 @@ int cfg80211_can_change_interface(struct
21 if (rdev->wiphy.software_iftypes & BIT(iftype))
22 continue;
23 for (j = 0; j < c->n_limits; j++) {
24 - if (!(limits[j].types & iftype))
25 + if (!(limits[j].types & BIT(iftype)))
26 continue;
27 if (limits[j].max < num[iftype])
28 goto cont;