Linux wireless drivers development
 help / color / mirror / Atom feed
* [PATCH 3.12] ath9k: do not link bf_next across multiple A-MPDUs
@ 2013-09-14 15:02 Felix Fietkau
  0 siblings, 0 replies; only message in thread
From: Felix Fietkau @ 2013-09-14 15:02 UTC (permalink / raw)
  To: linux-wireless; +Cc: linville

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

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
---
 drivers/net/wireless/ath/ath9k/xmit.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/drivers/net/wireless/ath/ath9k/xmit.c b/drivers/net/wireless/ath/ath9k/xmit.c
index a749e0f..5849960 100644
--- a/drivers/net/wireless/ath/ath9k/xmit.c
+++ b/drivers/net/wireless/ath/ath9k/xmit.c
@@ -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;
 		}
 	}
 }
-- 
1.8.0.2


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2013-09-14 15:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-14 15:02 [PATCH 3.12] ath9k: do not link bf_next across multiple A-MPDUs Felix Fietkau

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox