wifi: mt76: mt7921: add mt7921_mutex_acquire at mt7921_sta_set_decap_offload
authorSean Wang <sean.wang@mediatek.com>
Fri, 29 Jul 2022 14:44:57 +0000 (22:44 +0800)
committerFelix Fietkau <nbd@nbd.name>
Thu, 15 Sep 2022 10:54:01 +0000 (12:54 +0200)
commit59c20b91786d5f140ee7be2f24c242b5f8986046
treedff9559f18b90378e2afbfe51a2de939e8303245
parent52b44015f031f629f1ce1d73415a2017593c7ade
wifi: mt76: mt7921: add mt7921_mutex_acquire at mt7921_sta_set_decap_offload

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: 24299fc869f7 ("mt76: mt7921: enable rx header traslation offload")
Tested-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Acked-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: Sean Wang <sean.wang@mediatek.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt7921/main.c