aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/ieee80211_sta.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@woody.linux-foundation.org>2007-07-19 13:23:21 -0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-07-19 13:23:21 -0400
commitce8c2293be47999584908069e78bf6d94beadc53 (patch)
treedfd6909e6866998d2103341b1e1af8c129d0cea8 /net/mac80211/ieee80211_sta.c
parent41e9d344bf52c57ec16648d08618b61d3f1d4bdc (diff)
parentee6a99b539a50b4e9398938a0a6d37f8bf911550 (diff)
Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
* 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6: (25 commits) [TG3]: Fix msi issue with kexec/kdump. [NET] XFRM: Fix whitespace errors. [NET] TIPC: Fix whitespace errors. [NET] SUNRPC: Fix whitespace errors. [NET] SCTP: Fix whitespace errors. [NET] RXRPC: Fix whitespace errors. [NET] ROSE: Fix whitespace errors. [NET] RFKILL: Fix whitespace errors. [NET] PACKET: Fix whitespace errors. [NET] NETROM: Fix whitespace errors. [NET] NETFILTER: Fix whitespace errors. [NET] IPV4: Fix whitespace errors. [NET] DCCP: Fix whitespace errors. [NET] CORE: Fix whitespace errors. [NET] BLUETOOTH: Fix whitespace errors. [NET] AX25: Fix whitespace errors. [PATCH] mac80211: remove rtnl locking in ieee80211_sta.c [PATCH] mac80211: fix GCC warning on 64bit platforms [GENETLINK]: Dynamic multicast groups. [NETLIKN]: Allow removing multicast groups. ...
Diffstat (limited to 'net/mac80211/ieee80211_sta.c')
-rw-r--r--net/mac80211/ieee80211_sta.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/net/mac80211/ieee80211_sta.c b/net/mac80211/ieee80211_sta.c
index 22b11786327a..7ba352e3ffe0 100644
--- a/net/mac80211/ieee80211_sta.c
+++ b/net/mac80211/ieee80211_sta.c
@@ -25,7 +25,6 @@
25#include <linux/wireless.h> 25#include <linux/wireless.h>
26#include <linux/random.h> 26#include <linux/random.h>
27#include <linux/etherdevice.h> 27#include <linux/etherdevice.h>
28#include <linux/rtnetlink.h>
29#include <net/iw_handler.h> 28#include <net/iw_handler.h>
30#include <asm/types.h> 29#include <asm/types.h>
31 30
@@ -2106,12 +2105,9 @@ static int ieee80211_sta_config_auth(struct net_device *dev,
2106 struct ieee80211_sta_bss *bss, *selected = NULL; 2105 struct ieee80211_sta_bss *bss, *selected = NULL;
2107 int top_rssi = 0, freq; 2106 int top_rssi = 0, freq;
2108 2107
2109 rtnl_lock();
2110
2111 if (!ifsta->auto_channel_sel && !ifsta->auto_bssid_sel && 2108 if (!ifsta->auto_channel_sel && !ifsta->auto_bssid_sel &&
2112 !ifsta->auto_ssid_sel) { 2109 !ifsta->auto_ssid_sel) {
2113 ifsta->state = IEEE80211_AUTHENTICATE; 2110 ifsta->state = IEEE80211_AUTHENTICATE;
2114 rtnl_unlock();
2115 ieee80211_sta_reset_auth(dev, ifsta); 2111 ieee80211_sta_reset_auth(dev, ifsta);
2116 return 0; 2112 return 0;
2117 } 2113 }
@@ -2154,7 +2150,6 @@ static int ieee80211_sta_config_auth(struct net_device *dev,
2154 ieee80211_sta_set_bssid(dev, selected->bssid); 2150 ieee80211_sta_set_bssid(dev, selected->bssid);
2155 ieee80211_rx_bss_put(dev, selected); 2151 ieee80211_rx_bss_put(dev, selected);
2156 ifsta->state = IEEE80211_AUTHENTICATE; 2152 ifsta->state = IEEE80211_AUTHENTICATE;
2157 rtnl_unlock();
2158 ieee80211_sta_reset_auth(dev, ifsta); 2153 ieee80211_sta_reset_auth(dev, ifsta);
2159 return 0; 2154 return 0;
2160 } else { 2155 } else {
@@ -2165,7 +2160,6 @@ static int ieee80211_sta_config_auth(struct net_device *dev,
2165 } else 2160 } else
2166 ifsta->state = IEEE80211_DISABLED; 2161 ifsta->state = IEEE80211_DISABLED;
2167 } 2162 }
2168 rtnl_unlock();
2169 return -1; 2163 return -1;
2170} 2164}
2171 2165