aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-agn-lib.c
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2012-03-06 16:30:42 -0500
committerJohn W. Linville <linville@tuxdriver.com>2012-03-07 13:51:49 -0500
commitb1eea297d6b522b801c95b60b1e64fb61228c6c7 (patch)
tree20004f65acf9d342029900936fd04d67d90cb5ec /drivers/net/wireless/iwlwifi/iwl-agn-lib.c
parent2cc39c94c15ba1d5f6f71ab73f3369f9c17856ad (diff)
iwlwifi: move mutex out of shared
Now the mutex no longer needs to be shared, so move it into iwl_priv. Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-agn-lib.c')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-agn-lib.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn-lib.c b/drivers/net/wireless/iwlwifi/iwl-agn-lib.c
index 238f824c2f3e..90f1f8a506f2 100644
--- a/drivers/net/wireless/iwlwifi/iwl-agn-lib.c
+++ b/drivers/net/wireless/iwlwifi/iwl-agn-lib.c
@@ -246,7 +246,7 @@ int iwlagn_txfifo_flush(struct iwl_priv *priv, u16 flush_control)
246 246
247void iwlagn_dev_txfifo_flush(struct iwl_priv *priv, u16 flush_control) 247void iwlagn_dev_txfifo_flush(struct iwl_priv *priv, u16 flush_control)
248{ 248{
249 mutex_lock(&priv->shrd->mutex); 249 mutex_lock(&priv->mutex);
250 ieee80211_stop_queues(priv->hw); 250 ieee80211_stop_queues(priv->hw);
251 if (iwlagn_txfifo_flush(priv, IWL_DROP_ALL)) { 251 if (iwlagn_txfifo_flush(priv, IWL_DROP_ALL)) {
252 IWL_ERR(priv, "flush request fail\n"); 252 IWL_ERR(priv, "flush request fail\n");
@@ -256,7 +256,7 @@ void iwlagn_dev_txfifo_flush(struct iwl_priv *priv, u16 flush_control)
256 iwl_trans_wait_tx_queue_empty(trans(priv)); 256 iwl_trans_wait_tx_queue_empty(trans(priv));
257done: 257done:
258 ieee80211_wake_queues(priv->hw); 258 ieee80211_wake_queues(priv->hw);
259 mutex_unlock(&priv->shrd->mutex); 259 mutex_unlock(&priv->mutex);
260} 260}
261 261
262/* 262/*
@@ -453,7 +453,7 @@ void iwlagn_bt_adjust_rssi_monitor(struct iwl_priv *priv, bool rssi_ena)
453 struct iwl_rxon_context *ctx, *found_ctx = NULL; 453 struct iwl_rxon_context *ctx, *found_ctx = NULL;
454 bool found_ap = false; 454 bool found_ap = false;
455 455
456 lockdep_assert_held(&priv->shrd->mutex); 456 lockdep_assert_held(&priv->mutex);
457 457
458 /* Check whether AP or GO mode is active. */ 458 /* Check whether AP or GO mode is active. */
459 if (rssi_ena) { 459 if (rssi_ena) {
@@ -566,7 +566,7 @@ static void iwlagn_bt_traffic_change_work(struct work_struct *work)
566 break; 566 break;
567 } 567 }
568 568
569 mutex_lock(&priv->shrd->mutex); 569 mutex_lock(&priv->mutex);
570 570
571 /* 571 /*
572 * We can not send command to firmware while scanning. When the scan 572 * We can not send command to firmware while scanning. When the scan
@@ -594,7 +594,7 @@ static void iwlagn_bt_traffic_change_work(struct work_struct *work)
594 */ 594 */
595 iwlagn_bt_coex_rssi_monitor(priv); 595 iwlagn_bt_coex_rssi_monitor(priv);
596out: 596out:
597 mutex_unlock(&priv->shrd->mutex); 597 mutex_unlock(&priv->mutex);
598} 598}
599 599
600/* 600/*
@@ -969,7 +969,7 @@ static void iwlagn_wowlan_program_keys(struct ieee80211_hw *hw,
969 u16 p1k[IWLAGN_P1K_SIZE]; 969 u16 p1k[IWLAGN_P1K_SIZE];
970 int ret, i; 970 int ret, i;
971 971
972 mutex_lock(&priv->shrd->mutex); 972 mutex_lock(&priv->mutex);
973 973
974 if ((key->cipher == WLAN_CIPHER_SUITE_WEP40 || 974 if ((key->cipher == WLAN_CIPHER_SUITE_WEP40 ||
975 key->cipher == WLAN_CIPHER_SUITE_WEP104) && 975 key->cipher == WLAN_CIPHER_SUITE_WEP104) &&
@@ -1075,7 +1075,7 @@ static void iwlagn_wowlan_program_keys(struct ieee80211_hw *hw,
1075 break; 1075 break;
1076 } 1076 }
1077 1077
1078 mutex_unlock(&priv->shrd->mutex); 1078 mutex_unlock(&priv->mutex);
1079} 1079}
1080 1080
1081int iwlagn_send_patterns(struct iwl_priv *priv, 1081int iwlagn_send_patterns(struct iwl_priv *priv,
@@ -1222,11 +1222,11 @@ int iwlagn_suspend(struct iwl_priv *priv,
1222 * constraints. Since we're in the suspend path 1222 * constraints. Since we're in the suspend path
1223 * that isn't really a problem though. 1223 * that isn't really a problem though.
1224 */ 1224 */
1225 mutex_unlock(&priv->shrd->mutex); 1225 mutex_unlock(&priv->mutex);
1226 ieee80211_iter_keys(priv->hw, ctx->vif, 1226 ieee80211_iter_keys(priv->hw, ctx->vif,
1227 iwlagn_wowlan_program_keys, 1227 iwlagn_wowlan_program_keys,
1228 &key_data); 1228 &key_data);
1229 mutex_lock(&priv->shrd->mutex); 1229 mutex_lock(&priv->mutex);
1230 if (key_data.error) { 1230 if (key_data.error) {
1231 ret = -EIO; 1231 ret = -EIO;
1232 goto out; 1232 goto out;
@@ -1304,7 +1304,7 @@ int iwl_dvm_send_cmd(struct iwl_priv *priv, struct iwl_host_cmd *cmd)
1304 * (or more) synchronous commands at a time. 1304 * (or more) synchronous commands at a time.
1305 */ 1305 */
1306 if (cmd->flags & CMD_SYNC) 1306 if (cmd->flags & CMD_SYNC)
1307 lockdep_assert_held(&priv->shrd->mutex); 1307 lockdep_assert_held(&priv->mutex);
1308 1308
1309 return iwl_trans_send_cmd(trans(priv), cmd); 1309 return iwl_trans_send_cmd(trans(priv), cmd);
1310} 1310}