aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/wl12xx/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/wl12xx/main.c')
-rw-r--r--drivers/net/wireless/wl12xx/main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/wireless/wl12xx/main.c b/drivers/net/wireless/wl12xx/main.c
index 8feba36ff48d..7ec174992787 100644
--- a/drivers/net/wireless/wl12xx/main.c
+++ b/drivers/net/wireless/wl12xx/main.c
@@ -957,11 +957,15 @@ static int wl12xx_op_set_rts_threshold(struct ieee80211_hw *hw, u32 value)
957 struct wl12xx *wl = hw->priv; 957 struct wl12xx *wl = hw->priv;
958 int ret; 958 int ret;
959 959
960 mutex_lock(&wl->mutex);
961
960 ret = wl12xx_acx_rts_threshold(wl, (u16) value); 962 ret = wl12xx_acx_rts_threshold(wl, (u16) value);
961 963
962 if (ret < 0) 964 if (ret < 0)
963 wl12xx_warning("wl12xx_op_set_rts_threshold failed: %d", ret); 965 wl12xx_warning("wl12xx_op_set_rts_threshold failed: %d", ret);
964 966
967 mutex_unlock(&wl->mutex);
968
965 return ret; 969 return ret;
966} 970}
967 971