From: "Antonio Martínez Ramírez" <antoniomartinezramirez@gmail.com>
To: linux-wireless@vger.kernel.org
Cc: pkshih@realtek.com
Subject: [PATCH rtw-next] wifi: rtlwifi: rtl8192ce: report no signal for frames without PHY status
Date: Mon, 30 Nov 2026 10:42:32 +0100 [thread overview]
Message-ID: <20261130094232.8734-1-antoniomartinezramirez@gmail.com> (raw)
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
reply other threads:[~2026-11-30 9:43 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20261130094232.8734-1-antoniomartinezramirez@gmail.com \
--to=antoniomartinezramirez@gmail.com \
--cc=linux-wireless@vger.kernel.org \
--cc=pkshih@realtek.com \
/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