diff --git a/net/wireless/core.c b/net/wireless/core.c
index 413d291d07d70a6f648be8a1e8487ec970831faf..5f6a8322bcb3f85449b658c7f0f0d1f38237f9ac 100644
--- a/net/wireless/core.c
+++ b/net/wireless/core.c
@@ -579,6 +579,7 @@ static int cfg80211_netdev_notifier_call(struct notifier_block * nb,
 			kfree(wdev->wext.ie);
 			wdev->wext.ie = NULL;
 			wdev->wext.ie_len = 0;
+			wdev->wext.connect.auth_type = NL80211_AUTHTYPE_AUTOMATIC;
 #endif
 			cfg80211_disconnect(rdev, dev,
 					    WLAN_REASON_DEAUTH_LEAVING, true);