tx: fix AGGR burst length estimation

Use tx_info reference of last dequeued frame instead of the previous one
to compute 802.11 aggregate burst length

Signed-off-by: Lorenzo Bianconi <[email protected]>
This commit is contained in:
Lorenzo Bianconi
2017-06-16 15:27:34 +02:00
committed by Felix Fietkau
parent e287efe811
commit 70d225123f
+1 -1
View File
@@ -338,6 +338,7 @@ mt76_txq_send_burst(struct mt76_dev *dev, struct mt76_queue *hwq,
break;
}
info = IEEE80211_SKB_CB(skb);
cur_ampdu = info->flags & IEEE80211_TX_CTL_AMPDU;
if (ampdu != cur_ampdu ||
@@ -346,7 +347,6 @@ mt76_txq_send_burst(struct mt76_dev *dev, struct mt76_queue *hwq,
break;
}
info = IEEE80211_SKB_CB(skb);
info->control.rates[0] = tx_rate;
if (cur_ampdu)