diff options
author | Dmitry Shmidt <dimitrysh@google.com> | 2011-10-18 12:30:02 -0700 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2011-11-30 21:39:12 -0800 |
commit | 3698608c0da689990cbdd2ccca0f572923538c2f (patch) | |
tree | fd1b7a020be4fc2a475ce4dffd557574dc8aa153 /net/wireless | |
parent | 986a0a03503382f3b70bb9db890f548cd53ebfa5 (diff) |
net: wireless: Fix CFG80211_ALLOW_RECONNECT option for disconnect
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
Diffstat (limited to 'net/wireless')
-rw-r--r-- | net/wireless/sme.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/wireless/sme.c b/net/wireless/sme.c index a346241e5335..b206cf606b02 100644 --- a/net/wireless/sme.c +++ b/net/wireless/sme.c @@ -661,8 +661,10 @@ void __cfg80211_disconnected(struct net_device *dev, const u8 *ie, wdev->iftype != NL80211_IFTYPE_P2P_CLIENT)) return; +#ifndef CONFIG_CFG80211_ALLOW_RECONNECT if (wdev->sme_state != CFG80211_SME_CONNECTED) return; +#endif if (wdev->current_bss) { cfg80211_unhold_bss(wdev->current_bss); |