From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=211.75.126.72 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796018188; b=E1eTfR6KeF1dq6+WlPPNAS/0xQW68PIP/REyRK1THDxscIjSXX7tGxmuyRNFhTq3G0mB MZ+ejFxFIKooe5lAYnGlM4rBZ7awnP3aBbccjPhavuP5TH/6R4WaFmvfOh9WwsXPK0N8n 0EoJrZPfeHEhFJMiGndxZ2ctwO0ERWInlCaz6eQsoWraOyPos6x+YpW6VsDRew4d+M0L9 Y9AQHAIqRBey2tHhVWVckyabfOCAppgFJmvkisgmNSDjBfpqBco5nYgNhzFZzhEOTQ0Fx Rcl4H7M8OZ5/5tuCpnh1vYN2NCgiiQIItr3lZA4IXuGzJ2uis903MvcdxdMxm0UYsMw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796018188; h=DMARC-Filter:X-SpamFilter-By:DKIM-Signature:Received:Received: Received:From:To:Subject:Thread-Topic:Thread-Index:Date:Message-ID: References:In-Reply-To:Accept-Language:Content-Language: x-originating-ip:Content-Type:Content-Transfer-Encoding:MIME-Version; bh=jpI4l6EgDQpfo+58+1HvYez0Wo72VMQVffJ28mv7kN8=; b=cUy5s9RFNAZk6dwD6t5LVeSRHiRBUUxX1ljBMGPkE3V83lZLHRYr0/HKG7On9YDVwmPr iQDYxkZfa4pyDioNElXQ/hibv2zox+vjsXxwagYA9S2yxyPn/zRZGOLWwGlkCHOMDwR41 Y60UDAasTzexVQVBj2RvERTQpCKnoSaUmn+DPwccrZIcw4mB2KZOg4tLcutkcxdR4PeXC s9NEujMiLNRLGgWTnTxZslWgrzurpIUZhU1P5eWgNY0l2QN5lCiaUSI0577RuNcwyID87 L5w4DHNsF2r8tIejaovAvboAPCinJc3pyvfhZi4GRh0qRpWQdga+tSgRJBtW7jNLR8w== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=realtek.com; spf=pass smtp.mailfrom=realtek.com; dkim=pass header.d=realtek.com header.i=@realtek.com header.a=rsa-sha256 header.s=dkim header.b=ZYv285OP; arc=none smtp.remote-ip=211.75.126.72 Received: from rtits2.realtek.com.tw (rtits2.realtek.com [211.75.126.72]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 86646606A325 for ; Mon, 30 Nov 2026 05:56:27 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 86646606A325 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=realtek.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=realtek.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=realtek.com header.i=@realtek.com header.a=rsa-sha256 header.s=dkim header.b=ZYv285OP X-SpamFilter-By: ArmorX SpamTrap 5.80 with qID 6AU5uN3j93099069, This message is accepted by code: ctloc85258 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=realtek.com; s=dkim; t=1796018183; bh=jpI4l6EgDQpfo+58+1HvYez0Wo72VMQVffJ28mv7kN8=; h=From:To:Subject:Date:Message-ID:References:In-Reply-To: Content-Type:Content-Transfer-Encoding:MIME-Version; b=ZYv285OP2qb947JFkmDTWb/Iiqljjfu/BYDcRvbD8F2jOWN3qh3CvbV4hOKPJJKuU bKkeT0UN6CVFFkkOv+Z2rex6TEOGh+ok5dzEroGJcvaksib/ZKjxZQWL9svZN3ZRO5 U14OM9o9a8h7V9UTIGkKKbz26v2l+RLUVnJ/TQjwIurAEbf2nQg01h/hS0O5zJPoWw 5Yjo4ZkcmwqCojIfpoGAlqSOy+PsQFuvNok4G3+Am/3mJ9zzNYKR9ka7IyxlEcZTUK qQjhUrwN2Pk+JJK60sb9peywR6yNk5Ed49Y7hAD6odNiJBUAR6hFxn6HBrA40DTTGm +enzjyocVyHBA== Received: from mail.realtek.com (rtkexhmbs02.realtek.com.tw[172.21.6.41]) by rtits2.realtek.com.tw (8.15.2/3.29/5.94) with ESMTPS id 6AU5uN3j93099069 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 30 Nov 2026 13:56:23 +0800 Received: from RTKEXHMBS06.realtek.com.tw (10.21.1.56) by RTKEXHMBS02.realtek.com.tw (172.21.6.41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.56; Mon, 30 Nov 2026 13:56:22 +0800 Received: from RTKEXHMBS06.realtek.com.tw ([fe80::eeeb:c765:ca73:5eef]) by RTKEXHMBS06.realtek.com.tw ([fe80::eeeb:c765:ca73:5eef%10]) with mapi id 15.02.2562.056; Mon, 30 Nov 2026 13:56:22 +0800 From: Ping-Ke Shih To: =?iso-8859-1?Q?Antonio_Mart=EDnez_Ram=EDrez?= , "linux-wireless@vger.kernel.org" Subject: RE: [RFC] wifi: rtlwifi: rtl8192ce: signal validity without PHY status Thread-Topic: [RFC] wifi: rtlwifi: rtl8192ce: signal validity without PHY status Thread-Index: AQHdgGUbZ67jilAZtkGNONvDReyBA7dGG9VQ Date: Mon, 30 Nov 2026 05:56:22 +0000 Message-ID: References: <20261130005208.3375-1-antoniomartinezramirez@gmail.com> In-Reply-To: <20261130005208.3375-1-antoniomartinezramirez@gmail.com> Accept-Language: en-US, zh-TW Content-Language: zh-TW Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable 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 Antonio Mart=EDnez Ram=EDrez wrote: > Hi Ping-Ke and linux-wireless, >=20 > Would it be appropriate to extend Ho Jie Feng's RTL8192D change, > d25adca7a8d5 ("wifi: rtlwifi: rtl8192d: report no signal for frames > without PHY status") [1], to RTL8192CE with the two-line change below? I think it is okay, but there are more chips use similar patterns. Should they change in one go? >=20 > rtl92ce_rx_query_desc() skips the PHY translator when phystatus is > zero, but still assigns stats->recvsignalpower + 10 to > rx_status->signal. The PCI RX loop reuses stats across descriptors > while clearing rx_status for each one. As a result, the no-PHY path > can assign a seemingly valid signal using a zero or stale power value. >=20 > On 29 November 2026 I traced the original loaded driver on an RTL8192CE > (PCI 10ec:8178), Debian 13, kernel 7.2.2-antonio. Using an entry kprobe a= nd a kretprobe, I captured > one RX descriptor > with matching entry and return records: >=20 > entry: phystatus=3D0, recvsignalpower=3D0 > return: phystatus=3D0, recvsignalpower=3D0, signal=3D+10 dBm, > RX_FLAG_NO_SIGNAL_VAL=3D0, return value=3Dtrue If you have real hardware, just send out a patch.=20 To be conservative, I'm not very willing to touch old chips. >=20 > The capture stopped after 9.1348 seconds. Both probes recorded 65 hits > with zero missed; only one descriptor pair was recorded and analyzed. > Buffer-loss counters were zero. The probes were removed and the > preexisting BPF hook was preserved. Kernel pointers are omitted here. > PAGGR/FAGGR were both set; frame type and PPDU membership were not traced= . >=20 > This confirms the behaviour observed in rtl92ce_rx_query_desc(), > but it does not establish delivery to mac80211 or an update to station > statistics. The proposed change has not been tested on hardware. > All eight rtl8192ce C files compiled and rtl8192ce.o linked with W=3D1 > and no warnings against rtw-next ae6b9e98b904. This did not include a > final .ko/modpost build or any module installation or loading. >=20 > The proposal preserves the historical +10 assignment and marks the > value unavailable when PHY status is missing, following RTL8192D. > Does RTL8192CE have a hardware-specific rule that makes reuse valid, > or should NO_SIGNAL_VAL be set for every missing-PHY descriptor, > including management/control frames? If you think this approach is approp= riate, would you recommend > preparing a follow-up patch against rtw or rtw-next? The code was there for many years, just go via rtw-next.