Linux wireless drivers development
 help / color / mirror / Atom feed
* [PATCH rtw-next] wifi: rtlwifi: rtl8192ce: report no signal for frames without PHY status
@ 2026-11-30  9:42 Antonio Martínez Ramírez
  2026-11-30 13:21 ` Jie Feng
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Antonio Martínez Ramírez @ 2026-11-30  9:42 UTC (permalink / raw)
  To: linux-wireless; +Cc: pkshih

Without PHY status, rtl92ce_rx_query_desc() skips the PHY translator but
still assigns recvsignalpower + 10 to the RX signal. The PCI RX loop
reuses stats and clears rx_status for each descriptor, so a missing
measurement can be reported as a valid signal value.

Tracing the original driver on RTL8192CE hardware recorded one RX
descriptor with no PHY status, zero recvsignalpower before and after
the query, signal +10 dBm and RX_FLAG_NO_SIGNAL_VAL unset.

Set RX_FLAG_NO_SIGNAL_VAL when PHY status is absent and retain the
historical +10 assignment. Follow Ho Jie Feng's RTL8192D change,
d25adca7a8d5 ("wifi: rtlwifi: rtl8192d: report no signal for frames
without PHY status"). Limit this follow-up to RTL8192CE, for which
physical hardware and the original-driver observation are available.

All eight rtl8192ce C files compiled and rtl8192ce.o linked with
W=1 and no warnings. A full module build and runtime testing of the
modified driver have not been completed.

ChatGPT and OpenAI Codex assisted with RX-path analysis, adapting the
RTL8192D change, temporary tracing and drafting. The requests were to
investigate this hardware and keep the proposed change minimal.

Link: https://lore.kernel.org/linux-wireless/20261130005208.3375-1-antoniomartinezramirez@gmail.com/
Link: https://github.com/pkshih/rtw/commit/d25adca7a8d556f24816b67e6b8e5aab62e920de
Signed-off-by: Antonio Martínez Ramírez <antoniomartinezramirez@gmail.com>
---
 drivers/net/wireless/realtek/rtlwifi/rtl8192ce/trx.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/net/wireless/realtek/rtlwifi/rtl8192ce/trx.c b/drivers/net/wireless/realtek/rtlwifi/rtl8192ce/trx.c
index 9947205..005093c 100644
--- a/drivers/net/wireless/realtek/rtlwifi/rtl8192ce/trx.c
+++ b/drivers/net/wireless/realtek/rtlwifi/rtl8192ce/trx.c
@@ -331,6 +331,8 @@ bool rtl92ce_rx_query_desc(struct ieee80211_hw *hw,
 		_rtl92ce_translate_rx_signal_stuff(hw,
 						   skb, stats, pdesc,
 						   p_drvinfo);
+	} else {
+		rx_status->flag |= RX_FLAG_NO_SIGNAL_VAL;
 	}
 
 	/*rx_status->qual = stats->signal; */

base-commit: ae6b9e98b9045e47f609ec2a8197a3f3109627cb
-- 
2.47.3


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH rtw-next] wifi: rtlwifi: rtl8192ce: report no signal for frames without PHY status
  2026-11-30  9:42 [PATCH rtw-next] wifi: rtlwifi: rtl8192ce: report no signal for frames without PHY status Antonio Martínez Ramírez
@ 2026-11-30 13:21 ` Jie Feng
  2026-11-30 13:24 ` Antonio Martínez Ramírez
  2026-12-01  2:17 ` Ping-Ke Shih
  2 siblings, 0 replies; 5+ messages in thread
From: Jie Feng @ 2026-11-30 13:21 UTC (permalink / raw)
  To: Antonio Martínez Ramírez; +Cc: linux-wireless, pkshih

