wifi: rtl8xxxu: enable MFP support
authorMartin Kaistra <martin.kaistra@linutronix.de>
Thu, 14 Mar 2024 16:48:50 +0000 (17:48 +0100)
committerPing-Ke Shih <pkshih@realtek.com>
Wed, 20 Mar 2024 02:00:19 +0000 (10:00 +0800)
commit77f5924fc41c243e907c80ce2576902d3a9cb336
tree22b8276890615cf29224c4141987fb17d952d838
parentc76936a7e1da6b755185ada84acb2c2b92fdd30c
wifi: rtl8xxxu: enable MFP support

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 frames 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.

Signed-off-by: Martin Kaistra <martin.kaistra@linutronix.de>
Reviewed-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Link: https://msgid.link/20240314164850.86432-1-martin.kaistra@linutronix.de
drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c