mac80211: fix fast-rx encryption check
authorFelix Fietkau <nbd@nbd.name>
Fri, 18 Dec 2020 18:47:17 +0000 (19:47 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 7 Feb 2021 14:37:15 +0000 (15:37 +0100)
commit20790b2534f2057345ffd75e77c9758e4d94407e
treea6099bdcc24270ad2185aaa64e1a219b68e9b15e
parentc2601c9c2a96bcb74e523382c870eb833ec5e2c9
mac80211: fix fast-rx encryption check

[ Upstream commit 622d3b4e39381262da7b18ca1ed1311df227de86 ]

When using WEP, the default unicast key needs to be selected, instead of
the STA PTK.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
Link: https://lore.kernel.org/r/20201218184718.93650-5-nbd@nbd.name
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/mac80211/rx.c