linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH rtw-next 1/3] wifi: rtl8xxxu: Report the signal strength only if it's known
@ 2025-10-09 11:52 Bitterblue Smith
  2025-10-09 11:53 ` [PATCH rtw-next 2/3] wifi: rtl8xxxu: Dump the efuse right after reading it Bitterblue Smith
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Bitterblue Smith @ 2025-10-09 11:52 UTC (permalink / raw)
  To: linux-wireless@vger.kernel.org; +Cc: Ping-Ke Shih, Jes Sorensen

These chips don't report the signal strength for many (any?) data
frames. When the signal strength is not known, set RX_FLAG_NO_SIGNAL_VAL
in order to avoid reporting a signal strength of 0.

Tested with RTL8192FU and RTL8192CU.

Signed-off-by: Bitterblue Smith <rtl8821cerfe2@gmail.com>
---
 drivers/net/wireless/realtek/rtl8xxxu/core.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/net/wireless/realtek/rtl8xxxu/core.c b/drivers/net/wireless/realtek/rtl8xxxu/core.c
index 3ded5952729f..f083429fb507 100644
--- a/drivers/net/wireless/realtek/rtl8xxxu/core.c
+++ b/drivers/net/wireless/realtek/rtl8xxxu/core.c
@@ -6454,6 +6454,8 @@ int rtl8xxxu_parse_rxdesc16(struct rtl8xxxu_priv *priv, struct sk_buff *skb)
 					rtl8xxxu_rx_update_rssi(priv,
 								rx_status,
 								hdr);
+			} else {
+				rx_status->flag |= RX_FLAG_NO_SIGNAL_VAL;
 			}
 
 			rx_status->mactime = rx_desc->tsfl;
@@ -6560,6 +6562,8 @@ int rtl8xxxu_parse_rxdesc24(struct rtl8xxxu_priv *priv, struct sk_buff *skb)
 					rtl8xxxu_rx_update_rssi(priv,
 								rx_status,
 								hdr);
+			} else {
+				rx_status->flag |= RX_FLAG_NO_SIGNAL_VAL;
 			}
 
 			rx_status->mactime = rx_desc->tsfl;
-- 
2.51.0


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

end of thread, other threads:[~2025-10-21  6:59 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-09 11:52 [PATCH rtw-next 1/3] wifi: rtl8xxxu: Report the signal strength only if it's known Bitterblue Smith
2025-10-09 11:53 ` [PATCH rtw-next 2/3] wifi: rtl8xxxu: Dump the efuse right after reading it Bitterblue Smith
2025-10-14  3:56   ` Ping-Ke Shih
2025-10-09 11:55 ` [PATCH rtw-next 3/3] wifi: rtl8xxxu: Use correct power off sequence for RTL8192CU Bitterblue Smith
2025-10-14  4:23   ` Ping-Ke Shih
2025-10-14  3:54 ` [PATCH rtw-next 1/3] wifi: rtl8xxxu: Report the signal strength only if it's known Ping-Ke Shih
2025-10-21  6:59 ` 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;
as well as URLs for NNTP newsgroup(s).