]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
cfg80211: fix interface combinations check.
authorLukasz Kucharczyk <lukasz.kucharczyk@tieto.com>
Wed, 11 Apr 2012 12:55:10 +0000 (14:55 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Apr 2012 17:16:39 +0000 (10:16 -0700)
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>
net/wireless/util.c

index 9aa9db6c81411ddfcd77c34de8128fcd57e2e5d2..484aae5f0a398716f1408d834b5d17ed9a413c90 100644 (file)
@@ -988,7 +988,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;