diff options
author | Lukasz Kucharczyk <lukasz.kucharczyk@tieto.com> | 2012-04-11 14:55:10 +0200 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-04-13 20:05:35 +0200 |
commit | e55a4046dab28c440c96890bdddcf02dc8981f2d (patch) | |
tree | e133ef763bc5fdaaec8667cab635daba9f38d3db /net/wireless | |
parent | brcm80211: smac: resume transmit fifo upon receiving frames (diff) | |
download | linux-e55a4046dab28c440c96890bdddcf02dc8981f2d.tar.xz linux-e55a4046dab28c440c96890bdddcf02dc8981f2d.zip |
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/wireless')
-rw-r--r-- | net/wireless/util.c | 2 |
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; |