From 3ec0fca26a460b06f25ab1816fd44d3bb63b66a0 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Thu, 20 Jun 2013 13:10:31 +0000 Subject: [PATCH 1/1] ath9k: fix cabq depth accounting Signed-off-by: Felix Fietkau SVN-Revision: 36977 --- .../mac80211/patches/300-pending_work.patch | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/package/mac80211/patches/300-pending_work.patch b/package/mac80211/patches/300-pending_work.patch index 1f6f95e12b..8a5fa6e502 100644 --- a/package/mac80211/patches/300-pending_work.patch +++ b/package/mac80211/patches/300-pending_work.patch @@ -281,3 +281,22 @@ */ struct sta_ampdu_mlme { struct mutex mtx; +--- a/drivers/net/wireless/ath/ath9k/xmit.c ++++ b/drivers/net/wireless/ath/ath9k/xmit.c +@@ -1778,9 +1778,13 @@ static void ath_tx_txqaddbuf(struct ath_ + } + + if (!internal) { +- txq->axq_depth++; +- if (bf_is_ampdu_not_probing(bf)) +- txq->axq_ampdu_depth++; ++ while (bf) { ++ txq->axq_depth++; ++ if (bf_is_ampdu_not_probing(bf)) ++ txq->axq_ampdu_depth++; ++ ++ bf = bf->bf_lastbf->bf_next; ++ } + } + } + -- 2.30.2