wifi: mt76: mt7996: add locking for accessing mapped registers

A race condition was observed when accessing mapped registers, so add
locking to protect against concurrent access.

Signed-off-by: Shayne Chen <shayne.chen@mediatek.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
Shayne Chen 2024-01-26 17:09:21 +08:00 • committed by Felix Fietkau
commit 3687854d3e
2 changed files with 43 additions and 24 deletions