On Mon, 30 Nov 2026 at 21:20, Antonio Martínez Ramírez
<antoniomartinezramirez@gmail.com> wrote:
>
> Without PHY status, rtl92ce_rx_query_desc() skips the PHY translator but
> still assigns recvsignalpower + 10 to the RX signal. The PCI RX loop
> reuses stats and clears rx_status for each descriptor, so a missing
> measurement can be reported as a valid signal value.
>
> Tracing the original driver on RTL8192CE hardware recorded one RX
> descriptor with no PHY status, zero recvsignalpower before and after
> the query, signal +10 dBm and RX_FLAG_NO_SIGNAL_VAL unset.
>
> Set RX_FLAG_NO_SIGNAL_VAL when PHY status is absent and retain the
> historical +10 assignment. Follow Ho Jie Feng's RTL8192D change,
> d25adca7a8d5 ("wifi: rtlwifi: rtl8192d: report no signal for frames
> without PHY status"). Limit this follow-up to RTL8192CE, for which
> physical hardware and the original-driver observation are available.
>
> All eight rtl8192ce C files compiled and rtl8192ce.o linked with
> W=1 and no warnings. A full module build and runtime testing of the
> modified driver have not been completed.
>
> ChatGPT and OpenAI Codex assisted with RX-path analysis, adapting the
> RTL8192D change, temporary tracing and drafting. The requests were to
> investigate this hardware and keep the proposed change minimal.
>
> Link: https://lore.kernel.org/linux-wireless/20261130005208.3375-1-antoniomartinezramirez@gmail.com/
> Link: https://github.com/pkshih/rtw/commit/d25adca7a8d556f24816b67e6b8e5aab62e920de
> Signed-off-by: Antonio Martínez Ramírez <antoniomartinezramirez@gmail.com>
> ---
>  drivers/net/wireless/realtek/rtlwifi/rtl8192ce/trx.c | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/drivers/net/wireless/realtek/rtlwifi/rtl8192ce/trx.c b/drivers/net/wireless/realtek/rtlwifi/rtl8192ce/trx.c
> index 9947205..005093c 100644
> --- a/drivers/net/wireless/realtek/rtlwifi/rtl8192ce/trx.c
> +++ b/drivers/net/wireless/realtek/rtlwifi/rtl8192ce/trx.c
> @@ -331,6 +331,8 @@ bool rtl92ce_rx_query_desc(struct ieee80211_hw *hw,
>                 _rtl92ce_translate_rx_signal_stuff(hw,
>                                                    skb, stats, pdesc,
>                                                    p_drvinfo);
> +       } else {
> +               rx_status->flag |= RX_FLAG_NO_SIGNAL_VAL;
>         }
>
>         /*rx_status->qual = stats->signal; */
>
Reviewed-by: Ho Jie Feng <hjf3108@gmail.com>
> base-commit: ae6b9e98b9045e47f609ec2a8197a3f3109627cb
> --
> 2.47.3
>
>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH rtw-next] wifi: rtlwifi: rtl8192ce: report no signal for frames without PHY status
  2026-11-30  9:42 [PATCH rtw-next] wifi: rtlwifi: rtl8192ce: report no signal for frames without PHY status Antonio Martínez Ramírez
  2026-11-30 13:21 ` Jie Feng
@ 2026-11-30 13:24 ` Antonio Martínez Ramírez
  2026-12-01  2:18   ` Ping-Ke Shih
  2026-12-01  2:17 ` Ping-Ke Shih
  2 siblings, 1 reply; 5+ messages in thread
From: Antonio Martínez Ramírez @ 2026-11-30 13:24 UTC (permalink / raw)
  To: linux-wireless; +Cc: pkshih

Hi Ping-Ke,

A follow-up on the hardware testing.

I have now tested a locally built RTL8192CE module containing the same
two-line change on my physical RTL8192CE (PCI 10ec:8178), running
Debian 13 with kernel 7.2.2-antonio.

Using an entry kprobe and a kretprobe, I captured the following matching
RX descriptor records:

    entry:  phystatus=0, recvsignalpower=0
    return: phystatus=0, recvsignalpower=0, signal=+10 dBm,
            RX_FLAG_NO_SIGNAL_VAL=1, return value=true

The RX flags were 0x20102, compared with 0x20002 in the previous
observation on the original driver.

One descriptor pair was analysed. Both probes recorded two hits
with zero missed hits, and all trace buffer loss counters were zero.

Wi-Fi connectivity to the local router was verified before the test,
with the modified module loaded, and after restoring the original
module. All three ping checks completed with zero packet loss.

The tracing probes were removed successfully, and the original driver
was restored and its identity verified.

This confirms the expected flag behaviour on physical RTL8192CE
hardware. Delivery to mac80211 and station signal statistics were
not tested.

