public inbox for linux-wireless@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] cfg80211: reset auth algorithm
@ 2009-07-02 13:49 Johannes Berg
  0 siblings, 0 replies; only message in thread
From: Johannes Berg @ 2009-07-02 13:49 UTC (permalink / raw)
  To: John Linville; +Cc: linux-wireless

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 <johannes@sipsolutions.net>
---
 net/wireless/core.c |    1 +
 1 file changed, 1 insertion(+)

--- wireless-testing.orig/net/wireless/core.c	2009-07-02 15:47:06.000000000 +0200
+++ wireless-testing/net/wireless/core.c	2009-07-02 15:47:52.000000000 +0200
@@ -579,6 +579,7 @@ static int cfg80211_netdev_notifier_call
 			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);



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-07-02 13:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-02 13:49 [PATCH] cfg80211: reset auth algorithm Johannes Berg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox