diff options
author | Lukasz Kucharczyk <lukasz.kucharczyk@tieto.com> | 2012-04-11 14:55:10 +0200 |
---|---|---|
committer | Ben Hutchings <ben@decadent.org.uk> | 2012-05-11 13:13:58 +0100 |
commit | aed107521ffe75c69f5fb6e77e7bbbadbbcc7cea (patch) | |
tree | 51144f3bdfbab96f5390053e4c907b2d87a50d92 /net | |
parent | 2c51332d50dd5eba50821d0decc4f64e4b71226e (diff) |
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: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'net')
-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 4dde429441d..8bf8902575a 100644 --- a/net/wireless/util.c +++ b/net/wireless/util.c @@ -996,7 +996,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; |