lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20240127170430.68427-1-genxu6@gmail.com>
Date: Sat, 27 Jan 2024 09:04:30 -0800
From: Gen Xu <genxu6@...il.com>
To: lorenzo@...nel.org,
	shayne.chen@...iatek.com
Cc: nbd@....name,
	ryder.lee@...iatek.com,
	sean.wang@...iatek.com,
	kvalo@...nel.org,
	matthias.bgg@...il.com,
	angelogioacchino.delregno@...labora.com,
	linux-wireless@...r.kernel.org,
	linux-kernel@...r.kernel.org,
	linux-arm-kernel@...ts.infradead.org,
	linux-mediatek@...ts.infradead.org,
	Gen Xu <genxu6@...il.com>
Subject: [PATCH] wifi: mt76: fix ethtool stat for EHT rate stats

The patch add the missing ethtool stat for EHT rate stats.

The commit 731425f3a940d01be0cab0a5e45382988146aed8 introduced the EHT
rate defined in struct mt76_sta_stats, but missed to add stats string to
mt792x_gstrings_stats, as mt76_ethtool_worker walk through, it prints
out error like this:

[98179.287352] mt7921e 0003:01:00.0: ei: 74  SSTATS_LEN: 73

Signed-off-by: Gen Xu <genxu6@...il.com>
---
 drivers/net/wireless/mediatek/mt76/mt792x_core.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/net/wireless/mediatek/mt76/mt792x_core.c b/drivers/net/wireless/mediatek/mt76/mt792x_core.c
index 502be22dbe36..fb35eff6dc7b 100644
--- a/drivers/net/wireless/mediatek/mt76/mt792x_core.c
+++ b/drivers/net/wireless/mediatek/mt76/mt792x_core.c
@@ -354,6 +354,7 @@ static const char mt792x_gstrings_stats[][ETH_GSTRING_LEN] = {
 	"v_tx_bw_40",
 	"v_tx_bw_80",
 	"v_tx_bw_160",
+	"v_tx_bw_320",
 	"v_tx_mcs_0",
 	"v_tx_mcs_1",
 	"v_tx_mcs_2",
-- 
2.43.0


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