Skip to content
Snippets Groups Projects
Commit b954cfdf authored by Felix Fietkau's avatar Felix Fietkau
Browse files

ath9k: fix cabq depth accounting


Signed-off-by: default avatarFelix Fietkau <nbd@openwrt.org>

SVN-Revision: 36977
parent 7cbbd24d
No related branches found
No related tags found
No related merge requests found
......@@ -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;
+ }
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment