net: wireless: Add CFG80211_ALLOW_RECONNECT option
Dmitry Shmidt [Thu, 15 Sep 2011 16:22:35 +0000 (09:22 -0700)]
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>

net/wireless/sme.c

index bbbed73..9b94200 100644 (file)
@@ -772,6 +772,7 @@ int __cfg80211_connect(struct cfg80211_registered_device *rdev,
 #ifndef CONFIG_CFG80211_ALLOW_RECONNECT
        if (wdev->sme_state != CFG80211_SME_IDLE)
                return -EALREADY;
+#endif
 
        if (WARN_ON(wdev->connect_keys)) {
 #else