diff options
author | Michael Buesch <mb@bu3sch.de> | 2008-03-07 09:50:02 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-03-07 16:02:59 -0500 |
commit | 57df40d278df552ad5fb4926fa05d06065c8150c (patch) | |
tree | 6c5e7219869c53a606b1c597484da2f6a1751f62 /drivers/net/wireless/b43/dma.h | |
parent | b27faf8ebf256429df8851477e02609448c0781f (diff) |
b43: Add TX statistics debugging counters
This adds a few debugging counters, that are useful for debugging the
"card does not transmit" or "connection is unstable" kind of problems.
It's also useful for tuning an RC algorithm.
Signed-off-by: Michael Buesch <mb@bu3sch.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/b43/dma.h')
-rw-r--r-- | drivers/net/wireless/b43/dma.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/net/wireless/b43/dma.h b/drivers/net/wireless/b43/dma.h index 9336286d97a7..ea27085dec0e 100644 --- a/drivers/net/wireless/b43/dma.h +++ b/drivers/net/wireless/b43/dma.h | |||
@@ -256,7 +256,13 @@ struct b43_dmaring { | |||
256 | int max_used_slots; | 256 | int max_used_slots; |
257 | /* Last time we injected a ring overflow. */ | 257 | /* Last time we injected a ring overflow. */ |
258 | unsigned long last_injected_overflow; | 258 | unsigned long last_injected_overflow; |
259 | #endif /* CONFIG_B43_DEBUG */ | 259 | /* Statistics: Number of successfully transmitted packets */ |
260 | u64 nr_succeed_tx_packets; | ||
261 | /* Statistics: Number of failed TX packets */ | ||
262 | u64 nr_failed_tx_packets; | ||
263 | /* Statistics: Total number of TX plus all retries. */ | ||
264 | u64 nr_total_packet_tries; | ||
265 | #endif /* CONFIG_B43_DEBUG */ | ||
260 | }; | 266 | }; |
261 | 267 | ||
262 | static inline u32 b43_dma_read(struct b43_dmaring *ring, u16 offset) | 268 | static inline u32 b43_dma_read(struct b43_dmaring *ring, u16 offset) |