From 70d225123fa106667fb96265fe62162339e36ddc Mon Sep 17 00:00:00 2001 From: Lorenzo Bianconi Date: Thu, 15 Jun 2017 23:45:53 +0200 Subject: [PATCH] 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 --- tx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tx.c b/tx.c index 45bf0b17..812a5272 100644 --- a/tx.c +++ b/tx.c @@ -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)