Commit 1dbb1a3
wifi: rtl8xxxu: enable MFP support with security flag of RX descriptor
[ Upstream commit cbfbb4d ]
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: Martin Kaistra <martin.kaistra@linutronix.de>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Link: https://msgid.link/20240418071813.1883174-3-martin.kaistra@linutronix.de
Signed-off-by: Sasha Levin <sashal@kernel.org>1 parent b30c9b1 commit 1dbb1a3
2 files changed
Lines changed: 14 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
124 | 133 | | |
125 | 134 | | |
126 | 135 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6319 | 6319 | | |
6320 | 6320 | | |
6321 | 6321 | | |
6322 | | - | |
| 6322 | + | |
| 6323 | + | |
6323 | 6324 | | |
6324 | 6325 | | |
6325 | 6326 | | |
| |||
6419 | 6420 | | |
6420 | 6421 | | |
6421 | 6422 | | |
6422 | | - | |
| 6423 | + | |
| 6424 | + | |
6423 | 6425 | | |
6424 | 6426 | | |
6425 | 6427 | | |
| |||
7654 | 7656 | | |
7655 | 7657 | | |
7656 | 7658 | | |
| 7659 | + | |
7657 | 7660 | | |
7658 | 7661 | | |
7659 | 7662 | | |
| |||
0 commit comments