|
@@ -945,7 +945,7 @@ int cfg80211_change_iface(struct cfg80211_registered_device *rdev,
|
|
ntype == NL80211_IFTYPE_P2P_CLIENT))
|
|
ntype == NL80211_IFTYPE_P2P_CLIENT))
|
|
return -EBUSY;
|
|
return -EBUSY;
|
|
|
|
|
|
- if (ntype != otype && netif_running(dev)) {
|
|
|
|
|
|
+ if (ntype != otype) {
|
|
dev->ieee80211_ptr->use_4addr = false;
|
|
dev->ieee80211_ptr->use_4addr = false;
|
|
dev->ieee80211_ptr->mesh_id_up_len = 0;
|
|
dev->ieee80211_ptr->mesh_id_up_len = 0;
|
|
wdev_lock(dev->ieee80211_ptr);
|
|
wdev_lock(dev->ieee80211_ptr);
|