aboutsummaryrefslogtreecommitdiffstats
path: root/net/wireless/core.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/wireless/core.c')
-rw-r--r--net/wireless/core.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/net/wireless/core.c b/net/wireless/core.c
index 742986c73490..a599469b8157 100644
--- a/net/wireless/core.c
+++ b/net/wireless/core.c
@@ -1405,10 +1405,8 @@ static int cfg80211_netdev_notifier_call(struct notifier_block *nb,
1405 } 1405 }
1406 break; 1406 break;
1407 case NETDEV_PRE_UP: 1407 case NETDEV_PRE_UP:
1408 if (!(wdev->wiphy->interface_modes & BIT(wdev->iftype)) && 1408 if (!cfg80211_iftype_allowed(wdev->wiphy, wdev->iftype,
1409 !(wdev->iftype == NL80211_IFTYPE_AP_VLAN && 1409 wdev->use_4addr, 0))
1410 rdev->wiphy.flags & WIPHY_FLAG_4ADDR_AP &&
1411 wdev->use_4addr))
1412 return notifier_from_errno(-EOPNOTSUPP); 1410 return notifier_from_errno(-EOPNOTSUPP);
1413 1411
1414 if (rfkill_blocked(rdev->rfkill)) 1412 if (rfkill_blocked(rdev->rfkill))