From: Johannes Berg Date: Thu, 2 Jul 2009 13:49:03 +0000 (+0200) Subject: cfg80211: reset auth algorithm X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0eb14647fc6b56f73efb28a72ca0c7cc03a653f9;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git cfg80211: reset auth algorithm When the interface is brought down, we need to reset the auth algorithm because wpa_supplicant doesn't reset it, and then we fail to use shared key auth when required later. Signed-off-by: Johannes Berg Signed-off-by: John W. Linville --- diff --git a/net/wireless/core.c b/net/wireless/core.c index 413d291d07d7..5f6a8322bcb3 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);