diff options
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-5000.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-5000.c | 8 |
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"); |