Skip to content
Commit 1dbb1a31 authored by Martin Kaistra's avatar Martin Kaistra Committed by Greg Kroah-Hartman
Browse files

wifi: rtl8xxxu: enable MFP support with security flag of RX descriptor



[ Upstream commit cbfbb4dd ]

In order to connect to networks which require 802.11w, add the
MFP_CAPABLE flag and let mac80211 do the actual crypto in software.

When a robust management frame is received, rx_dec->swdec is not set,
even though the HW did not decrypt it. Extend the check and don't set
RX_FLAG_DECRYPTED for these frames in order to use SW decryption.

Use the security flag in the RX descriptor for this purpose, like it is
done in the rtw88 driver.

Cc: stable@vger.kernel.org
Signed-off-by: default avatarMartin Kaistra <martin.kaistra@linutronix.de>
Signed-off-by: default avatarPing-Ke Shih <pkshih@realtek.com>
Link: https://msgid.link/20240418071813.1883174-3-martin.kaistra@linutronix.de


Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent b30c9b11
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment