aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-agn-rxon.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-agn-rxon.c')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-agn-rxon.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn-rxon.c b/drivers/net/wireless/iwlwifi/iwl-agn-rxon.c
index fadfc38b87bf..f0292fe9b4e6 100644
--- a/drivers/net/wireless/iwlwifi/iwl-agn-rxon.c
+++ b/drivers/net/wireless/iwlwifi/iwl-agn-rxon.c
@@ -132,7 +132,7 @@ static void iwlagn_update_qos(struct iwl_priv *priv,
132static int iwlagn_update_beacon(struct iwl_priv *priv, 132static int iwlagn_update_beacon(struct iwl_priv *priv,
133 struct ieee80211_vif *vif) 133 struct ieee80211_vif *vif)
134{ 134{
135 lockdep_assert_held(&priv->mutex); 135 lockdep_assert_held(&priv->shrd->mutex);
136 136
137 dev_kfree_skb(priv->beacon_skb); 137 dev_kfree_skb(priv->beacon_skb);
138 priv->beacon_skb = ieee80211_beacon_get(priv->hw, vif); 138 priv->beacon_skb = ieee80211_beacon_get(priv->hw, vif);
@@ -316,7 +316,7 @@ int iwlagn_set_pan_params(struct iwl_priv *priv)
316 316
317 BUILD_BUG_ON(NUM_IWL_RXON_CTX != 2); 317 BUILD_BUG_ON(NUM_IWL_RXON_CTX != 2);
318 318
319 lockdep_assert_held(&priv->mutex); 319 lockdep_assert_held(&priv->shrd->mutex);
320 320
321 ctx_bss = &priv->contexts[IWL_RXON_CTX_BSS]; 321 ctx_bss = &priv->contexts[IWL_RXON_CTX_BSS];
322 ctx_pan = &priv->contexts[IWL_RXON_CTX_PAN]; 322 ctx_pan = &priv->contexts[IWL_RXON_CTX_PAN];
@@ -421,7 +421,7 @@ int iwlagn_commit_rxon(struct iwl_priv *priv, struct iwl_rxon_context *ctx)
421 bool new_assoc = !!(ctx->staging.filter_flags & RXON_FILTER_ASSOC_MSK); 421 bool new_assoc = !!(ctx->staging.filter_flags & RXON_FILTER_ASSOC_MSK);
422 int ret; 422 int ret;
423 423
424 lockdep_assert_held(&priv->mutex); 424 lockdep_assert_held(&priv->shrd->mutex);
425 425
426 if (test_bit(STATUS_EXIT_PENDING, &priv->shrd->status)) 426 if (test_bit(STATUS_EXIT_PENDING, &priv->shrd->status))
427 return -EINVAL; 427 return -EINVAL;
@@ -537,7 +537,7 @@ int iwlagn_mac_config(struct ieee80211_hw *hw, u32 changed)
537 537
538 IWL_DEBUG_MAC80211(priv, "changed %#x", changed); 538 IWL_DEBUG_MAC80211(priv, "changed %#x", changed);
539 539
540 mutex_lock(&priv->mutex); 540 mutex_lock(&priv->shrd->mutex);
541 541
542 if (unlikely(test_bit(STATUS_SCANNING, &priv->shrd->status))) { 542 if (unlikely(test_bit(STATUS_SCANNING, &priv->shrd->status))) {
543 IWL_DEBUG_MAC80211(priv, "leave - scanning\n"); 543 IWL_DEBUG_MAC80211(priv, "leave - scanning\n");
@@ -652,7 +652,7 @@ int iwlagn_mac_config(struct ieee80211_hw *hw, u32 changed)
652 iwlagn_commit_rxon(priv, ctx); 652 iwlagn_commit_rxon(priv, ctx);
653 } 653 }
654 out: 654 out:
655 mutex_unlock(&priv->mutex); 655 mutex_unlock(&priv->shrd->mutex);
656 return ret; 656 return ret;
657} 657}
658 658
@@ -667,7 +667,7 @@ static void iwlagn_check_needed_chains(struct iwl_priv *priv,
667 struct ieee80211_sta_ht_cap *ht_cap; 667 struct ieee80211_sta_ht_cap *ht_cap;
668 bool need_multiple; 668 bool need_multiple;
669 669
670 lockdep_assert_held(&priv->mutex); 670 lockdep_assert_held(&priv->shrd->mutex);
671 671
672 switch (vif->type) { 672 switch (vif->type) {
673 case NL80211_IFTYPE_STATION: 673 case NL80211_IFTYPE_STATION:
@@ -792,17 +792,17 @@ void iwlagn_bss_info_changed(struct ieee80211_hw *hw,
792 int ret; 792 int ret;
793 bool force = false; 793 bool force = false;
794 794
795 mutex_lock(&priv->mutex); 795 mutex_lock(&priv->shrd->mutex);
796 796
797 if (unlikely(!iwl_is_ready(priv))) { 797 if (unlikely(!iwl_is_ready(priv))) {
798 IWL_DEBUG_MAC80211(priv, "leave - not ready\n"); 798 IWL_DEBUG_MAC80211(priv, "leave - not ready\n");
799 mutex_unlock(&priv->mutex); 799 mutex_unlock(&priv->shrd->mutex);
800 return; 800 return;
801 } 801 }
802 802
803 if (unlikely(!ctx->vif)) { 803 if (unlikely(!ctx->vif)) {
804 IWL_DEBUG_MAC80211(priv, "leave - vif is NULL\n"); 804 IWL_DEBUG_MAC80211(priv, "leave - vif is NULL\n");
805 mutex_unlock(&priv->mutex); 805 mutex_unlock(&priv->shrd->mutex);
806 return; 806 return;
807 } 807 }
808 808
@@ -913,7 +913,7 @@ void iwlagn_bss_info_changed(struct ieee80211_hw *hw,
913 IWL_ERR(priv, "Error sending IBSS beacon\n"); 913 IWL_ERR(priv, "Error sending IBSS beacon\n");
914 } 914 }
915 915
916 mutex_unlock(&priv->mutex); 916 mutex_unlock(&priv->shrd->mutex);
917} 917}
918 918
919void iwlagn_post_scan(struct iwl_priv *priv) 919void iwlagn_post_scan(struct iwl_priv *priv)