[source] ath9k: fix regression in multicast buffering fix

LEDE Commits lede-commits at lists.infradead.org
Tue Jul 25 10:48:29 PDT 2017


nbd pushed a commit to source.git, branch master:
https://git.lede-project.org/ea72f22bdfa0711228a2c2f5289697c6e1ea0ea9

commit ea72f22bdfa0711228a2c2f5289697c6e1ea0ea9
Author: Felix Fietkau <nbd at nbd.name>
AuthorDate: Tue Jul 25 19:47:48 2017 +0200

    ath9k: fix regression in multicast buffering fix
    
    Update the more data flag on the last frame, but tx from the first frame
    on.
    
    Signed-off-by: Felix Fietkau <nbd at nbd.name>
---
 .../331-ath9k-fix-more-data-flag-for-buffered-multicast-pack.patch    | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/package/kernel/mac80211/patches/331-ath9k-fix-more-data-flag-for-buffered-multicast-pack.patch b/package/kernel/mac80211/patches/331-ath9k-fix-more-data-flag-for-buffered-multicast-pack.patch
index d09c82c..1e0761e 100644
--- a/package/kernel/mac80211/patches/331-ath9k-fix-more-data-flag-for-buffered-multicast-pack.patch
+++ b/package/kernel/mac80211/patches/331-ath9k-fix-more-data-flag-for-buffered-multicast-pack.patch
@@ -19,7 +19,7 @@ Signed-off-by: Felix Fietkau <nbd at nbd.name>
  	struct ath_buf *bf_tail = NULL;
  	struct ath_buf *bf;
  	LIST_HEAD(bf_q);
-@@ -2495,14 +2494,8 @@ void ath_tx_cabq(struct ieee80211_hw *hw
+@@ -2495,15 +2494,10 @@ void ath_tx_cabq(struct ieee80211_hw *hw
  	if (list_empty(&bf_q))
  		return;
  
@@ -34,5 +34,7 @@ Signed-off-by: Felix Fietkau <nbd at nbd.name>
 +	bf = list_last_entry(&bf_q, struct ath_buf, list);
 +	ath9k_set_moredata(sc, bf, false);
  
++	bf = list_first_entry(&bf_q, struct ath_buf, list);
  	ath_txq_lock(sc, txctl.txq);
  	ath_tx_fill_desc(sc, bf, txctl.txq, 0);
+ 	ath_tx_txqaddbuf(sc, txctl.txq, &bf_q, false);



More information about the lede-commits mailing list