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
  0 siblings, 0 replies; only message 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] only message in thread

only message in thread, other threads:[~2026-11-30  9:43 UTC | newest]

Thread overview: (only message) (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

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