diff options
Diffstat (limited to 'net/wireless/core.c')
-rw-r--r-- | net/wireless/core.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/wireless/core.c b/net/wireless/core.c index 88cb73394864..d6940085d59c 100644 --- a/net/wireless/core.c +++ b/net/wireless/core.c | |||
@@ -384,6 +384,8 @@ static int cfg80211_netdev_notifier_call(struct notifier_block * nb, | |||
384 | 384 | ||
385 | rdev = wiphy_to_dev(dev->ieee80211_ptr->wiphy); | 385 | rdev = wiphy_to_dev(dev->ieee80211_ptr->wiphy); |
386 | 386 | ||
387 | WARN_ON(dev->ieee80211_ptr->iftype == NL80211_IFTYPE_UNSPECIFIED); | ||
388 | |||
387 | switch (state) { | 389 | switch (state) { |
388 | case NETDEV_REGISTER: | 390 | case NETDEV_REGISTER: |
389 | mutex_lock(&rdev->devlist_mtx); | 391 | mutex_lock(&rdev->devlist_mtx); |