|
@@ -1145,6 +1145,7 @@ int iwl_tx_queue_reclaim(struct iwl_priv *priv, int txq_id, int index)
|
|
struct iwl_queue *q = &txq->q;
|
|
struct iwl_queue *q = &txq->q;
|
|
struct iwl_tx_info *tx_info;
|
|
struct iwl_tx_info *tx_info;
|
|
int nfreed = 0;
|
|
int nfreed = 0;
|
|
|
|
+ struct ieee80211_hdr *hdr;
|
|
|
|
|
|
if ((index >= q->n_bd) || (iwl_queue_used(q, index) == 0)) {
|
|
if ((index >= q->n_bd) || (iwl_queue_used(q, index) == 0)) {
|
|
IWL_ERR(priv, "Read index for DMA queue txq id (%d), index %d, "
|
|
IWL_ERR(priv, "Read index for DMA queue txq id (%d), index %d, "
|
|
@@ -1159,13 +1160,16 @@ int iwl_tx_queue_reclaim(struct iwl_priv *priv, int txq_id, int index)
|
|
|
|
|
|
tx_info = &txq->txb[txq->q.read_ptr];
|
|
tx_info = &txq->txb[txq->q.read_ptr];
|
|
iwl_tx_status(priv, tx_info->skb[0]);
|
|
iwl_tx_status(priv, tx_info->skb[0]);
|
|
|
|
+
|
|
|
|
+ hdr = (struct ieee80211_hdr *)tx_info->skb[0]->data;
|
|
|
|
+ if (hdr && ieee80211_is_data_qos(hdr->frame_control))
|
|
|
|
+ nfreed++;
|
|
tx_info->skb[0] = NULL;
|
|
tx_info->skb[0] = NULL;
|
|
|
|
|
|
if (priv->cfg->ops->lib->txq_inval_byte_cnt_tbl)
|
|
if (priv->cfg->ops->lib->txq_inval_byte_cnt_tbl)
|
|
priv->cfg->ops->lib->txq_inval_byte_cnt_tbl(priv, txq);
|
|
priv->cfg->ops->lib->txq_inval_byte_cnt_tbl(priv, txq);
|
|
|
|
|
|
priv->cfg->ops->lib->txq_free_tfd(priv, txq);
|
|
priv->cfg->ops->lib->txq_free_tfd(priv, txq);
|
|
- nfreed++;
|
|
|
|
}
|
|
}
|
|
return nfreed;
|
|
return nfreed;
|
|
}
|
|
}
|