Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e55a4046 authored by Lukasz Kucharczyk's avatar Lukasz Kucharczyk Committed by John W. Linville
Browse files

cfg80211: fix interface combinations check.



Signed-off-by: default avatarLukasz Kucharczyk <lukasz.kucharczyk@tieto.com>
Cc: stable@vger.kernel.org
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent badc4f07
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;