aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-5000.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2010-02-26 02:22:42 -0500
committerDavid S. Miller <davem@davemloft.net>2010-02-26 02:22:42 -0500
commit04488734806948624dabc4514f96f14cd75b9a50 (patch)
tree74f3a3c10a7177a5f86398b83ad7bf0569fe8b89 /drivers/net/wireless/iwlwifi/iwl-5000.c
parent54831a83bfe656c4c54e287c734c6b0ccaa3719b (diff)
parentc4d49794ff2838038fd9756eae39c39a5a685833 (diff)
Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-5000.c')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-5000.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-5000.c b/drivers/net/wireless/iwlwifi/iwl-5000.c
index f3d662c8cbc..2cf92a51f04 100644
--- a/drivers/net/wireless/iwlwifi/iwl-5000.c
+++ b/drivers/net/wireless/iwlwifi/iwl-5000.c
@@ -1116,7 +1116,7 @@ static void iwl5000_rx_reply_tx(struct iwl_priv *priv,
1116 scd_ssn , index, txq_id, txq->swq_id); 1116 scd_ssn , index, txq_id, txq->swq_id);
1117 1117
1118 freed = iwl_tx_queue_reclaim(priv, txq_id, index); 1118 freed = iwl_tx_queue_reclaim(priv, txq_id, index);
1119 priv->stations[sta_id].tid[tid].tfds_in_queue -= freed; 1119 iwl_free_tfds_in_queue(priv, sta_id, tid, freed);
1120 1120
1121 if (priv->mac80211_registered && 1121 if (priv->mac80211_registered &&
1122 (iwl_queue_space(&txq->q) > txq->q.low_mark) && 1122 (iwl_queue_space(&txq->q) > txq->q.low_mark) &&
@@ -1144,16 +1144,14 @@ static void iwl5000_rx_reply_tx(struct iwl_priv *priv,
1144 tx_resp->failure_frame); 1144 tx_resp->failure_frame);
1145 1145
1146 freed = iwl_tx_queue_reclaim(priv, txq_id, index); 1146 freed = iwl_tx_queue_reclaim(priv, txq_id, index);
1147 if (ieee80211_is_data_qos(tx_resp->frame_ctrl)) 1147 iwl_free_tfds_in_queue(priv, sta_id, tid, freed);
1148 priv->stations[sta_id].tid[tid].tfds_in_queue -= freed;
1149 1148
1150 if (priv->mac80211_registered && 1149 if (priv->mac80211_registered &&
1151 (iwl_queue_space(&txq->q) > txq->q.low_mark)) 1150 (iwl_queue_space(&txq->q) > txq->q.low_mark))
1152 iwl_wake_queue(priv, txq_id); 1151 iwl_wake_queue(priv, txq_id);
1153 } 1152 }
1154 1153
1155 if (ieee80211_is_data_qos(tx_resp->frame_ctrl)) 1154 iwl_txq_check_empty(priv, sta_id, tid, txq_id);
1156 iwl_txq_check_empty(priv, sta_id, tid, txq_id);
1157 1155
1158 if (iwl_check_bits(status, TX_ABORT_REQUIRED_MSK)) 1156 if (iwl_check_bits(status, TX_ABORT_REQUIRED_MSK))
1159 IWL_ERR(priv, "TODO: Implement Tx ABORT REQUIRED!!!\n"); 1157 IWL_ERR(priv, "TODO: Implement Tx ABORT REQUIRED!!!\n");