summaryrefslogtreecommitdiff
path: root/patches/collateral-evolutions/network/30-bridge-port/net_wireless_util.patch
blob: 5b95a392b05ec26762278520809bfca1c58023ec (plain)
1
2
3
4
5
6
7
8
9
10
11
--- a/net/wireless/util.c
+++ b/net/wireless/util.c
@@ -866,7 +866,7 @@ int cfg80211_change_iface(struct cfg8021
 		return -EOPNOTSUPP;
 
 	/* if it's part of a bridge, reject changing type to station/ibss */
-	if ((dev->priv_flags & IFF_BRIDGE_PORT) &&
+	if (br_port_exists(dev) &&
 	    (ntype == NL80211_IFTYPE_ADHOC ||
 	     ntype == NL80211_IFTYPE_STATION ||
 	     ntype == NL80211_IFTYPE_P2P_CLIENT))