Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>

authored by

Johannes Berg and committed by
John W. Linville
0eb14647 e45cd82a

+1
+1
net/wireless/core.c
··· 579 579 kfree(wdev->wext.ie); 580 580 wdev->wext.ie = NULL; 581 581 wdev->wext.ie_len = 0; 582 + wdev->wext.connect.auth_type = NL80211_AUTHTYPE_AUTOMATIC; 582 583 #endif 583 584 cfg80211_disconnect(rdev, dev, 584 585 WLAN_REASON_DEAUTH_LEAVING, true);