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)
commit8916e4e513a85ff6315d1e7fef999916b35023d7
tree5d3cf3ed947dd7589b1241f1a8d7d49a2778b4e2
parentdf6b739fd7d15371357c32d4b1190e681434a096
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