# Re: \[PATCH 1/3\] rtw88: 8821c: Don't set RX\_FLAG\_DECRYPTED if packet has no encryption

- From: Kalle Valo \<hidden\>
- Date: 2021-04-21 09:38:54 
- List: linux-wireless
- Page: https://ratatoskr.run/linux-wireless/2021/04/15766909
- Thread: https://ratatoskr.run/linux-wireless/2021/04/15766763/t.md

```text
Ping-Ke Shih [ref] wrote:

> From: Guo-Feng Fan <redacted>
> 
> 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: Guo-Feng Fan <redacted>
> Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>

3 patches applied to wireless-drivers-next.git, thanks.

559f6cb31837 rtw88: 8821c: Don't set RX_FLAG_DECRYPTED if packet has no encryption
a548909d7ad7 rtw88: Fix potential unrecoverable tx queue stop
7bd3760c71f7 rtw88: refine napi deinit flow

-- 
https://patchwork.kernel.org/project/linux-wireless/patch/20210415084703.27255-2-pkshih@realtek.com/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches

```
