summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath5k/base.h
diff options
context:
space:
mode:
authorBruno Randolf <br1@einfach.org>2010-09-17 11:36:56 +0900
committerJohn W. Linville <linville@tuxdriver.com>2010-09-21 11:05:12 -0400
commit4edd761f4075b03be5932682a2f7b9368dc9e536 (patch)
tree2920eb3213e722a68e560eed472c24542812ac77 /drivers/net/wireless/ath/ath5k/base.h
parent1440401e7051d4cf66084a7c36125834901bb90d (diff)
downloadtalos-obmc-linux-4edd761f4075b03be5932682a2f7b9368dc9e536.tar.gz
talos-obmc-linux-4edd761f4075b03be5932682a2f7b9368dc9e536.zip
ath5k: Add watchdog for stuck TX queues
Since we do not know any better solution to the problem that TX queues can get stuck, this adds a timer-based watchdog, which will check for stuck queues and reset the hardware if necessary. Ported from ath9k commit 164ace38536849966ffa377b1b1132993a5a375d. Signed-off-by: Bruno Randolf <br1@einfach.org> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath5k/base.h')
-rw-r--r--drivers/net/wireless/ath/ath5k/base.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath5k/base.h b/drivers/net/wireless/ath/ath5k/base.h
index 5e2366d3db09..d8e2674aec71 100644
--- a/drivers/net/wireless/ath/ath5k/base.h
+++ b/drivers/net/wireless/ath/ath5k/base.h
@@ -87,6 +87,7 @@ struct ath5k_txq {
spinlock_t lock; /* lock on q and link */
bool setup;
int txq_len; /* number of queued buffers */
+ bool txq_poll_mark;
};
#define ATH5K_LED_MAX_NAME_LEN 31
@@ -233,6 +234,8 @@ struct ath5k_softc {
struct ath5k_ani_state ani_state;
struct tasklet_struct ani_tasklet; /* ANI calibration */
+
+ struct delayed_work tx_complete_work;
};
#define ath5k_hw_hasbssidmask(_ah) \
OpenPOWER on IntegriCloud