summaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2007-05-14 11:11:42 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2007-05-14 11:11:42 +0000
commitcef31fddde83d595938cf1d345c454436c798f60 (patch)
tree8c78c6dcd14c8cdc1d3a8510e525f923cbcb993d /package
parent5f4cd74dd6d382ce193122697fe127f7daa12a01 (diff)
madwifi: enable txstop workaround for ap and ibss mode only
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7223 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package')
-rw-r--r--package/madwifi/patches/118-txstop_workaround.patch18
1 files changed, 10 insertions, 8 deletions
diff --git a/package/madwifi/patches/118-txstop_workaround.patch b/package/madwifi/patches/118-txstop_workaround.patch
index f82d46628..e50e9a85f 100644
--- a/package/madwifi/patches/118-txstop_workaround.patch
+++ b/package/madwifi/patches/118-txstop_workaround.patch
@@ -9,18 +9,20 @@ diff -urN madwifi-ng-refcount-r2313-20070505.old/ath/if_ath.c madwifi-ng-refcoun
}
if (status & HAL_INT_BMISS) {
sc->sc_stats.ast_bmiss++;
-@@ -2264,6 +2265,15 @@
+@@ -2264,6 +2265,17 @@
txq->axq_link = &lastds->ds_link;
ath_hal_txstart(ah, txq->axq_qnum);
sc->sc_dev->trans_start = jiffies;
-+ if (sc->sc_tx_start) {
-+ if (jiffies > sc->sc_tx_start + 2 * HZ) {
-+ printk("%s: Tx queue stuck. Resetting hardware...\n", sc->sc_dev->name);
-+ ath_reset(sc->sc_dev);
-+ sc->sc_tx_start = 0;
++ if ((sc->sc_opmode == HAL_M_IBSS) || (sc->sc_opmode == HAL_M_HOSTAP)) {
++ if (sc->sc_tx_start) {
++ if (jiffies > sc->sc_tx_start + 2 * HZ) {
++ printk("%s: Tx queue stuck. Resetting hardware...\n", sc->sc_dev->name);
++ ath_reset(sc->sc_dev);
++ sc->sc_tx_start = 0;
++ }
++ } else {
++ sc->sc_tx_start = jiffies;
+ }
-+ } else {
-+ sc->sc_tx_start = jiffies;
+ }
}
ATH_TXQ_UNLOCK(txq);