From: Ping-Ke Shih <pkshih@realtek.com>
To: "Antonio Martínez Ramírez" <antoniomartinezramirez@gmail.com>,
"linux-wireless@vger.kernel.org" <linux-wireless@vger.kernel.org>
Subject: RE: [RFC] wifi: rtlwifi: rtl8192ce: signal validity without PHY status
Date: Mon, 30 Nov 2026 05:56:22 +0000 [thread overview]
Message-ID: <bd021df580ef416d918cb4478cf6bb4d@realtek.com> (raw)
In-Reply-To: <20261130005208.3375-1-antoniomartinezramirez@gmail.com>
Antonio Martínez Ramírez <antoniomartinezramirez@gmail.com> wrote:
> Hi Ping-Ke and linux-wireless,
>
> Would it be appropriate to extend Ho Jie Feng's RTL8192D change,
> d25adca7a8d5 ("wifi: rtlwifi: rtl8192d: report no signal for frames
> without PHY status") [1], to RTL8192CE with the two-line change below?
I think it is okay, but there are more chips use similar patterns.
Should they change in one go?
>
> rtl92ce_rx_query_desc() skips the PHY translator when phystatus is
> zero, but still assigns stats->recvsignalpower + 10 to
> rx_status->signal. The PCI RX loop reuses stats across descriptors
> while clearing rx_status for each one. As a result, the no-PHY path
> can assign a seemingly valid signal using a zero or stale power value.
>
> On 29 November 2026 I traced the original loaded driver on an RTL8192CE
> (PCI 10ec:8178), Debian 13, kernel 7.2.2-antonio. Using an entry kprobe and a kretprobe, I captured
> one RX descriptor
> with matching entry and return records:
>
> entry: phystatus=0, recvsignalpower=0
> return: phystatus=0, recvsignalpower=0, signal=+10 dBm,
> RX_FLAG_NO_SIGNAL_VAL=0, return value=true
If you have real hardware, just send out a patch.
To be conservative, I'm not very willing to touch old chips.
>
> The capture stopped after 9.1348 seconds. Both probes recorded 65 hits
> with zero missed; only one descriptor pair was recorded and analyzed.
> Buffer-loss counters were zero. The probes were removed and the
> preexisting BPF hook was preserved. Kernel pointers are omitted here.
> PAGGR/FAGGR were both set; frame type and PPDU membership were not traced.
>
> This confirms the behaviour observed in rtl92ce_rx_query_desc(),
> but it does not establish delivery to mac80211 or an update to station
> statistics. The proposed change has not been tested on hardware.
> All eight rtl8192ce C files compiled and rtl8192ce.o linked with W=1
> and no warnings against rtw-next ae6b9e98b904. This did not include a
> final .ko/modpost build or any module installation or loading.
>
> The proposal preserves the historical +10 assignment and marks the
> value unavailable when PHY status is missing, following RTL8192D.
> Does RTL8192CE have a hardware-specific rule that makes reuse valid,
> or should NO_SIGNAL_VAL be set for every missing-PHY descriptor,
> including management/control frames? If you think this approach is appropriate, would you recommend
> preparing a follow-up patch against rtw or rtw-next?
The code was there for many years, just go via rtw-next.
next prev parent reply other threads:[~2026-11-30 5:56 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-30 0:52 [RFC] wifi: rtlwifi: rtl8192ce: signal validity without PHY status Antonio Martínez Ramírez
2026-11-30 5:56 ` Ping-Ke Shih [this message]
2026-11-30 9:40 ` Antonio Martínez Ramírez
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=bd021df580ef416d918cb4478cf6bb4d@realtek.com \
--to=pkshih@realtek.com \
--cc=antoniomartinezramirez@gmail.com \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.