diff options
author | Stefano Brivio <stefano.brivio@polimi.it> | 2007-11-24 17:35:25 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 18:05:04 -0500 |
commit | a293ee990d0a3ba945eda5d0861969d0ca7ce62c (patch) | |
tree | 28fd3a962f93ce02ef61f3a7ffe4eefe425529a2 /drivers/net/wireless/b43legacy/b43legacy.h | |
parent | 5be3bda8987b12a87863c89b74b136fdb1f072db (diff) |
b43legacy: reinit on too many PHY TX errors
Restart the hardware on too many PHY TX errors. A thousand PHY TX errors
per 15 seconds means we won't be able to recover for sure.
Signed-off-by: Stefano Brivio <stefano.brivio@polimi.it>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/b43legacy/b43legacy.h')
-rw-r--r-- | drivers/net/wireless/b43legacy/b43legacy.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/wireless/b43legacy/b43legacy.h b/drivers/net/wireless/b43legacy/b43legacy.h index d906f6eb2020..e4de437b7896 100644 --- a/drivers/net/wireless/b43legacy/b43legacy.h +++ b/drivers/net/wireless/b43legacy/b43legacy.h | |||
@@ -276,6 +276,8 @@ | |||
276 | #define B43legacy_DEFAULT_SHORT_RETRY_LIMIT 7 | 276 | #define B43legacy_DEFAULT_SHORT_RETRY_LIMIT 7 |
277 | #define B43legacy_DEFAULT_LONG_RETRY_LIMIT 4 | 277 | #define B43legacy_DEFAULT_LONG_RETRY_LIMIT 4 |
278 | 278 | ||
279 | #define B43legacy_PHY_TX_BADNESS_LIMIT 1000 | ||
280 | |||
279 | /* Max size of a security key */ | 281 | /* Max size of a security key */ |
280 | #define B43legacy_SEC_KEYSIZE 16 | 282 | #define B43legacy_SEC_KEYSIZE 16 |
281 | /* Security algorithms. */ | 283 | /* Security algorithms. */ |
@@ -511,6 +513,9 @@ struct b43legacy_phy { | |||
511 | u16 lofcal; | 513 | u16 lofcal; |
512 | 514 | ||
513 | u16 initval; | 515 | u16 initval; |
516 | |||
517 | /* PHY TX errors counter. */ | ||
518 | atomic_t txerr_cnt; | ||
514 | }; | 519 | }; |
515 | 520 | ||
516 | /* Data structures for DMA transmission, per 80211 core. */ | 521 | /* Data structures for DMA transmission, per 80211 core. */ |