diff options
author | Felix Fietkau <nbd@openwrt.org> | 2007-05-14 11:11:42 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2007-05-14 11:11:42 +0000 |
commit | 7da3a7a2b46b94d7c326ff5ba571ad739043131b (patch) | |
tree | cfd7fb0b297f043b64e16a2ccd9d24a011bde3cb /package/madwifi/patches | |
parent | 3e112cbedb2d8b14f72e6da0baa4d40be30f4597 (diff) | |
download | upstream-7da3a7a2b46b94d7c326ff5ba571ad739043131b.tar.gz upstream-7da3a7a2b46b94d7c326ff5ba571ad739043131b.tar.bz2 upstream-7da3a7a2b46b94d7c326ff5ba571ad739043131b.zip |
madwifi: enable txstop workaround for ap and ibss mode only
SVN-Revision: 7223
Diffstat (limited to 'package/madwifi/patches')
-rw-r--r-- | package/madwifi/patches/118-txstop_workaround.patch | 18 |
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 f82d46628b..e50e9a85f8 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); |