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. ...
This commit is contained in:
@ -25,7 +25,6 @@
|
||||
#include <linux/wireless.h>
|
||||
#include <linux/random.h>
|
||||
#include <linux/etherdevice.h>
|
||||
#include <linux/rtnetlink.h>
|
||||
#include <net/iw_handler.h>
|
||||
#include <asm/types.h>
|
||||
|
||||
@ -2106,12 +2105,9 @@ static int ieee80211_sta_config_auth(struct net_device *dev,
|
||||
struct ieee80211_sta_bss *bss, *selected = NULL;
|
||||
int top_rssi = 0, freq;
|
||||
|
||||
rtnl_lock();
|
||||
|
||||
if (!ifsta->auto_channel_sel && !ifsta->auto_bssid_sel &&
|
||||
!ifsta->auto_ssid_sel) {
|
||||
ifsta->state = IEEE80211_AUTHENTICATE;
|
||||
rtnl_unlock();
|
||||
ieee80211_sta_reset_auth(dev, ifsta);
|
||||
return 0;
|
||||
}
|
||||
@ -2154,7 +2150,6 @@ static int ieee80211_sta_config_auth(struct net_device *dev,
|
||||
ieee80211_sta_set_bssid(dev, selected->bssid);
|
||||
ieee80211_rx_bss_put(dev, selected);
|
||||
ifsta->state = IEEE80211_AUTHENTICATE;
|
||||
rtnl_unlock();
|
||||
ieee80211_sta_reset_auth(dev, ifsta);
|
||||
return 0;
|
||||
} else {
|
||||
@ -2165,7 +2160,6 @@ static int ieee80211_sta_config_auth(struct net_device *dev,
|
||||
} else
|
||||
ifsta->state = IEEE80211_DISABLED;
|
||||
}
|
||||
rtnl_unlock();
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user