aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2011-01-09 20:35:27 +0000
committerFelix Fietkau <nbd@openwrt.org>2011-01-09 20:35:27 +0000
commit6528a58151ee3e7fb70a1df33e898aa95b8b198e (patch)
treecb98a0969684573c7abb5741666121546c2a46fb
parent56647592a42f8ab783c99d4bc671557bce2355db (diff)
downloadupstream-6528a58151ee3e7fb70a1df33e898aa95b8b198e.tar.gz
upstream-6528a58151ee3e7fb70a1df33e898aa95b8b198e.tar.bz2
upstream-6528a58151ee3e7fb70a1df33e898aa95b8b198e.zip
ath9k: add a few aggregation reliability fixes
SVN-Revision: 24949
-rw-r--r--package/mac80211/patches/530-ath9k_aggr_flush_fix.patch11
-rw-r--r--package/mac80211/patches/531-ath9k_aggr_start_fix.patch11
-rw-r--r--package/mac80211/patches/532-ath9k_aggr_baw_init.patch12
3 files changed, 34 insertions, 0 deletions
diff --git a/package/mac80211/patches/530-ath9k_aggr_flush_fix.patch b/package/mac80211/patches/530-ath9k_aggr_flush_fix.patch
new file mode 100644
index 0000000000..1407a73887
--- /dev/null
+++ b/package/mac80211/patches/530-ath9k_aggr_flush_fix.patch
@@ -0,0 +1,11 @@
+--- a/drivers/net/wireless/ath/ath9k/xmit.c
++++ b/drivers/net/wireless/ath/ath9k/xmit.c
+@@ -169,7 +169,7 @@ static void ath_tx_flush_tid(struct ath_
+ ath_tx_update_baw(sc, tid, fi->seqno);
+ ath_tx_complete_buf(sc, bf, txq, &bf_head, &ts, 0, 0);
+ } else {
+- ath_tx_send_normal(sc, txq, tid, &bf_head);
++ ath_tx_send_normal(sc, txq, NULL, &bf_head);
+ }
+ spin_lock_bh(&txq->axq_lock);
+ }
diff --git a/package/mac80211/patches/531-ath9k_aggr_start_fix.patch b/package/mac80211/patches/531-ath9k_aggr_start_fix.patch
new file mode 100644
index 0000000000..1197e5cc48
--- /dev/null
+++ b/package/mac80211/patches/531-ath9k_aggr_start_fix.patch
@@ -0,0 +1,11 @@
+--- a/drivers/net/wireless/ath/ath9k/xmit.c
++++ b/drivers/net/wireless/ath/ath9k/xmit.c
+@@ -856,7 +856,7 @@ int ath_tx_aggr_start(struct ath_softc *
+
+ txtid->state |= AGGR_ADDBA_PROGRESS;
+ txtid->paused = true;
+- *ssn = txtid->seq_start;
++ *ssn = txtid->seq_start = txtid->seq_next;
+
+ return 0;
+ }
diff --git a/package/mac80211/patches/532-ath9k_aggr_baw_init.patch b/package/mac80211/patches/532-ath9k_aggr_baw_init.patch
new file mode 100644
index 0000000000..0b9edd3347
--- /dev/null
+++ b/package/mac80211/patches/532-ath9k_aggr_baw_init.patch
@@ -0,0 +1,12 @@
+--- a/drivers/net/wireless/ath/ath9k/xmit.c
++++ b/drivers/net/wireless/ath/ath9k/xmit.c
+@@ -858,6 +858,9 @@ int ath_tx_aggr_start(struct ath_softc *
+ txtid->paused = true;
+ *ssn = txtid->seq_start = txtid->seq_next;
+
++ memset(txtid->tx_buf, 0, sizeof(txtid->tx_buf));
++ txtid->baw_head = txtid->baw_tail = 0;
++
+ return 0;
+ }
+