Skip to contentSkip to conversation

ath9k: do not link bf_next across multiple A-MPDUs

PATCH New Felix Fietkau 1 participant 1 message Sep 14, 2013 Qualcomm Atheros ATH9K wireless driver

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ath9k: do not link bf_next across multiple A-MPDUs

This might trip up tx completion processing, although the condition that triggers this should not (yet) occur in practice.

---
 drivers/net/wireless/ath/ath9k/xmit.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/net/wireless/ath/ath9k/xmit.c +3 -1
index a749e0f..5849960 100644
@@ -1951,7 +1951,9 @@ static void ath_tx_txqaddbuf(struct ath_softc *sc, struct ath_txq *txq,
 			if (bf_is_ampdu_not_probing(bf))
 				txq->axq_ampdu_depth++;
 
-			bf = bf->bf_lastbf->bf_next;
+			bf_last = bf->bf_lastbf;
+			bf = bf_last->bf_next;
+			bf_last->bf_next = NULL;
 		}
 	}
 }
Signature · 1 line
1.8.0.2