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
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
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