diff options
author | Emmanuel Grumbach <emmanuel.grumbach@intel.com> | 2011-07-10 03:47:01 -0400 |
---|---|---|
committer | Wey-Yi Guy <wey-yi.w.guy@intel.com> | 2011-07-21 10:29:12 -0400 |
commit | 48d42c426947d8ffba0caa3cf9c58be6903302e0 (patch) | |
tree | 7ae7a2e9956329df0419c89fa7f63ad53fedcc81 /drivers/net/wireless/iwlwifi/iwl-trans.c | |
parent | 2e27799621f9b6dc69d9fac5e365cb867eac539c (diff) |
iwlagn: SCD configuration for AMPDU moves to transport layer
All the configurations of the HW for AMPDU are now in the transport layer.
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-trans.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-trans.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-trans.c b/drivers/net/wireless/iwlwifi/iwl-trans.c index 639b4692e459..bddc12d27d06 100644 --- a/drivers/net/wireless/iwlwifi/iwl-trans.c +++ b/drivers/net/wireless/iwlwifi/iwl-trans.c | |||
@@ -686,7 +686,7 @@ static void iwl_trans_tx_start(struct iwl_priv *priv) | |||
686 | else | 686 | else |
687 | queue_to_fifo = iwlagn_default_queue_to_tx_fifo; | 687 | queue_to_fifo = iwlagn_default_queue_to_tx_fifo; |
688 | 688 | ||
689 | iwlagn_set_wr_ptrs(priv, priv->cmd_queue, 0); | 689 | iwl_trans_set_wr_ptrs(priv, priv->cmd_queue, 0); |
690 | 690 | ||
691 | /* make sure all queue are not stopped */ | 691 | /* make sure all queue are not stopped */ |
692 | memset(&priv->queue_stopped[0], 0, sizeof(priv->queue_stopped)); | 692 | memset(&priv->queue_stopped[0], 0, sizeof(priv->queue_stopped)); |
@@ -712,7 +712,7 @@ static void iwl_trans_tx_start(struct iwl_priv *priv) | |||
712 | 712 | ||
713 | if (ac != IWL_AC_UNSET) | 713 | if (ac != IWL_AC_UNSET) |
714 | iwl_set_swq_id(&priv->txq[i], ac, i); | 714 | iwl_set_swq_id(&priv->txq[i], ac, i); |
715 | iwlagn_tx_queue_set_status(priv, &priv->txq[i], fifo, 0); | 715 | iwl_trans_tx_queue_set_status(priv, &priv->txq[i], fifo, 0); |
716 | } | 716 | } |
717 | 717 | ||
718 | spin_unlock_irqrestore(&priv->lock, flags); | 718 | spin_unlock_irqrestore(&priv->lock, flags); |
@@ -919,7 +919,7 @@ static int iwl_trans_tx(struct iwl_priv *priv, struct sk_buff *skb, | |||
919 | 919 | ||
920 | /* Set up entry for this TFD in Tx byte-count array */ | 920 | /* Set up entry for this TFD in Tx byte-count array */ |
921 | if (ampdu) | 921 | if (ampdu) |
922 | iwlagn_txq_update_byte_cnt_tbl(priv, txq, | 922 | iwl_trans_txq_update_byte_cnt_tbl(priv, txq, |
923 | le16_to_cpu(tx_cmd->len)); | 923 | le16_to_cpu(tx_cmd->len)); |
924 | 924 | ||
925 | dma_sync_single_for_device(priv->bus.dev, txcmd_phys, firstlen, | 925 | dma_sync_single_for_device(priv->bus.dev, txcmd_phys, firstlen, |
@@ -986,6 +986,10 @@ static const struct iwl_trans_ops trans_ops = { | |||
986 | 986 | ||
987 | .get_tx_cmd = iwl_trans_get_tx_cmd, | 987 | .get_tx_cmd = iwl_trans_get_tx_cmd, |
988 | .tx = iwl_trans_tx, | 988 | .tx = iwl_trans_tx, |
989 | |||
990 | .txq_agg_disable = iwl_trans_txq_agg_disable, | ||
991 | .txq_agg_setup = iwl_trans_txq_agg_setup, | ||
992 | |||
989 | .kick_nic = iwl_trans_kick_nic, | 993 | .kick_nic = iwl_trans_kick_nic, |
990 | 994 | ||
991 | .sync_irq = iwl_trans_sync_irq, | 995 | .sync_irq = iwl_trans_sync_irq, |