blob: ade2b0b37607399cdf55341e7177a11bf9a9732c [file] [log] [blame]
--- 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;
}