summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/mediatek/mt76/mt76x02.h
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2022-01-31 17:04:43 +0300
committerFelix Fietkau <nbd@nbd.name>2022-02-03 16:34:35 +0300
commitc007ef8c339d1eb319163bf576da0f180e162060 (patch)
treed2560c37038962084341bfce75b71bcd46f4955c /drivers/net/wireless/mediatek/mt76/mt76x02.h
parent2aa6c0fb755710a32f30b12dc9bec52929b8b988 (diff)
downloadlinux-c007ef8c339d1eb319163bf576da0f180e162060.tar.xz
mt76: mt76x02: improve tx hang detection
Instead of checking if any queue has not made progress since the last run, only trigger hang detection if one of the queues has not made any progress in 10 subsequent runs. This should reduce false positive firmware restarts Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'drivers/net/wireless/mediatek/mt76/mt76x02.h')
-rw-r--r--drivers/net/wireless/mediatek/mt76/mt76x02.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/mediatek/mt76/mt76x02.h b/drivers/net/wireless/mediatek/mt76/mt76x02.h
index 3232083e9916..f76fd22ee035 100644
--- a/drivers/net/wireless/mediatek/mt76/mt76x02.h
+++ b/drivers/net/wireless/mediatek/mt76/mt76x02.h
@@ -103,7 +103,7 @@ struct mt76x02_dev {
u8 tbtt_count;
u32 tx_hang_reset;
- u8 tx_hang_check;
+ u8 tx_hang_check[4];
u8 beacon_hang_check;
u8 mcu_timeout;