diff options
author | Lukasz Kucharczyk <lukasz.kucharczyk@tieto.com> | 2012-04-11 14:55:10 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-04-27 09:51:07 -0700 |
commit | 027e5d441e6a46ab6cfd5f0e27c5eebd533b8131 (patch) | |
tree | ce21acc74776a67e090c2f0fd30c2ecffcad4eee /net/wireless | |
parent | 6df0d3bbc1954a274e41f084556f1313e288c80b (diff) | |
download | kernel_samsung_smdk4412-027e5d441e6a46ab6cfd5f0e27c5eebd533b8131.zip kernel_samsung_smdk4412-027e5d441e6a46ab6cfd5f0e27c5eebd533b8131.tar.gz kernel_samsung_smdk4412-027e5d441e6a46ab6cfd5f0e27c5eebd533b8131.tar.bz2 |
cfg80211: fix interface combinations check.
commit e55a4046dab28c440c96890bdddcf02dc8981f2d upstream.
Signed-off-by: Lukasz Kucharczyk <lukasz.kucharczyk@tieto.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
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 4d7b83f..9c22330 100644 --- a/net/wireless/util.c +++ b/net/wireless/util.c @@ -990,7 +990,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; |