aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-agn-tx.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn-tx.c b/drivers/net/wireless/iwlwifi/iwl-agn-tx.c
index a709d05c5868..2dd7d54a796f 100644
--- a/drivers/net/wireless/iwlwifi/iwl-agn-tx.c
+++ b/drivers/net/wireless/iwlwifi/iwl-agn-tx.c
@@ -1224,12 +1224,16 @@ int iwlagn_tx_queue_reclaim(struct iwl_priv *priv, int txq_id, int index)
1224 q->read_ptr = iwl_queue_inc_wrap(q->read_ptr, q->n_bd)) { 1224 q->read_ptr = iwl_queue_inc_wrap(q->read_ptr, q->n_bd)) {
1225 1225
1226 tx_info = &txq->txb[txq->q.read_ptr]; 1226 tx_info = &txq->txb[txq->q.read_ptr];
1227 iwlagn_tx_status(priv, tx_info, 1227
1228 txq_id >= IWLAGN_FIRST_AMPDU_QUEUE); 1228 if (WARN_ON_ONCE(tx_info->skb == NULL))
1229 continue;
1229 1230
1230 hdr = (struct ieee80211_hdr *)tx_info->skb->data; 1231 hdr = (struct ieee80211_hdr *)tx_info->skb->data;
1231 if (hdr && ieee80211_is_data_qos(hdr->frame_control)) 1232 if (ieee80211_is_data_qos(hdr->frame_control))
1232 nfreed++; 1233 nfreed++;
1234
1235 iwlagn_tx_status(priv, tx_info,
1236 txq_id >= IWLAGN_FIRST_AMPDU_QUEUE);
1233 tx_info->skb = NULL; 1237 tx_info->skb = NULL;
1234 1238
1235 if (priv->cfg->ops->lib->txq_inval_byte_cnt_tbl) 1239 if (priv->cfg->ops->lib->txq_inval_byte_cnt_tbl)