Re: [PATCH ath-next v2 7/8] wifi: ath12k: fix 1-based ring index in REO Rx Received debugfs output

Pardeep Kaur <[email protected]>
Newsgroups org.infradead.lists.ath12k,org.kernel.vger.linux-wireless
Message-ID <[email protected]>
On 08-08-2026 20:56, Jeff Johnson wrote:
> On 8/6/2026 6:24 AM, Pardeep Kaur wrote:
>> From: Pardeep Kaur <[email protected]>
>>
>> The REO Rx Received section in device_dp_stats debugfs uses a 1-based
>> ring index ("Ring1:", "Ring2:", ...) which is inconsistent with the rest
>> of ath12k where rings are indexed from 0. Fix it to use 0-based indexing
>> and lowercase "ring%d:" to match the style used by all other ring counters
>> in the same function.
>>
>> Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.6.r1-00402-QCAHKSWPL_SILICONZ-1
>>
>> Fixes: 84873d542e95 ("wifi: ath12k: print device dp stats in debugfs")
> drop the Fixes tag -- this is not something that needs backporting

will update this

>
>> Signed-off-by: Pardeep Kaur <[email protected]>
>> ---
>>   drivers/net/wireless/ath/ath12k/debugfs.c | 2 +-
>>   1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/drivers/net/wireless/ath/ath12k/debugfs.c b/drivers/net/wireless/ath/ath12k/debugfs.c
>> index 216a1af22898..d4ea21aac21e 100644
>> --- a/drivers/net/wireless/ath/ath12k/debugfs.c
>> +++ b/drivers/net/wireless/ath/ath12k/debugfs.c
>> @@ -1215,7 +1215,7 @@ static ssize_t ath12k_debugfs_dump_device_dp_stats(struct file *file,
>>   	len += scnprintf(buf + len, size - len, "\nREO Rx Received:\n");
>>   
>>   	for (i = 0; i < DP_REO_DST_RING_MAX; i++) {
>> -		len += scnprintf(buf + len, size - len, "Ring%d:", i + 1);
>> +		len += scnprintf(buf + len, size - len, "ring%d:", i);
>>   
>>   		for (j = 0; j < ab->ag->num_devices; j++) {
>>   			len += scnprintf(buf + len, size - len,
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.