]> git.baikalelectronics.ru Git - kernel.git/commit
wifi: cfg80211: Partial revert "wifi: cfg80211: Fix use after free for wext"
authorHector Martin <marcan@marcan.st>
Sat, 11 Mar 2023 14:19:14 +0000 (23:19 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 13 Mar 2023 09:21:31 +0000 (10:21 +0100)
commitaa4d32e903e609447cdaa44be6858d55f37a099f
tree82d34e15b6129288ed367e09eced609f44bb566a
parent6c0832e2689592b201583ac7bfaf2b76e71526e6
wifi: cfg80211: Partial revert "wifi: cfg80211: Fix use after free for wext"

commit 80d727517184c8c308cd52860dada3eef797038e upstream.

This reverts part of commit 412cef6df374 ("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.

Signed-off-by: Hector Martin <marcan@marcan.st>
Reported-by: Ilya <me@0upti.me>
Reported-and-tested-by: Janne Grunau <j@jannau.net>
Reviewed-by: Eric Curtin <ecurtin@redhat.com>
Fixes: 412cef6df374 ("wifi: cfg80211: Fix use after free for wext")
Cc: stable@kernel.org
Link: https://lore.kernel.org/linux-wireless/ZAx0TWRBlGfv7pNl@kroah.com/T/#m11e6e0915ab8fa19ce8bc9695ab288c0fe018edf
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/wireless/sme.c