diff options
author | Felix Fietkau <nbd@openwrt.org> | 2011-02-04 20:09:25 +0100 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-02-04 16:29:52 -0500 |
commit | cb8d61de2d7f074654057b2b924da1efbf625ad4 (patch) | |
tree | 345dc16e6c995b2e49da4a66f4bade6a345d4a21 /drivers/net/wireless/ath/ath9k/ath9k.h | |
parent | b1f93314bfc4d5753391616735f6b8df96db901d (diff) | |
download | kernel_samsung_smdk4412-cb8d61de2d7f074654057b2b924da1efbf625ad4.zip kernel_samsung_smdk4412-cb8d61de2d7f074654057b2b924da1efbf625ad4.tar.gz kernel_samsung_smdk4412-cb8d61de2d7f074654057b2b924da1efbf625ad4.tar.bz2 |
ath9k: add additional checks for the baseband hang detection
Since even with the latest changes the false positive issue of the baseband
hang check is not fully solved yet, additional checks are needed.
If the baseband hang occurs, the rx_clear signal will be stuck to high, so
we can use the cycle counters to confirm it.
With this patch, a hardware reset is only triggered if the baseband hang
check returned true three times in a row, with a beacon interval between
each check and if the busy time was also 99% or more during the check
intervals.
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/ath9k.h')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/ath9k.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath9k/ath9k.h b/drivers/net/wireless/ath/ath9k/ath9k.h index bd85e31..7c8409e 100644 --- a/drivers/net/wireless/ath/ath9k/ath9k.h +++ b/drivers/net/wireless/ath/ath9k/ath9k.h @@ -602,6 +602,8 @@ struct ath_softc { struct completion paprd_complete; bool paprd_pending; + unsigned int hw_busy_count; + u32 intrstatus; u32 sc_flags; /* SC_OP_* */ u16 ps_flags; /* PS_* */ |