projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2eee3db
)
wifi: rtw88: add mutex when set SAR
author
Chih-Kang Chang
<gary.chang@realtek.com>
Tue, 9 Aug 2022 08:41:01 +0000
(16:41 +0800)
committer
Kalle Valo
<kvalo@kernel.org>
Wed, 10 Aug 2022 05:48:45 +0000
(08:48 +0300)
Applying SAR 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-2-pkshih@realtek.com
drivers/net/wireless/realtek/rtw88/mac80211.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/realtek/rtw88/mac80211.c
b/drivers/net/wireless/realtek/rtw88/mac80211.c
index
b6af199
..
fa6a920
100644
(file)
--- a/
drivers/net/wireless/realtek/rtw88/mac80211.c
+++ b/
drivers/net/wireless/realtek/rtw88/mac80211.c
@@
-875,7
+875,9
@@
static int rtw_ops_set_sar_specs(struct ieee80211_hw *hw,
{
struct rtw_dev *rtwdev = hw->priv;
+ mutex_lock(&rtwdev->mutex);
rtw_set_sar_specs(rtwdev, sar);
+ mutex_unlock(&rtwdev->mutex);
return 0;
}