]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - net/wireless/core.c
cfg80211: show interface type
[linux-2.6-omap-h63xx.git] / net / wireless / core.c
index 88cb73394864015f692a33327fd2481938e54dde..d6940085d59c33c6e3e6000abe01d928adddd478 100644 (file)
@@ -384,6 +384,8 @@ static int cfg80211_netdev_notifier_call(struct notifier_block * nb,
 
        rdev = wiphy_to_dev(dev->ieee80211_ptr->wiphy);
 
+       WARN_ON(dev->ieee80211_ptr->iftype == NL80211_IFTYPE_UNSPECIFIED);
+
        switch (state) {
        case NETDEV_REGISTER:
                mutex_lock(&rdev->devlist_mtx);