diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2022-12-02 09:12:15 +0100 |
---|---|---|
committer | Kalle Valo <kvalo@kernel.org> | 2022-12-08 16:48:40 +0200 |
commit | 69020957bcb783184af1a86c8483139557cec751 (patch) | |
tree | eab9c283fe274728867d12bafe3be8ac5ab123ac | |
parent | 1d89660494402168565e0637268486ae28bad642 (diff) |
wifi: rtw88: Call rtw_fw_beacon_filter_config() with rtwdev->mutex held
rtw_fw_beacon_filter_config() is called once with rtwdev->mutex held
and once without the mutex held. Call it consistently with rtwdev->mutex
held.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Reviewed-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20221202081224.2779981-3-s.hauer@pengutronix.de
-rw-r--r-- | drivers/net/wireless/realtek/rtw88/mac80211.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/realtek/rtw88/mac80211.c b/drivers/net/wireless/realtek/rtw88/mac80211.c index 07578ccc4bab..776a9a9884b5 100644 --- a/drivers/net/wireless/realtek/rtw88/mac80211.c +++ b/drivers/net/wireless/realtek/rtw88/mac80211.c @@ -487,8 +487,8 @@ static int rtw_ops_sta_remove(struct ieee80211_hw *hw, { struct rtw_dev *rtwdev = hw->priv; - rtw_fw_beacon_filter_config(rtwdev, false, vif); mutex_lock(&rtwdev->mutex); + rtw_fw_beacon_filter_config(rtwdev, false, vif); rtw_sta_remove(rtwdev, sta, true); mutex_unlock(&rtwdev->mutex); |