blob: 95f8cf3f6d1352c90a604d5491eac1ac9c1778ee [file] [log] [blame]
--- a/net/wireless/nl80211.c
+++ b/net/wireless/nl80211.c
@@ -2258,7 +2258,7 @@ static int nl80211_valid_4addr(struct cf
enum nl80211_iftype iftype)
{
if (!use_4addr) {
- if (netdev && (netdev->priv_flags & IFF_BRIDGE_PORT))
+ if (netdev && br_port_exists(netdev))
return -EBUSY;
return 0;
}