aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl3945-base.c
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2010-02-19 14:42:32 -0500
committerReinette Chatre <reinette.chatre@intel.com>2010-03-09 19:12:08 -0500
commit72e15d71b02a21fd7b94ee1af4ba3a41f722b1f3 (patch)
tree9e0435e3fba955ea598b637ac53fe8f0b879d22f /drivers/net/wireless/iwlwifi/iwl3945-base.c
parent4967c31677cf3c6c49aadf205f1a31d15d7610da (diff)
iwlwifi: change WEP key protection to use mutex
For later station notification support we would like WEP key setting to be done synchronously always. Currently all places from which WEP key is set can sleep, but the usage of sta_lock prevents it to do so. Modify the locking to use priv->mutex instead and thus enable this call to sleep. Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl3945-base.c')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl3945-base.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl3945-base.c b/drivers/net/wireless/iwlwifi/iwl3945-base.c
index 2fd1b3d4949a..dd33251d6918 100644
--- a/drivers/net/wireless/iwlwifi/iwl3945-base.c
+++ b/drivers/net/wireless/iwlwifi/iwl3945-base.c
@@ -3344,7 +3344,6 @@ static int iwl3945_mac_set_key(struct ieee80211_hw *hw, enum set_key_cmd cmd,
3344 3344
3345 mutex_lock(&priv->mutex); 3345 mutex_lock(&priv->mutex);
3346 iwl_scan_cancel_timeout(priv, 100); 3346 iwl_scan_cancel_timeout(priv, 100);
3347 mutex_unlock(&priv->mutex);
3348 3347
3349 switch (cmd) { 3348 switch (cmd) {
3350 case SET_KEY: 3349 case SET_KEY:
@@ -3365,6 +3364,7 @@ static int iwl3945_mac_set_key(struct ieee80211_hw *hw, enum set_key_cmd cmd,
3365 ret = -EINVAL; 3364 ret = -EINVAL;
3366 } 3365 }
3367 3366
3367 mutex_unlock(&priv->mutex);
3368 IWL_DEBUG_MAC80211(priv, "leave\n"); 3368 IWL_DEBUG_MAC80211(priv, "leave\n");
3369 3369
3370 return ret; 3370 return ret;