RE: [PATCH rtw-next 0/3] wifi: rtlwifi: don't mark unencrypted frames as decrypted

From: Ping-Ke Shih

Date: Mon Nov 23 2026 - 00:43:26 EST


Zhao Li <enderaoelyther@xxxxxxxxx> wrote:
> rtl8192d (rtl8192de/rtl8192du) is intentionally left untouched here:
> it checks the cipher reported in the RX descriptor, so unencrypted
> frames are not marked as decrypted. However, when a cipher is reported
> and SWDEC is clear, it still sets RX_FLAG_DECRYPTED for protected
> robust management frames. Ping-Ke, does RTL8192D decrypt those in
> hardware (or set SWDEC / report no cipher for them), or does it need a
> robust management frame exclusion too?

Per rtl92d_rx_query_desc()

stats->decrypted = !get_rx_desc_swdec(pdesc) &&
get_rx_desc_enc_type(pdesc) != RX_DESC_ENC_NONE;
if (stats->decrypted)
rx_status->flag |= RX_FLAG_DECRYPTED;

I remember this chip doesn't support PMF. For PMF packets, sw desc should be 0,
and enc type should be NONE. So original logic should handle this properly.