]> git.baikalelectronics.ru Git - kernel.git/commit
ath5k: fix hw rate index condition
authorJiri Slaby <jirislaby@gmail.com>
Thu, 26 Feb 2009 22:44:31 +0000 (23:44 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 5 Mar 2009 19:39:32 +0000 (14:39 -0500)
commit1f1a4a1065be908373659026ce10213ab30d257f
tree5a542aaee237726c607c3bf7a519d4479cd2454f
parentc8dfcd52c3b365db2d0384155a70ef8f98ec3519
ath5k: fix hw rate index condition

Make sure we print out a warning when the index is out of bounds,
i.e. even on hw_rix == AR5K_MAX_RATES.

Also change to WARN and print text with the reported hw_rix.

Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Cc: Nick Kossifidis <mickflemm@gmail.com>
Cc: Luis R. Rodriguez <lrodriguez@atheros.com>
Cc: Bob Copeland <me@bobcopeland.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath5k/base.c