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 14:05:35 -0400 |
commit | e55a4046dab28c440c96890bdddcf02dc8981f2d (patch) | |
tree | e133ef763bc5fdaaec8667cab635daba9f38d3db /net/wireless | |
parent | badc4f07622f0f7093a201638f45e85765f1b5e4 (diff) | |
download | op-kernel-dev-e55a4046dab28c440c96890bdddcf02dc8981f2d.zip op-kernel-dev-e55a4046dab28c440c96890bdddcf02dc8981f2d.tar.gz |
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 1b7a08df..957f2562 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; |