FROMLIST: wifi: cfg80211: Partial revert "wifi: cfg80211: Fix use after free for wext"
This reverts part of commit015b8cc5e7("wifi: cfg80211: Fix use after free for wext") This commit broke WPA offload by unconditionally clearing the crypto modes for non-WEP connections. Drop that part of the patch. Fixes:015b8cc5e7("wifi: cfg80211: Fix use after free for wext") Cc: stable@vger.kernel.org Link: https://lore.kernel.org/linux-wireless/ZAx0TWRBlGfv7pNl@kroah.com/T/#m11e6e0915ab8fa19ce8bc9695ab288c0fe018edf Change-Id: I05ed0df12b6cc89a78ca9fad49385e98ed39fa3f Signed-off-by: Hector Martin <marcan@marcan.st> Bug: 277028065 Link: https://lore.kernel.org/all/20230311141914.24444-1-marcan@marcan.st/ Signed-off-by: André Draszik <draszik@google.com>
This commit is contained in:
committed by
Treehugger Robot
parent
2241118520
commit
d7eda3e731
@@ -1500,8 +1500,6 @@ int cfg80211_connect(struct cfg80211_registered_device *rdev,
|
||||
connect->key = NULL;
|
||||
connect->key_len = 0;
|
||||
connect->key_idx = 0;
|
||||
connect->crypto.cipher_group = 0;
|
||||
connect->crypto.n_ciphers_pairwise = 0;
|
||||
}
|
||||
|
||||
wdev->connect_keys = connkeys;
|
||||
|
||||
Reference in New Issue
Block a user