summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/mediatek/mt76/mt76x02_regs.h
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2022-01-31 11:35:34 +0100
committerFelix Fietkau <nbd@nbd.name>2022-02-03 14:34:35 +0100
commit2aa6c0fb755710a32f30b12dc9bec52929b8b988 (patch)
treeb3f1ef3fe5de3b8b6b85c156b4582bafc8eec518 /drivers/net/wireless/mediatek/mt76/mt76x02_regs.h
parentmt76: mt7921s: run sleep mode by default (diff)
downloadlinux-2aa6c0fb755710a32f30b12dc9bec52929b8b988.tar.xz
linux-2aa6c0fb755710a32f30b12dc9bec52929b8b988.zip
mt76x02: improve mac error check/reset reliability
On AP mode devices, check beacon tx counters to detect MAC errors. When an error is detected, stop the MAC before resetting it Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'drivers/net/wireless/mediatek/mt76/mt76x02_regs.h')
-rw-r--r--drivers/net/wireless/mediatek/mt76/mt76x02_regs.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/wireless/mediatek/mt76/mt76x02_regs.h b/drivers/net/wireless/mediatek/mt76/mt76x02_regs.h
index fa7872ac22bf..fe0c5e3298bc 100644
--- a/drivers/net/wireless/mediatek/mt76/mt76x02_regs.h
+++ b/drivers/net/wireless/mediatek/mt76/mt76x02_regs.h
@@ -571,6 +571,8 @@
#define MT_RX_STAT_2_OVERFLOW_ERRORS GENMASK(31, 16)
#define MT_TX_STA_0 0x170c
+#define MT_TX_STA_0_BEACONS GENMASK(31, 16)
+
#define MT_TX_STA_1 0x1710
#define MT_TX_STA_2 0x1714