wifi: mt76: mt7603: improve stuck beacon handling
authorFelix Fietkau <nbd@nbd.name>
Fri, 28 Jul 2023 14:21:18 +0000 (16:21 +0200)
committerFelix Fietkau <nbd@nbd.name>
Sat, 30 Sep 2023 18:03:03 +0000 (20:03 +0200)
commit3176205933494bd184c6acd70e796c382bc729b5
tree65447b63510cae840080b49505c4d27fbeaa06af
parentc677dda165231c3efffb9de4bace249d5d2a51b9
wifi: mt76: mt7603: improve stuck beacon handling

Before preparing the new beacon, check the queue status, flush out all
previous beacons and buffered multicast packets, then (if necessary)
try to recover more gracefully from a stuck beacon condition by making a
less invasive attempt at getting the MAC un-stuck.

Fixes: c8846e101502 ("mt76: add driver for MT7603E and MT7628/7688")
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt7603/beacon.c
drivers/net/wireless/mediatek/mt76/mt7603/regs.h