net: wireless: Fix CFG80211_ALLOW_RECONNECT option for disconnect
authorDmitry Shmidt <dimitrysh@google.com>
Tue, 18 Oct 2011 19:30:02 +0000 (12:30 -0700)
committermgross <mark.gross@intel.com>
Wed, 9 Nov 2011 20:25:01 +0000 (12:25 -0800)
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
net/wireless/sme.c

index f8d266a..81e6747 100644 (file)
@@ -659,8 +659,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);