]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
wifi: mt76: mt7603: improve stuck beacon handling
authorFelix Fietkau <nbd@nbd.name>
Fri, 28 Jul 2023 14:21:18 +0000 (16:21 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 20 Nov 2023 10:08:15 +0000 (11:08 +0100)
commit227709a0e47c887049dd730a3c87b0bbd3ca09e9
treeaeae6c457a86ba6ca3400535c134afcbb3f11f50
parenteab5b0aa5065b4dd1c4083ffaf829f9aea3044d1
wifi: mt76: mt7603: improve stuck beacon handling

[ Upstream commit 3176205933494bd184c6acd70e796c382bc729b5 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/wireless/mediatek/mt76/mt7603/beacon.c
drivers/net/wireless/mediatek/mt76/mt7603/regs.h