File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -1028,14 +1028,14 @@ int cfg80211_change_iface(struct cfg80211_registered_device *rdev,
1028
1028
!(rdev -> wiphy .interface_modes & (1 << ntype )))
1029
1029
return - EOPNOTSUPP ;
1030
1030
1031
- /* if it's part of a bridge, reject changing type to station/ibss */
1032
- if (netif_is_bridge_port (dev ) &&
1033
- (ntype == NL80211_IFTYPE_ADHOC ||
1034
- ntype == NL80211_IFTYPE_STATION ||
1035
- ntype == NL80211_IFTYPE_P2P_CLIENT ))
1036
- return - EBUSY ;
1037
-
1038
1031
if (ntype != otype ) {
1032
+ /* if it's part of a bridge, reject changing type to station/ibss */
1033
+ if (netif_is_bridge_port (dev ) &&
1034
+ (ntype == NL80211_IFTYPE_ADHOC ||
1035
+ ntype == NL80211_IFTYPE_STATION ||
1036
+ ntype == NL80211_IFTYPE_P2P_CLIENT ))
1037
+ return - EBUSY ;
1038
+
1039
1039
dev -> ieee80211_ptr -> use_4addr = false;
1040
1040
dev -> ieee80211_ptr -> mesh_id_up_len = 0 ;
1041
1041
wdev_lock (dev -> ieee80211_ptr );
You can’t perform that action at this time.
0 commit comments