[ath5k-devel] [PATCH 2/2] ath5k: correct interrupt storm warning

2009-04-27 Thread Bob Copeland
Ben Greear points out that the "too many interrupts" message will never print in the intended case since the interrupt counter will be -1 after the loop. Change it to pre-decrement so it will be 0 on the thousandth iteration. Cc: Ben Greear Signed-off-by: Bob Copeland --- drivers/net/wireless

[ath5k-devel] [PATCH 1/2] ath5k: fix buffer overrun in rate debug code

2009-04-27 Thread Bob Copeland
char bname[5] is too small for the string "X GHz" when the null terminator is taken into account. Thus, turning on rate debugging can crash unless we have lucky stack alignment. Reported-by: Paride Legovini Signed-off-by: Bob Copeland --- drivers/net/wireless/ath/ath5k/debug.c |2 +- 1 fi

[ath5k-devel] [PATCH] ATH5K: Per C99, move storage class to beginning of line.

2009-04-27 Thread Robert P. J. Day
Signed-off-by: Robert P. J. Day --- diff --git a/drivers/net/wireless/ath5k/eeprom.c b/drivers/net/wireless/ath5k/eeprom.c index c0fb3b0..c85429d 100644 --- a/drivers/net/wireless/ath5k/eeprom.c +++ b/drivers/net/wireless/ath5k/eeprom.c @@ -640,9 +640,9 @@ ath5k_eeprom_init_11bg_2413(struct at