wifi: mt76: mt7921: add mt7921_mutex_acquire at mt7921_[start, stop]_ap
authorSean Wang <sean.wang@mediatek.com>
Fri, 29 Jul 2022 14:44:56 +0000 (22:44 +0800)
committerFelix Fietkau <nbd@nbd.name>
Thu, 15 Sep 2022 10:54:01 +0000 (12:54 +0200)
commit52b44015f031f629f1ce1d73415a2017593c7ade
treef38d0396ed0651117d6ec59b29d239fe60bf5176
parent028a47cf60d5ba1a9184a1eeeb9992aec86dfc4d
wifi: mt76: mt7921: add mt7921_mutex_acquire at mt7921_[start, stop]_ap

Add mt7921_mutex_acquire at mt7921_[start, stop]_ap to fix the race
with the context holding dev->muxtex and the driver might access the
device in low power state.

Fixes: 9d958b60ebc2 ("mt76: mt7921: fix command timeout in AP stop period")
Tested-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: Sean Wang <sean.wang@mediatek.com>
Acked-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt7921/main.c