mirror of https://github.com/hak5/openwrt-owl.git
parent
3e112cbedb
commit
7da3a7a2b4
|
@ -9,18 +9,20 @@ diff -urN madwifi-ng-refcount-r2313-20070505.old/ath/if_ath.c madwifi-ng-refcoun
|
||||||
}
|
}
|
||||||
if (status & HAL_INT_BMISS) {
|
if (status & HAL_INT_BMISS) {
|
||||||
sc->sc_stats.ast_bmiss++;
|
sc->sc_stats.ast_bmiss++;
|
||||||
@@ -2264,6 +2265,15 @@
|
@@ -2264,6 +2265,17 @@
|
||||||
txq->axq_link = &lastds->ds_link;
|
txq->axq_link = &lastds->ds_link;
|
||||||
ath_hal_txstart(ah, txq->axq_qnum);
|
ath_hal_txstart(ah, txq->axq_qnum);
|
||||||
sc->sc_dev->trans_start = jiffies;
|
sc->sc_dev->trans_start = jiffies;
|
||||||
+ if (sc->sc_tx_start) {
|
+ if ((sc->sc_opmode == HAL_M_IBSS) || (sc->sc_opmode == HAL_M_HOSTAP)) {
|
||||||
+ if (jiffies > sc->sc_tx_start + 2 * HZ) {
|
+ if (sc->sc_tx_start) {
|
||||||
+ printk("%s: Tx queue stuck. Resetting hardware...\n", sc->sc_dev->name);
|
+ if (jiffies > sc->sc_tx_start + 2 * HZ) {
|
||||||
+ ath_reset(sc->sc_dev);
|
+ printk("%s: Tx queue stuck. Resetting hardware...\n", sc->sc_dev->name);
|
||||||
+ sc->sc_tx_start = 0;
|
+ 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);
|
ATH_TXQ_UNLOCK(txq);
|
||||||
|
|
Loading…
Reference in New Issue