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>
This commit is contained in:
committed by
John W. Linville
parent
badc4f0762
commit
e55a4046da
@@ -989,7 +989,7 @@ int cfg80211_can_change_interface(struct cfg80211_registered_device *rdev,
|
|||||||
if (rdev->wiphy.software_iftypes & BIT(iftype))
|
if (rdev->wiphy.software_iftypes & BIT(iftype))
|
||||||
continue;
|
continue;
|
||||||
for (j = 0; j < c->n_limits; j++) {
|
for (j = 0; j < c->n_limits; j++) {
|
||||||
if (!(limits[j].types & iftype))
|
if (!(limits[j].types & BIT(iftype)))
|
||||||
continue;
|
continue;
|
||||||
if (limits[j].max < num[iftype])
|
if (limits[j].max < num[iftype])
|
||||||
goto cont;
|
goto cont;
|
||||||
|
Reference in New Issue
Block a user