rtw88: Don't set RX_FLAG_DECRYPTED if packet has no encryption
authorPing-Ke Shih <pkshih@realtek.com>
Wed, 2 Oct 2019 06:35:26 +0000 (14:35 +0800)
committerKalle Valo <kvalo@codeaurora.org>
Fri, 4 Oct 2019 13:45:01 +0000 (16:45 +0300)
commit0649ff58a0f64df51bd24b38420da0875fbc7c00
tree694ae14c466618384970e1b93f6e290e0fe7f21c
parentc3594559f49c601d410dee4b767c3536a5535bfd
rtw88: Don't set RX_FLAG_DECRYPTED if packet has no encryption

The value of GET_RX_DESC_SWDEC() indicates that if this RX
packet requires software decryption or not. And software
decryption is required when the packet was encrypted and the
hardware failed to decrypt it.

So, GET_RX_DESC_SWDEC() is negative does not mean that this
packet is decrypted, it might just have no encryption at all.
To actually see if the packet is decrypted, driver needs to
further check if the hardware has successfully decrypted it,
with a specific type of encryption algorithm.

Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/realtek/rtw88/rtw8822b.c
drivers/net/wireless/realtek/rtw88/rtw8822c.c
drivers/net/wireless/realtek/rtw88/rx.h