summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorLukasz Kucharczyk <lukasz.kucharczyk@tieto.com>2012-04-11 16:55:10 +0400
committerJohn W. Linville <linville@tuxdriver.com>2012-04-13 22:05:35 +0400
commite55a4046dab28c440c96890bdddcf02dc8981f2d (patch)
treee133ef763bc5fdaaec8667cab635daba9f38d3db /net
parentbadc4f07622f0f7093a201638f45e85765f1b5e4 (diff)
downloadlinux-e55a4046dab28c440c96890bdddcf02dc8981f2d.tar.xz
cfg80211: fix interface combinations check.
Signed-off-by: Lukasz Kucharczyk <lukasz.kucharczyk@tieto.com> Cc: stable@vger.kernel.org Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net')
-rw-r--r--net/wireless/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/wireless/util.c b/net/wireless/util.c
index 1b7a08df933c..957f25621617 100644
--- a/net/wireless/util.c
+++ b/net/wireless/util.c
@@ -989,7 +989,7 @@ int cfg80211_can_change_interface(struct cfg80211_registered_device *rdev,
if (rdev->wiphy.software_iftypes & BIT(iftype))
continue;
for (j = 0; j < c->n_limits; j++) {
- if (!(limits[j].types & iftype))
+ if (!(limits[j].types & BIT(iftype)))
continue;
if (limits[j].max < num[iftype])
goto cont;