Thanks,
Antonio

El lun, 30 nov 2026 a las 10:43, Antonio Martínez Ramírez
(<antoniomartinezramirez@gmail.com>) escribió:
>
> Without PHY status, rtl92ce_rx_query_desc() skips the PHY translator but
> still assigns recvsignalpower + 10 to the RX signal. The PCI RX loop
> reuses stats and clears rx_status for each descriptor, so a missing
> measurement can be reported as a valid signal value.
>
> Tracing the original driver on RTL8192CE hardware recorded one RX
> descriptor with no PHY status, zero recvsignalpower before and after
> the query, signal +10 dBm and RX_FLAG_NO_SIGNAL_VAL unset.
>
> Set RX_FLAG_NO_SIGNAL_VAL when PHY status is absent and retain the
> historical +10 assignment. Follow Ho Jie Feng's RTL8192D change,
> d25adca7a8d5 ("wifi: rtlwifi: rtl8192d: report no signal for frames
> without PHY status"). Limit this follow-up to RTL8192CE, for which
> physical hardware and the original-driver observation are available.
>
> All eight rtl8192ce C files compiled and rtl8192ce.o linked with
> W=1 and no warnings. A full module build and runtime testing of the
> modified driver have not been completed.
>
> ChatGPT and OpenAI Codex assisted with RX-path analysis, adapting the
> RTL8192D change, temporary tracing and drafting. The requests were to
> investigate this hardware and keep the proposed change minimal.
>
> Link: https://lore.kernel.org/linux-wireless/20261130005208.3375-1-antoniomartinezramirez@gmail.com/
> Link: https://github.com/pkshih/rtw/commit/d25adca7a8d556f24816b67e6b8e5aab62e920de
> Signed-off-by: Antonio Martínez Ramírez <antoniomartinezramirez@gmail.com>
> ---
>  drivers/net/wireless/realtek/rtlwifi/rtl8192ce/trx.c | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/drivers/net/wireless/realtek/rtlwifi/rtl8192ce/trx.c b/drivers/net/wireless/realtek/rtlwifi/rtl8192ce/trx.c
> index 9947205..005093c 100644
> --- a/drivers/net/wireless/realtek/rtlwifi/rtl8192ce/trx.c
> +++ b/drivers/net/wireless/realtek/rtlwifi/rtl8192ce/trx.c
> @@ -331,6 +331,8 @@ bool rtl92ce_rx_query_desc(struct ieee80211_hw *hw,
>                 _rtl92ce_translate_rx_signal_stuff(hw,
>                                                    skb, stats, pdesc,
>                                                    p_drvinfo);
> +       } else {
> +               rx_status->flag |= RX_FLAG_NO_SIGNAL_VAL;
>         }
>
>         /*rx_status->qual = stats->signal; */
>
> base-commit: ae6b9e98b9045e47f609ec2a8197a3f3109627cb
> --
> 2.47.3
>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* RE: [PATCH rtw-next] wifi: rtlwifi: rtl8192ce: report no signal for frames without PHY status
  2026-11-30  9:42 [PATCH rtw-next] wifi: rtlwifi: rtl8192ce: report no signal for frames without PHY status Antonio Martínez Ramírez
  2026-11-30 13:21 ` Jie Feng
  2026-11-30 13:24 ` Antonio Martínez Ramírez
@ 2026-12-01  2:17 ` Ping-Ke Shih
  2 siblings, 0 replies; 5+ messages in thread
From: Ping-Ke Shih @ 2026-12-01  2:17 UTC (permalink / raw)
  To: Antonio Martínez Ramírez,
	linux-wireless@vger.kernel.org

Antonio Martínez Ramírez <antoniomartinezramirez@gmail.com> wrote:
> Without PHY status, rtl92ce_rx_query_desc() skips the PHY translator but
> still assigns recvsignalpower + 10 to the RX signal. The PCI RX loop
> reuses stats and clears rx_status for each descriptor, so a missing
> measurement can be reported as a valid signal value.

This description is almost enough.

> 
> Tracing the original driver on RTL8192CE hardware recorded one RX
> descriptor with no PHY status, zero recvsignalpower before and after
> the query, signal +10 dBm and RX_FLAG_NO_SIGNAL_VAL unset.

Plus "... RX_FLAG_NO_SIGNAL_VAL unset" to paragraph 1.

> 
> Set RX_FLAG_NO_SIGNAL_VAL when PHY status is absent and retain the
> historical +10 assignment. Follow Ho Jie Feng's RTL8192D change,
> d25adca7a8d5 ("wifi: rtlwifi: rtl8192d: report no signal for frames
> without PHY status"). Limit this follow-up to RTL8192CE, for which
> physical hardware and the original-driver observation are available.

No need to reference other patch.

> 
> All eight rtl8192ce C files compiled and rtl8192ce.o linked with
> W=1 and no warnings. A full module build and runtime testing of the
> modified driver have not been completed.
> 
> ChatGPT and OpenAI Codex assisted with RX-path analysis, adapting the
> RTL8192D change, temporary tracing and drafting. The requests were to
> investigate this hardware and keep the proposed change minimal.

These are not necessary.

> 
> Link:
> https://lore.kernel.org/linux-wireless/20261130005208.3375-1-antoniomartinezramirez@gmail.com/
> Link: https://github.com/pkshih/rtw/commit/d25adca7a8d556f24816b67e6b8e5aab62e920de

No need these two links.

> Signed-off-by: Antonio Martínez Ramírez <antoniomartinezramirez@gmail.com>

---

If you want to share information, add them here after a "---" delimiter.

> ---
>  drivers/net/wireless/realtek/rtlwifi/rtl8192ce/trx.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/drivers/net/wireless/realtek/rtlwifi/rtl8192ce/trx.c
> b/drivers/net/wireless/realtek/rtlwifi/rtl8192ce/trx.c
> index 9947205..005093c 100644
> --- a/drivers/net/wireless/realtek/rtlwifi/rtl8192ce/trx.c
> +++ b/drivers/net/wireless/realtek/rtlwifi/rtl8192ce/trx.c
> @@ -331,6 +331,8 @@ bool rtl92ce_rx_query_desc(struct ieee80211_hw *hw,
>                 _rtl92ce_translate_rx_signal_stuff(hw,
>                                                    skb, stats, pdesc,
>                                                    p_drvinfo);
> +       } else {
> +               rx_status->flag |= RX_FLAG_NO_SIGNAL_VAL;
>         }
> 
>         /*rx_status->qual = stats->signal; */
> 
> base-commit: ae6b9e98b9045e47f609ec2a8197a3f3109627cb

pw-bot: cr


^ permalink raw reply	[flat|nested] 5+ messages in thread

* RE: [PATCH rtw-next] wifi: rtlwifi: rtl8192ce: report no signal for frames without PHY status
  2026-11-30 13:24 ` Antonio Martínez Ramírez
@ 2026-12-01  2:18   ` Ping-Ke Shih
  0 siblings, 0 replies; 5+ messages in thread
From: Ping-Ke Shih @ 2026-12-01  2:18 UTC (permalink / raw)
  To: Antonio Martínez Ramírez,
	linux-wireless@vger.kernel.org

Antonio Martínez Ramírez <antoniomartinezramirez@gmail.com> wrote:
> Hi Ping-Ke,
> 
> A follow-up on the hardware testing.
> 
> I have now tested a locally built RTL8192CE module containing the same
> two-line change on my physical RTL8192CE (PCI 10ec:8178), running
> Debian 13 with kernel 7.2.2-antonio.
> 
> Using an entry kprobe and a kretprobe, I captured the following matching
> RX descriptor records:
> 
>     entry:  phystatus=0, recvsignalpower=0
>     return: phystatus=0, recvsignalpower=0, signal=+10 dBm,
>             RX_FLAG_NO_SIGNAL_VAL=1, return value=true
> 

Thanks for the info.

By the way, you can share these information after "---" delimiter. 



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-12-01  2:19 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-30  9:42 [PATCH rtw-next] wifi: rtlwifi: rtl8192ce: report no signal for frames without PHY status Antonio Martínez Ramírez
2026-11-30 13:21 ` Jie Feng
2026-11-30 13:24 ` Antonio Martínez Ramírez
2026-12-01  2:18   ` Ping-Ke Shih
2026-12-01  2:17 ` Ping-Ke Shih

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox