aboutsummaryrefslogtreecommitdiffstats
path: root/package/madwifi/patches/301-tx_locking.patch
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2007-10-24 04:35:02 +0000
committerFelix Fietkau <nbd@openwrt.org>2007-10-24 04:35:02 +0000
commit2bbcb1d2dcd3cec58b316cd17046ff53cae6fce0 (patch)
tree43d8c81e9ccd5dc6bf22c888d20cbf172440f9d5 /package/madwifi/patches/301-tx_locking.patch
parente862674aa8cc63a3ed406ebf6a30f02e5dc9d4e8 (diff)
downloadmaster-187ad058-2bbcb1d2dcd3cec58b316cd17046ff53cae6fce0.tar.gz
master-187ad058-2bbcb1d2dcd3cec58b316cd17046ff53cae6fce0.tar.bz2
master-187ad058-2bbcb1d2dcd3cec58b316cd17046ff53cae6fce0.zip
upgrade madwifi to r2756
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9422 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/madwifi/patches/301-tx_locking.patch')
-rw-r--r--package/madwifi/patches/301-tx_locking.patch26
1 files changed, 13 insertions, 13 deletions
diff --git a/package/madwifi/patches/301-tx_locking.patch b/package/madwifi/patches/301-tx_locking.patch
index 1ca7e8261d..3502e48ce7 100644
--- a/package/madwifi/patches/301-tx_locking.patch
+++ b/package/madwifi/patches/301-tx_locking.patch
@@ -1,8 +1,8 @@
-Index: madwifi-ng-r2568-20070710/ath/if_ath.c
+Index: madwifi-ng-r2756-20071018/ath/if_ath.c
===================================================================
---- madwifi-ng-r2568-20070710.orig/ath/if_ath.c 2007-10-20 20:52:09.000000000 +0200
-+++ madwifi-ng-r2568-20070710/ath/if_ath.c 2007-10-20 20:52:39.000000000 +0200
-@@ -2561,7 +2561,7 @@
+--- madwifi-ng-r2756-20071018.orig/ath/if_ath.c 2007-10-24 06:20:20.749871745 +0200
++++ madwifi-ng-r2756-20071018/ath/if_ath.c 2007-10-24 06:20:20.997885880 +0200
+@@ -2693,7 +2693,7 @@
/* NB: use this lock to protect an->an_tx_ffbuf (and txq->axq_stageq)
* in athff_can_aggregate() call too.
*/
@@ -11,7 +11,7 @@ Index: madwifi-ng-r2568-20070710/ath/if_ath.c
if (athff_can_aggregate(sc, eh, an, skb, vap->iv_fragthreshold, &ff_flush)) {
if (an->an_tx_ffbuf[skb->priority]) { /* i.e., frame on the staging queue */
bf = an->an_tx_ffbuf[skb->priority];
-@@ -2569,6 +2569,7 @@
+@@ -2701,6 +2701,7 @@
/* get (and remove) the frame from staging queue */
TAILQ_REMOVE(&txq->axq_stageq, bf, bf_stagelist);
an->an_tx_ffbuf[skb->priority] = NULL;
@@ -19,7 +19,7 @@ Index: madwifi-ng-r2568-20070710/ath/if_ath.c
/*
* chain skbs and add FF magic
-@@ -2591,7 +2592,7 @@
+@@ -2723,7 +2724,7 @@
*/
ATH_HARDSTART_GET_TX_BUF_WITH_LOCK;
if (bf == NULL) {
@@ -28,7 +28,7 @@ Index: madwifi-ng-r2568-20070710/ath/if_ath.c
goto hardstart_fail;
}
DPRINTF(sc, ATH_DEBUG_XMIT | ATH_DEBUG_FF,
-@@ -2603,8 +2604,7 @@
+@@ -2735,8 +2736,7 @@
an->an_tx_ffbuf[skb->priority] = bf;
TAILQ_INSERT_HEAD(&txq->axq_stageq, bf, bf_stagelist);
@@ -38,7 +38,7 @@ Index: madwifi-ng-r2568-20070710/ath/if_ath.c
return NETDEV_TX_OK;
}
-@@ -2617,7 +2617,7 @@
+@@ -2749,7 +2749,7 @@
an->an_tx_ffbuf[skb->priority] = NULL;
/* NB: ath_tx_start -> ath_tx_txqaddbuf uses ATH_TXQ_LOCK too */
@@ -47,7 +47,7 @@ Index: madwifi-ng-r2568-20070710/ath/if_ath.c
/* encap and xmit */
bf_ff->bf_skb = ieee80211_encap(ni, bf_ff->bf_skb, &framecnt);
-@@ -2666,12 +2666,12 @@
+@@ -2798,12 +2798,12 @@
ATH_HARDSTART_GET_TX_BUF_WITH_LOCK;
if (bf == NULL) {
@@ -62,11 +62,11 @@ Index: madwifi-ng-r2568-20070710/ath/if_ath.c
ff_flush_done:
ff_bypass:
-Index: madwifi-ng-r2568-20070710/ath/if_athvar.h
+Index: madwifi-ng-r2756-20071018/ath/if_athvar.h
===================================================================
---- madwifi-ng-r2568-20070710.orig/ath/if_athvar.h 2007-10-20 20:52:09.000000000 +0200
-+++ madwifi-ng-r2568-20070710/ath/if_athvar.h 2007-10-20 20:52:37.000000000 +0200
-@@ -497,6 +497,8 @@
+--- madwifi-ng-r2756-20071018.orig/ath/if_athvar.h 2007-10-24 06:20:20.749871745 +0200
++++ madwifi-ng-r2756-20071018/ath/if_athvar.h 2007-10-24 06:20:21.001886105 +0200
+@@ -504,6 +504,8 @@
#define ATH_TXQ_INTR_PERIOD 5 /* axq_intrcnt period for intr gen */
#define ATH_TXQ_LOCK_INIT(_tq) spin_lock_init(&(_tq)->axq_lock)
#define ATH_TXQ_LOCK_DESTROY(_tq)