|
@@ -1224,12 +1224,16 @@ int iwlagn_tx_queue_reclaim(struct iwl_priv *priv, int txq_id, int index)
|
|
|
q->read_ptr = iwl_queue_inc_wrap(q->read_ptr, q->n_bd)) {
|
|
|
|
|
|
tx_info = &txq->txb[txq->q.read_ptr];
|
|
|
- iwlagn_tx_status(priv, tx_info,
|
|
|
- txq_id >= IWLAGN_FIRST_AMPDU_QUEUE);
|
|
|
+
|
|
|
+ if (WARN_ON_ONCE(tx_info->skb == NULL))
|
|
|
+ continue;
|
|
|
|
|
|
hdr = (struct ieee80211_hdr *)tx_info->skb->data;
|
|
|
- if (hdr && ieee80211_is_data_qos(hdr->frame_control))
|
|
|
+ if (ieee80211_is_data_qos(hdr->frame_control))
|
|
|
nfreed++;
|
|
|
+
|
|
|
+ iwlagn_tx_status(priv, tx_info,
|
|
|
+ txq_id >= IWLAGN_FIRST_AMPDU_QUEUE);
|
|
|
tx_info->skb = NULL;
|
|
|
|
|
|
if (priv->cfg->ops->lib->txq_inval_byte_cnt_tbl)
|