wifi: rtw88: add mutex when set regulatory and get Tx power table
authorChih-Kang Chang <gary.chang@realtek.com>
Tue, 9 Aug 2022 08:41:02 +0000 (16:41 +0800)
committerKalle Valo <kvalo@kernel.org>
Wed, 10 Aug 2022 05:48:46 +0000 (08:48 +0300)
commit685b474b7d8aadf601f4627ccad00d59fabd4757
treec5deb59ec728c2be8af4ec8557f389e39cc27e7e
parent9a72db41338564040b6469342cfddd46568c7380
wifi: rtw88: add mutex when set regulatory and get Tx power table

Applying regulatory and getting Tx power table will access hal
data, it should hold rtwdev::mutex to avoid hal data changed during
setting flow.

Signed-off-by: Chih-Kang Chang <gary.chang@realtek.com>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20220809084107.38137-3-pkshih@realtek.com
drivers/net/wireless/realtek/rtw88/debug.c
drivers/net/wireless/realtek/rtw88/regd.c