diff options
Diffstat (limited to 'drivers/net/wireless/iwlwifi/dvm/mac80211.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/dvm/mac80211.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/drivers/net/wireless/iwlwifi/dvm/mac80211.c b/drivers/net/wireless/iwlwifi/dvm/mac80211.c index 3163e0f38c25..0353e1c0670d 100644 --- a/drivers/net/wireless/iwlwifi/dvm/mac80211.c +++ b/drivers/net/wireless/iwlwifi/dvm/mac80211.c | |||
@@ -206,7 +206,8 @@ int iwlagn_mac_setup_register(struct iwl_priv *priv, | |||
206 | 206 | ||
207 | #ifdef CONFIG_PM_SLEEP | 207 | #ifdef CONFIG_PM_SLEEP |
208 | if (priv->fw->img[IWL_UCODE_WOWLAN].sec[0].len && | 208 | if (priv->fw->img[IWL_UCODE_WOWLAN].sec[0].len && |
209 | priv->trans->ops->wowlan_suspend && | 209 | priv->trans->ops->d3_suspend && |
210 | priv->trans->ops->d3_resume && | ||
210 | device_can_wakeup(priv->trans->dev)) { | 211 | device_can_wakeup(priv->trans->dev)) { |
211 | hw->wiphy->wowlan.flags = WIPHY_WOWLAN_MAGIC_PKT | | 212 | hw->wiphy->wowlan.flags = WIPHY_WOWLAN_MAGIC_PKT | |
212 | WIPHY_WOWLAN_DISCONNECT | | 213 | WIPHY_WOWLAN_DISCONNECT | |
@@ -426,7 +427,7 @@ static int iwlagn_mac_suspend(struct ieee80211_hw *hw, | |||
426 | if (ret) | 427 | if (ret) |
427 | goto error; | 428 | goto error; |
428 | 429 | ||
429 | iwl_trans_wowlan_suspend(priv->trans); | 430 | iwl_trans_d3_suspend(priv->trans); |
430 | 431 | ||
431 | goto out; | 432 | goto out; |
432 | 433 | ||
@@ -459,11 +460,11 @@ static int iwlagn_mac_resume(struct ieee80211_hw *hw) | |||
459 | base = priv->device_pointers.error_event_table; | 460 | base = priv->device_pointers.error_event_table; |
460 | if (iwlagn_hw_valid_rtc_data_addr(base)) { | 461 | if (iwlagn_hw_valid_rtc_data_addr(base)) { |
461 | spin_lock_irqsave(&priv->trans->reg_lock, flags); | 462 | spin_lock_irqsave(&priv->trans->reg_lock, flags); |
462 | ret = iwl_grab_nic_access_silent(priv->trans); | 463 | if (iwl_trans_grab_nic_access(priv->trans, true)) { |
463 | if (likely(ret == 0)) { | ||
464 | iwl_write32(priv->trans, HBUS_TARG_MEM_RADDR, base); | 464 | iwl_write32(priv->trans, HBUS_TARG_MEM_RADDR, base); |
465 | status = iwl_read32(priv->trans, HBUS_TARG_MEM_RDAT); | 465 | status = iwl_read32(priv->trans, HBUS_TARG_MEM_RDAT); |
466 | iwl_release_nic_access(priv->trans); | 466 | iwl_trans_release_nic_access(priv->trans); |
467 | ret = 0; | ||
467 | } | 468 | } |
468 | spin_unlock_irqrestore(&priv->trans->reg_lock, flags); | 469 | spin_unlock_irqrestore(&priv->trans->reg_lock, flags); |
469 | 470 | ||
@@ -479,7 +480,7 @@ static int iwlagn_mac_resume(struct ieee80211_hw *hw) | |||
479 | } | 480 | } |
480 | 481 | ||
481 | if (priv->wowlan_sram) | 482 | if (priv->wowlan_sram) |
482 | _iwl_read_targ_mem_dwords( | 483 | iwl_trans_read_mem( |
483 | priv->trans, 0x800000, | 484 | priv->trans, 0x800000, |
484 | priv->wowlan_sram, | 485 | priv->wowlan_sram, |
485 | img->sec[IWL_UCODE_SECTION_DATA].len / 4); | 486 | img->sec[IWL_UCODE_SECTION_DATA].len / 4); |
@@ -520,9 +521,6 @@ static void iwlagn_mac_tx(struct ieee80211_hw *hw, | |||
520 | { | 521 | { |
521 | struct iwl_priv *priv = IWL_MAC80211_GET_DVM(hw); | 522 | struct iwl_priv *priv = IWL_MAC80211_GET_DVM(hw); |
522 | 523 | ||
523 | IWL_DEBUG_TX(priv, "dev->xmit(%d bytes) at rate 0x%02x\n", skb->len, | ||
524 | ieee80211_get_tx_rate(hw, IEEE80211_SKB_CB(skb))->bitrate); | ||
525 | |||
526 | if (iwlagn_tx_skb(priv, control->sta, skb)) | 524 | if (iwlagn_tx_skb(priv, control->sta, skb)) |
527 | ieee80211_free_txskb(hw, skb); | 525 | ieee80211_free_txskb(hw, skb); |
528 | } | 526 | } |
@@ -679,7 +677,9 @@ static int iwlagn_mac_ampdu_action(struct ieee80211_hw *hw, | |||
679 | IWL_DEBUG_HT(priv, "start Tx\n"); | 677 | IWL_DEBUG_HT(priv, "start Tx\n"); |
680 | ret = iwlagn_tx_agg_start(priv, vif, sta, tid, ssn); | 678 | ret = iwlagn_tx_agg_start(priv, vif, sta, tid, ssn); |
681 | break; | 679 | break; |
682 | case IEEE80211_AMPDU_TX_STOP: | 680 | case IEEE80211_AMPDU_TX_STOP_CONT: |
681 | case IEEE80211_AMPDU_TX_STOP_FLUSH: | ||
682 | case IEEE80211_AMPDU_TX_STOP_FLUSH_CONT: | ||
683 | IWL_DEBUG_HT(priv, "stop Tx\n"); | 683 | IWL_DEBUG_HT(priv, "stop Tx\n"); |
684 | ret = iwlagn_tx_agg_stop(priv, vif, sta, tid); | 684 | ret = iwlagn_tx_agg_stop(priv, vif, sta, tid); |
685 | if ((ret == 0) && (priv->agg_tids_count > 0)) { | 685 | if ((ret == 0) && (priv->agg_tids_count > 0)) { |