mac80211: push interface checks down
[linux-2.6.git] / net / mac80211 / wext.c
index f2fdd33..c041db9 100644 (file)
@@ -296,14 +296,7 @@ static int ieee80211_ioctl_siwmode(struct net_device *dev,
                return -EINVAL;
        }
 
-       if (type == sdata->vif.type)
-               return 0;
-       if (netif_running(dev))
-               return -EBUSY;
-
-       ieee80211_if_change_type(sdata, type);
-
-       return 0;
+       return ieee80211_if_change_type(sdata, type);
 }