--- a/net/wireless/nl80211.c | |
+++ b/net/wireless/nl80211.c | |
@@ -2404,7 +2404,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; | |
} |