]> git.baikalelectronics.ru Git - kernel.git/commit
mt76: mt76x02: improve reliability of the beacon hang check
authorFelix Fietkau <nbd@nbd.name>
Thu, 23 Jun 2022 09:39:58 +0000 (11:39 +0200)
committerFelix Fietkau <nbd@nbd.name>
Mon, 11 Jul 2022 11:40:03 +0000 (13:40 +0200)
commit8354276608497d99706019e644e30a18c63c1cd7
tree5d3cf3ed947dd7589b1241f1a8d7d49a2778b4e2
parentb3e4e65c7db305eea1f7b912928c5a76cd1321bf
mt76: mt76x02: improve reliability of the beacon hang check

Increment the counter only when writing beacons to the hardware in order
to avoid triggering restarts if beacons are disabled.
Additionally, avoid resetting the MAC if stopping it failed

Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt76x02_beacon.c
drivers/net/wireless/mediatek/mt76/mt76x02_mac.c