The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: Ping-Ke Shih <pkshih@realtek.com>
To: Zhao Li <enderaoelyther@gmail.com>
Cc: Hemanth Selam <hemanth.selam@gmail.com>,
	Morning Star <alexbestoso@gmail.com>,
	"linux-wireless@vger.kernel.org" <linux-wireless@vger.kernel.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: RE: [PATCH rtw-next 0/3] wifi: rtlwifi: don't mark unencrypted frames as decrypted
Date: Mon, 23 Nov 2026 05:43:16 +0000	[thread overview]
Message-ID: <9125d3868f9e463f8639f3449cc7db2e@realtek.com> (raw)
In-Reply-To: <20261121163547.37019-1-enderaoelyther@gmail.com>

Zhao Li <enderaoelyther@gmail.com> 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.

 

  parent reply	other threads:[~2026-11-23  5:43 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-21 16:35 [PATCH rtw-next 0/3] wifi: rtlwifi: don't mark unencrypted frames as decrypted Zhao Li
2026-11-21 16:35 ` [PATCH rtw-next 1/3] wifi: rtlwifi: rtl8192ce: " Zhao Li
2026-11-23  6:14   ` Ping-Ke Shih
2026-11-21 16:35 ` [PATCH rtw-next 2/3] wifi: rtlwifi: rtl8192se: " Zhao Li
2026-11-21 16:35 ` [PATCH rtw-next 3/3] wifi: rtlwifi: rtl8192cu: don't mark undecrypted " Zhao Li
2026-11-23  6:22   ` Ping-Ke Shih
2026-11-23  5:43 ` Ping-Ke Shih [this message]
2026-11-23  5:47   ` [PATCH rtw-next 0/3] wifi: rtlwifi: don't mark unencrypted " Ping-Ke Shih

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=9125d3868f9e463f8639f3449cc7db2e@realtek.com \
    --to=pkshih@realtek.com \
    --cc=alexbestoso@gmail.com \
    --cc=enderaoelyther@gmail.com \
    --cc=hemanth.selam@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-wireless@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox