aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/net/wireless/mediatek/mt76/mt76.h
diff options
context:
space:
mode:
authorSujuan Chen <sujuan.chen@mediatek.com>2022-11-12 16:40:41 +0100
committerFelix Fietkau <nbd@nbd.name>2022-12-01 17:29:14 +0100
commitc6cde7b751ee6fb0d4c2216c2edd9b0b5ffee04d (patch)
tree62937aa7b20855668354350af746add8f61e8c8b /drivers/net/wireless/mediatek/mt76/mt76.h
parentwifi: mt76: mt7915: enable WED RX support (diff)
downloadwireguard-linux-c6cde7b751ee6fb0d4c2216c2edd9b0b5ffee04d.tar.xz
wireguard-linux-c6cde7b751ee6fb0d4c2216c2edd9b0b5ffee04d.zip
wifi: mt76: mt7915: enable WED RX stats
Introduce the capability to report WED RX stats to mac80211. Tested-by: Daniel Golle <daniel@makrotopia.org> Co-developed-by: Lorenzo Bianconi <lorenzo@kernel.org> Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org> Signed-off-by: Sujuan Chen <sujuan.chen@mediatek.com> Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'drivers/net/wireless/mediatek/mt76/mt76.h')
-rw-r--r--drivers/net/wireless/mediatek/mt76/mt76.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/wireless/mediatek/mt76/mt76.h b/drivers/net/wireless/mediatek/mt76/mt76.h
index bf4ad629df3f..33f87e518d68 100644
--- a/drivers/net/wireless/mediatek/mt76/mt76.h
+++ b/drivers/net/wireless/mediatek/mt76/mt76.h
@@ -273,9 +273,15 @@ struct mt76_sta_stats {
u64 tx_nss[4]; /* 1, 2, 3, 4 */
u64 tx_mcs[16]; /* mcs idx */
u64 tx_bytes;
+ /* WED TX */
u32 tx_packets;
u32 tx_retries;
u32 tx_failed;
+ /* WED RX */
+ u64 rx_bytes;
+ u32 rx_packets;
+ u32 rx_errors;
+ u32 rx_drops;
};
enum mt76_wcid_flags {