]> www.infradead.org Git - users/dwmw2/linux.git/commit
wifi: mt76: mt7925: fix CLC command timeout when suspend/resume
authorQuan Zhou <quan.zhou@mediatek.com>
Fri, 3 Jan 2025 13:39:43 +0000 (21:39 +0800)
committerFelix Fietkau <nbd@nbd.name>
Tue, 14 Jan 2025 12:42:30 +0000 (13:42 +0100)
commita0f721b8d986b62b4de316444f2b2e356d17e3b5
tree9305eb7e90a4da27e1da51600aabe0e7e356591b
parent1b97fc8443aea01922560de9f24a6383e6eb6ae8
wifi: mt76: mt7925: fix CLC command timeout when suspend/resume

When enter suspend/resume while in a connected state, the upper layer
will trigger disconnection before entering suspend, and at the same time,
it will trigger regd_notifier() and update CLC, causing the CLC event to
not be received due to suspend, resulting in a command timeout.

Therefore, the update of CLC is postponed until resume, to ensure data
consistency and avoid the occurrence of command timeout.

Signed-off-by: Quan Zhou <quan.zhou@mediatek.com>
Link: https://patch.msgid.link/bab00a2805d0533fd8beaa059222659858a9dcb5.1735910455.git.quan.zhou@mediatek.com
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt7925/init.c
drivers/net/wireless/mediatek/mt76/mt7925/mt7925.h
drivers/net/wireless/mediatek/mt76/mt7925/pci.c