wifi: mt76: mt7921: fix a potential association failure upon resuming
authorLeon Yen <leon.yen@mediatek.com>
Tue, 6 Feb 2024 08:53:04 +0000 (16:53 +0800)
committerFelix Fietkau <nbd@nbd.name>
Thu, 22 Feb 2024 08:55:19 +0000 (09:55 +0100)
commit352d966126e66d825244f1185eb9f2d904c83dd4
tree8b4e46e17cef3b73084b9a49a27413fdb478e3f6
parentc2b22e26755c77299e1dffa2e17374cd28f7f3a7
wifi: mt76: mt7921: fix a potential association failure upon resuming

In multi-channel scenarios, the granted channel must be aborted before
suspending. Otherwise, the firmware will be put into a wrong state,
resulting in an association failure after resuming.
With this patch, the granted channel will be aborted before suspending
if necessary.

Signed-off-by: Leon Yen <leon.yen@mediatek.com>
Signed-off-by: Ming Yen Hsieh <mingyen.hsieh@mediatek.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt7921/main.c
drivers/net/wireless/mediatek/mt76/mt7921/mt7921.h
drivers/net/wireless/mediatek/mt76/mt7921/pci.c
drivers/net/wireless/mediatek/mt76/mt7921/sdio.c