From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.221.41 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796118592; b=UUZ+SjZoROgzRWC9iPA3xMwAZ5oQD0G5HPsiwyDQkriRd/jEfcvrQyGdBz9d/2MMVRFl qeA2ImpvLjVG7+YrpFLg1M8Bu0oiV6AdLrtvQ/t8MgWme9SgaUDi25axQ7fo1F9FSJTaW z85Ka7s+G3kSWsU+McQHKzuX0vf9V8VNadHrl4LDUob7YOnqI/RppVKfTZYMU/LPU5gnG 5L2IF1eJeAEInCkOXVIXIisEG7kuwQcvR84ibqYmrdX/gdb+wL7nJJonByXdC/bNoj7ZN IZ2FUPCY/IoH4yno9siNYFmV9dBwS2oqNfox4ORtK2z0Z442NP1i+ZtXYNiJrhyclsA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796118592; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Gm-Message-State:X-Gm-Gg:X-Received:Received:From:To:Cc:Subject: Date:Message-ID:X-Mailer:MIME-Version:Content-Type: Content-Transfer-Encoding; bh=XzhIQh3f8o5g8p954Sm/8/Ee3S8QweBlWbf8ccd3Vbo=; b=fkkIJr3KfIh802HXLEXZ8aTdQWd6gDh+Mr32wCzM1Uy3oQAHUucLyste2uw7HAlXJiCy OP/Zi/qxPXMclNGmvKIRb/FDDSt7PUuloUYP1syTgeIaOhUCMBtMtSqv1nsmZd1cu/2gA 5NqEA3Iw2g4nEaVWrVBmMBLiPLn6zisbcZ5/uKv4fP1sin/6KTp8FP+GgowvrEfGK21ur hjpPkh5fAH/+FJX7JaBtMqZXrx+h9VDgoZHD1Bi3xwvaqMLlTKK5gD78H2ygY+pgd+nW0 sJMfNTHSJXMjdJ2mJ9ZaZOHdXxL+KbokuDsfNRC03653larCZpzts/LMcSIJysCBiQg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=hDPlIAot; arc=none smtp.remote-ip=209.85.221.41 Received: from mail-wr1-f41.google.com (mail-wr1-f41.google.com [209.85.221.41]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 329DC606A33A for ; Tue, 1 Dec 2026 09:49:52 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 329DC606A33A Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=hDPlIAot Received: by mail-wr1-f41.google.com with SMTP id ffacd0b85a97d-491846221ffso10133739f8f.3 for ; Tue, 01 Dec 2026 01:49:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1796118590; x=1796723390; darn=vger.kernel.org; h=content-transfer-encoding:content-type:mime-version:message-id:date :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to :content-type; bh=XzhIQh3f8o5g8p954Sm/8/Ee3S8QweBlWbf8ccd3Vbo=; b=hDPlIAotFb9IFRcgfflk3yNoAPaznbrMAFXP+JDOwYDPLRJ/TpDCZ9RwymhHSY928x R5NxPU3jEqleFVwjh8IO0oRAduhRozcpdPOPjfcK8dp3Xi6i9gfoUQHA2TaHUQj4GoZs iKvlAOLNF+rH72fOPO63TwDjo+cnGN+mI2j3LwzF5a76U9n739MCJG4KBRisTrptPhea gpacs9VDz03mVdLMZFLtK50KhqZJ26T04SX8n6j5xqAFDvNK+gnqgJCrtmGK7Q0gZE0/ thbfDvVRxn3ZrAVGLcZKTcNPsy+TBkmoFnakS8tLIfoIUpaYfIyJjq4qALgG8AJEXYJY ClLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796118590; x=1796723390; h=content-transfer-encoding:content-type:mime-version:message-id:date :subject:cc:to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to:content-type; bh=XzhIQh3f8o5g8p954Sm/8/Ee3S8QweBlWbf8ccd3Vbo=; b=GUYligfWmdaZIRFgdZvmSOphPvWWSj05TM3gmW6AOT7SalBpr5swef1nTKbUddOeAB 9B1r8AxCtxSIIZvF16jKnetPZDF3/+2K5pTRM90j8DhKY2S6Z88vc2x1HneSGeZ1pG4C m0OD3aZzw68jCr0M9JJeqVsHY551hhvLPcUgV1VIufq0YdjvbLfBe8SAphoV7lrDI+di XzK34/fYS5ERCmKHvEO1kjU7lTnBTZuQOIh4gn5QKyV0aPc7x8XRv9ehi5vxzaeNqB4p SWrA5RRFo7YBPMMBfjtYTeW1a/qqeZfYxdjyLv5mYuwTyjb2guGThjSdVdRyZYwc2jr+ EFzg== X-Gm-Message-State: APuU4Z+Y4XC2DShZbwl2n1TySCNePIzeG3MwXhOLYRpn3U2LsqZIRE0R Cyp8YTtluOhmtYPA9gTnA2nZwV10jsX7r4FlQS7fqNyTGj6POkXPlPQNiBucTvSoNJA= X-Gm-Gg: AZFdTZeA16dB2eHFKWcuYn1tAaQE69/7MB4pWHg2GKTXOYBOrz7eC0uvykD2zMxljXD xfCiSBN3unusIV9K9xs6kpF4P5TNP02SLVT4nxvi06xpj5dl45hRv1IXIbvuXiubXv1fKnL1SVz U8XXnm9xKTlF8ja0mw4SCav8pmVJWOYOUo69Jf4VF1Btm/UEF4NT66vOrVAO5srOPwLbsq6zQrX Crf6e6pfOJ9vwaIYUdSrjPQiNcjuNGlXfrEAaFcjfuOtgvOqkQ2+aSwSXjBxPzSTcacLn2sMS5L i+rdBkPD2WrOZh2R9lj2i3y1NAcgif1ZISMRJzs/BaZ3aYOrZba+dt1eLQzna51ckWqn/6KPFbW LIY3miSyMKW19Z3Vgh3XqRNMGmXZPY/aNr3eTiCwH8z2FvwrR3+s2dKaXU4BbDgz4os5T97ENxr 2jOwoXX/tBeXvbTUz0kDsMEYcTWsUKQLgTyi7GXhR34Y7XuWkDqUrj8ON5fFM+S3dCrT6+K8Esc KenGlL2QTiWVwXv90l+mzSbyPs/mk0fnl6DxXRle5x+wDIpuCsM6kUK9jCneBO3EjnQdHG9MqfV Em67824VKPeohtGASI0Et2QFD6j9md65WCNQfpQP35MNWopf7zgH9ktywTLOeh3DqpsQ+NFKbId h X-Received: by 2002:a5d:5d85:0:b0:4aa:e105:381a with SMTP id ffacd0b85a97d-4abb58ec01dmr71708966f8f.51.1796118590364; Tue, 01 Dec 2026 01:49:50 -0800 (PST) Received: from localhost.localdomain ([89.36.2.203]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4ab6bb989eesm69466077f8f.50.2026.12.01.01.49.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Dec 2026 01:49:49 -0800 (PST) From: =?UTF-8?q?Antonio=20Mart=C3=ADnez=20Ram=C3=ADrez?= To: linux-wireless@vger.kernel.org Cc: pkshih@realtek.com, hjf3108@gmail.com, hemanth.selam@gmail.com Subject: [PATCH rtw-next v2] wifi: rtlwifi: rtl8192ce: report no signal for frames without PHY status Date: Tue, 1 Dec 2026 10:49:26 +0100 Message-ID: <20261201094926.19406-1-antoniomartinezramirez@gmail.com> X-Mailer: git-send-email 2.47.3 X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 with RX_FLAG_NO_SIGNAL_VAL unset. Set RX_FLAG_NO_SIGNAL_VAL when PHY status is absent and retain the historical +10 assignment. Signed-off-by: Antonio Martínez Ramírez Reviewed-by: Ho Jie Feng --- Changes in v2: - State in the first paragraph that RX_FLAG_NO_SIGNAL_VAL is unset. - Shorten the commit message and remove the RTL8192D references and links. - Move testing details and AI-assistance disclosure below this delimiter. - Preserve the code unchanged and retain Ho Jie Feng's Reviewed-by. v1: https://lore.kernel.org/linux-wireless/20261130094232.8734-1-antoniomartinezramirez@gmail.com/ Testing previously reported in the v1 thread on physical RTL8192CE (PCI 10ec:8178), Debian 13, kernel 7.2.2-antonio: - Original driver: one correlated descriptor with phystatus=0, recvsignalpower=0 before/after, signal=+10 dBm and NO_SIGNAL_VAL=0. - Locally built module with the same two-line change: one correlated descriptor with the same zero power and +10 dBm, but NO_SIGNAL_VAL=1 and return value=true. Both probes had two hits and zero missed; recorded buffer-loss counters were zero. - Router ping checks before loading the modified module, with it loaded, and after restoring the original module had zero packet loss. Tracing was removed and the restored original-module identity was verified. These are the author's previously published test results, not new v2 hardware tests. Delivery to mac80211 and station-statistics updates were not tested. The hardware test used a local-kernel build, not a module built against this updated rtw-next checkout. The previous upstream W=1 check compiled eight C files and linked rtl8192ce.o without warnings; it did not constitute a complete upstream .ko/modpost build. No new compilation or hardware test was performed for this text-only revision. AI assistance: ChatGPT and OpenAI Codex assisted with RX-path analysis, the minimal change, temporary tracing, trace interpretation and drafting. The requests were to investigate RTL8192CE and keep the change minimal; this revision follows the maintainer's requests to shorten the message. 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: b64d6b5ae79cebd13aef6f9afb284899768cbc46