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.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn-rxon.c b/drivers/net/wireless/iwlwifi/iwl-agn-rxon.c
index 66e9a71aaac6..36909077f994 100644
--- a/drivers/net/wireless/iwlwifi/iwl-agn-rxon.c
+++ b/drivers/net/wireless/iwlwifi/iwl-agn-rxon.c
@@ -361,7 +361,7 @@ int iwlagn_set_pan_params(struct iwl_priv *priv)
361 slot0 = bcnint / 2; 361 slot0 = bcnint / 2;
362 slot1 = bcnint - slot0; 362 slot1 = bcnint - slot0;
363 363
364 if (test_bit(STATUS_SCAN_HW, &priv->shrd->status) || 364 if (test_bit(STATUS_SCAN_HW, &priv->status) ||
365 (!ctx_bss->vif->bss_conf.idle && 365 (!ctx_bss->vif->bss_conf.idle &&
366 !ctx_bss->vif->bss_conf.assoc)) { 366 !ctx_bss->vif->bss_conf.assoc)) {
367 slot0 = dtim * bcnint * 3 - IWL_MIN_SLOT_TIME; 367 slot0 = dtim * bcnint * 3 - IWL_MIN_SLOT_TIME;
@@ -377,7 +377,7 @@ int iwlagn_set_pan_params(struct iwl_priv *priv)
377 ctx_pan->beacon_int; 377 ctx_pan->beacon_int;
378 slot1 = max_t(int, DEFAULT_BEACON_INTERVAL, slot1); 378 slot1 = max_t(int, DEFAULT_BEACON_INTERVAL, slot1);
379 379
380 if (test_bit(STATUS_SCAN_HW, &priv->shrd->status)) { 380 if (test_bit(STATUS_SCAN_HW, &priv->status)) {
381 slot0 = slot1 * 3 - IWL_MIN_SLOT_TIME; 381 slot0 = slot1 * 3 - IWL_MIN_SLOT_TIME;
382 slot1 = IWL_MIN_SLOT_TIME; 382 slot1 = IWL_MIN_SLOT_TIME;
383 } 383 }
@@ -421,7 +421,7 @@ int iwlagn_commit_rxon(struct iwl_priv *priv, struct iwl_rxon_context *ctx)
421 421
422 lockdep_assert_held(&priv->mutex); 422 lockdep_assert_held(&priv->mutex);
423 423
424 if (!iwl_is_alive(priv->shrd)) 424 if (!iwl_is_alive(priv))
425 return -EBUSY; 425 return -EBUSY;
426 426
427 /* This function hardcodes a bunch of dual-mode assumptions */ 427 /* This function hardcodes a bunch of dual-mode assumptions */
@@ -457,7 +457,7 @@ int iwlagn_commit_rxon(struct iwl_priv *priv, struct iwl_rxon_context *ctx)
457 * receive commit_rxon request 457 * receive commit_rxon request
458 * abort any previous channel switch if still in process 458 * abort any previous channel switch if still in process
459 */ 459 */
460 if (test_bit(STATUS_CHANNEL_SWITCH_PENDING, &priv->shrd->status) && 460 if (test_bit(STATUS_CHANNEL_SWITCH_PENDING, &priv->status) &&
461 (priv->switch_channel != ctx->staging.channel)) { 461 (priv->switch_channel != ctx->staging.channel)) {
462 IWL_DEBUG_11H(priv, "abort channel switch on %d\n", 462 IWL_DEBUG_11H(priv, "abort channel switch on %d\n",
463 le16_to_cpu(priv->switch_channel)); 463 le16_to_cpu(priv->switch_channel));
@@ -551,12 +551,12 @@ int iwlagn_mac_config(struct ieee80211_hw *hw, u32 changed)
551 551
552 mutex_lock(&priv->mutex); 552 mutex_lock(&priv->mutex);
553 553
554 if (unlikely(test_bit(STATUS_SCANNING, &priv->shrd->status))) { 554 if (unlikely(test_bit(STATUS_SCANNING, &priv->status))) {
555 IWL_DEBUG_MAC80211(priv, "leave - scanning\n"); 555 IWL_DEBUG_MAC80211(priv, "leave - scanning\n");
556 goto out; 556 goto out;
557 } 557 }
558 558
559 if (!iwl_is_ready(priv->shrd)) { 559 if (!iwl_is_ready(priv)) {
560 IWL_DEBUG_MAC80211(priv, "leave - not ready\n"); 560 IWL_DEBUG_MAC80211(priv, "leave - not ready\n");
561 goto out; 561 goto out;
562 } 562 }
@@ -794,7 +794,7 @@ void iwlagn_bss_info_changed(struct ieee80211_hw *hw,
794 794
795 mutex_lock(&priv->mutex); 795 mutex_lock(&priv->mutex);
796 796
797 if (unlikely(!iwl_is_ready(priv->shrd))) { 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->mutex);
800 return; 800 return;