diff options
Diffstat (limited to 'net/wireless/core.c')
-rw-r--r-- | net/wireless/core.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/wireless/core.c b/net/wireless/core.c index 0a545bb6ed05..20db90246de5 100644 --- a/net/wireless/core.c +++ b/net/wireless/core.c | |||
@@ -746,9 +746,9 @@ static int cfg80211_netdev_notifier_call(struct notifier_block * nb, | |||
746 | mutex_unlock(&rdev->devlist_mtx); | 746 | mutex_unlock(&rdev->devlist_mtx); |
747 | dev_put(dev); | 747 | dev_put(dev); |
748 | } | 748 | } |
749 | #ifdef CONFIG_CFG80211_WEXT | ||
750 | cfg80211_lock_rdev(rdev); | 749 | cfg80211_lock_rdev(rdev); |
751 | mutex_lock(&rdev->devlist_mtx); | 750 | mutex_lock(&rdev->devlist_mtx); |
751 | #ifdef CONFIG_CFG80211_WEXT | ||
752 | wdev_lock(wdev); | 752 | wdev_lock(wdev); |
753 | switch (wdev->iftype) { | 753 | switch (wdev->iftype) { |
754 | case NL80211_IFTYPE_ADHOC: | 754 | case NL80211_IFTYPE_ADHOC: |
@@ -761,10 +761,10 @@ static int cfg80211_netdev_notifier_call(struct notifier_block * nb, | |||
761 | break; | 761 | break; |
762 | } | 762 | } |
763 | wdev_unlock(wdev); | 763 | wdev_unlock(wdev); |
764 | #endif | ||
764 | rdev->opencount++; | 765 | rdev->opencount++; |
765 | mutex_unlock(&rdev->devlist_mtx); | 766 | mutex_unlock(&rdev->devlist_mtx); |
766 | cfg80211_unlock_rdev(rdev); | 767 | cfg80211_unlock_rdev(rdev); |
767 | #endif | ||
768 | break; | 768 | break; |
769 | case NETDEV_UNREGISTER: | 769 | case NETDEV_UNREGISTER: |
770 | /* | 770 | /* |