Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e5f45f61 authored by Avraham Stern's avatar Avraham Stern Committed by Zhu Jianmin
Browse files

cfg80211: clear wep keys after disconnection



When a low level driver calls cfg80211_disconnected(), wep keys are
not cleared. As a result, following connection requests will fail
since cfg80211 internal state shows a connection is still in progress.

Fix this by clearing the wep keys when disconnecting.

Signed-off-by: default avatarAvraham Stern <avraham.stern@intel.com>
Signed-off-by: default avatarLuca Coelho <luciano.coelho@intel.com>
Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
Git-commit: 3027a8e799b20fc922496a12f8ad2f9f36a8a696
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/jberg/mac80211-next.git


Change-Id: If86c857b350d3941e016108d44c60ab9b583f7a3
CRs-Fixed: 2229833c
Signed-off-by: default avatarZhu Jianmin <jianminz@codeaurora.org>
parent d8c75da0
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -989,6 +989,8 @@ void __cfg80211_disconnected(struct net_device *dev, const u8 *ie,
	wdev->current_bss = NULL;
	wdev->ssid_len = 0;
	wdev->conn_owner_nlportid = 0;
	kzfree(wdev->connect_keys);
	wdev->connect_keys = NULL;

	nl80211_send_disconnected(rdev, dev, reason, ie, ie_len, from_ap);