wifi: rtlwifi: rtl8192de: Fix low speed with WPA3-SAE
authorBitterblue Smith <rtl8821cerfe2@gmail.com>
Thu, 25 Apr 2024 18:12:38 +0000 (21:12 +0300)
committerPing-Ke Shih <pkshih@realtek.com>
Thu, 2 May 2024 02:38:51 +0000 (10:38 +0800)
commita7c0f48410f546772ac94a0f7b7291a15c4fc173
tree71ff8a3d21ee532f7fa2d78847827d1a360607eb
parentde4d4be4fa64ed7b4aa1c613061015bd8fa98b24
wifi: rtlwifi: rtl8192de: Fix low speed with WPA3-SAE

Some (all?) management frames are incorrectly reported to mac80211 as
decrypted when actually the hardware did not decrypt them. This results
in speeds 3-5 times lower than expected, 20-30 Mbps instead of 100
Mbps.

Fix this by checking the encryption type field of the RX descriptor.
rtw88 does the same thing.

This fix was tested only with rtl8192du, which will use the same code.

Cc: stable@vger.kernel.org
Signed-off-by: Bitterblue Smith <rtl8821cerfe2@gmail.com>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Link: https://msgid.link/4d600435-f0ea-46b0-bdb4-e60f173da8dd@gmail.com
drivers/net/wireless/realtek/rtlwifi/rtl8192de/trx.c
drivers/net/wireless/realtek/rtlwifi/rtl8192de/trx.h