summaryrefslogtreecommitdiffstats
path: root/kernel/net/wireless/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/net/wireless/util.c')
-rw-r--r--kernel/net/wireless/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/net/wireless/util.c b/kernel/net/wireless/util.c
index 70051ab52..7e4e3fffe 100644
--- a/kernel/net/wireless/util.c
+++ b/kernel/net/wireless/util.c
@@ -944,7 +944,7 @@ int cfg80211_change_iface(struct cfg80211_registered_device *rdev,
ntype == NL80211_IFTYPE_P2P_CLIENT))
return -EBUSY;
- if (ntype != otype && netif_running(dev)) {
+ if (ntype != otype) {
dev->ieee80211_ptr->use_4addr = false;
dev->ieee80211_ptr->mesh_id_up_len = 0;
wdev_lock(dev->ieee80211_ptr);