aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-4965.c
diff options
context:
space:
mode:
authorTomas Winkler <tomas.winkler@intel.com>2008-05-29 04:35:12 -0400
committerJohn W. Linville <linville@tuxdriver.com>2008-06-03 15:00:24 -0400
commit17b889290a184b52ee394c31dd5a52b8c1b3456d (patch)
tree2e8889673a9f26b1a1afb2291ede6032eeadd1bb /drivers/net/wireless/iwlwifi/iwl-4965.c
parenta5e8b5056ea8762e67c9fa980c8db48009ed2a67 (diff)
iwlwifi: move tx reclaim flow into iwl-tx
This patch 1. moves TX reclaim flow into iwl-tx 2. separates command queue and tx queue reclaim flow Signed-off-by: Tomas Winkler <tomas.winkler@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-4965.c')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-4965.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-4965.c b/drivers/net/wireless/iwlwifi/iwl-4965.c
index 98f3df0210d7..1d95e8c65276 100644
--- a/drivers/net/wireless/iwlwifi/iwl-4965.c
+++ b/drivers/net/wireless/iwlwifi/iwl-4965.c
@@ -3132,7 +3132,7 @@ static void iwl4965_rx_reply_compressed_ba(struct iwl_priv *priv,
3132 /* calculate mac80211 ampdu sw queue to wake */ 3132 /* calculate mac80211 ampdu sw queue to wake */
3133 int ampdu_q = 3133 int ampdu_q =
3134 scd_flow - IWL_BACK_QUEUE_FIRST_ID + priv->hw->queues; 3134 scd_flow - IWL_BACK_QUEUE_FIRST_ID + priv->hw->queues;
3135 int freed = iwl4965_tx_queue_reclaim(priv, scd_flow, index); 3135 int freed = iwl_tx_queue_reclaim(priv, scd_flow, index);
3136 priv->stations[ba_resp->sta_id]. 3136 priv->stations[ba_resp->sta_id].
3137 tid[ba_resp->tid].tfds_in_queue -= freed; 3137 tid[ba_resp->tid].tfds_in_queue -= freed;
3138 if (iwl_queue_space(&txq->q) > txq->q.low_mark && 3138 if (iwl_queue_space(&txq->q) > txq->q.low_mark &&
@@ -3673,7 +3673,7 @@ static void iwl4965_rx_reply_tx(struct iwl_priv *priv,
3673 index = iwl_queue_dec_wrap(scd_ssn & 0xff, txq->q.n_bd); 3673 index = iwl_queue_dec_wrap(scd_ssn & 0xff, txq->q.n_bd);
3674 IWL_DEBUG_TX_REPLY("Retry scheduler reclaim scd_ssn " 3674 IWL_DEBUG_TX_REPLY("Retry scheduler reclaim scd_ssn "
3675 "%d index %d\n", scd_ssn , index); 3675 "%d index %d\n", scd_ssn , index);
3676 freed = iwl4965_tx_queue_reclaim(priv, txq_id, index); 3676 freed = iwl_tx_queue_reclaim(priv, txq_id, index);
3677 priv->stations[sta_id].tid[tid].tfds_in_queue -= freed; 3677 priv->stations[sta_id].tid[tid].tfds_in_queue -= freed;
3678 3678
3679 if (iwl_queue_space(&txq->q) > txq->q.low_mark && 3679 if (iwl_queue_space(&txq->q) > txq->q.low_mark &&
@@ -3705,7 +3705,7 @@ static void iwl4965_rx_reply_tx(struct iwl_priv *priv,
3705 IWL_DEBUG_TX_REPLY("Tx queue reclaim %d\n", index); 3705 IWL_DEBUG_TX_REPLY("Tx queue reclaim %d\n", index);
3706#ifdef CONFIG_IWL4965_HT 3706#ifdef CONFIG_IWL4965_HT
3707 if (index != -1) { 3707 if (index != -1) {
3708 int freed = iwl4965_tx_queue_reclaim(priv, txq_id, index); 3708 int freed = iwl_tx_queue_reclaim(priv, txq_id, index);
3709 if (tid != MAX_TID_COUNT) 3709 if (tid != MAX_TID_COUNT)
3710 priv->stations[sta_id].tid[tid].tfds_in_queue -= freed; 3710 priv->stations[sta_id].tid[tid].tfds_in_queue -= freed;
3711 if (iwl_queue_space(&txq->q) > txq->q.low_mark && 3711 if (iwl_queue_space(&txq->q) > txq->q.low_mark &&