aboutsummaryrefslogtreecommitdiffstats
path: root/net/wireless
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2010-01-23 03:31:06 -0500
committerDavid S. Miller <davem@davemloft.net>2010-01-23 03:31:06 -0500
commit51c24aaacaea90c8e87f1dec75a2ac7622b593f8 (patch)
tree9f54936c87764bef75e97395cb56b7d1e0df24c6 /net/wireless
parent4276e47e2d1c85a2477caf0d22b91c4f2377fba8 (diff)
parent6be325719b3e54624397e413efd4b33a997e55a3 (diff)
Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
Diffstat (limited to 'net/wireless')
-rw-r--r--net/wireless/core.c4
-rw-r--r--net/wireless/sme.c1
2 files changed, 3 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 /*
diff --git a/net/wireless/sme.c b/net/wireless/sme.c
index 2ce5e1609a3d..745c37e7992e 100644
--- a/net/wireless/sme.c
+++ b/net/wireless/sme.c
@@ -656,6 +656,7 @@ void __cfg80211_disconnected(struct net_device *dev, const u8 *ie,
656 memset(&wrqu, 0, sizeof(wrqu)); 656 memset(&wrqu, 0, sizeof(wrqu));
657 wrqu.ap_addr.sa_family = ARPHRD_ETHER; 657 wrqu.ap_addr.sa_family = ARPHRD_ETHER;
658 wireless_send_event(dev, SIOCGIWAP, &wrqu, NULL); 658 wireless_send_event(dev, SIOCGIWAP, &wrqu, NULL);
659 wdev->wext.connect.ssid_len = 0;
659#endif 660#endif
660} 661}
661 662