linux-sg2042/drivers/net/wireless/ath
Pavel Roskin 3b3ee43da4 ath5k: fix uninitialized value use in ath5k_eeprom_read_turbo_modes()
The `val' variable in ath5k_eeprom_read_turbo_modes() is used
uninitialized.  gcc 4.4.1 with -fno-inline-functions-called-once reports
it:

eeprom.c: In function 'ath5k_eeprom_read_turbo_modes':
eeprom.c:441: warning: 'val' may be used uninitialized in this function

Comparing the code to the Atheros HAL, it's clear that the split between
ath5k_eeprom_read_modes() and ath5k_eeprom_read_turbo_modes() was
incorrect.

The Atheros HAL reads both turbo and non-turbo data from EEPROM in one
function.  Some turbo mode parameters are derived from the same EEPROM
values as non-turbo parameters, just from different bits.

Merge ath5k_eeprom_read_turbo_modes() into ath5k_eeprom_read_modes() to
fix the warning.  The actual values and offsets have been cross-checked
against Atheros HAL.

Signed-off-by: Pavel Roskin <proski@gnu.org>
Acked-by: Bob Copeland <me@bobcopeland.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
2009-08-28 14:40:54 -04:00
..
ar9170 ar9170: remove unnecessary call to ar9170_set_beacon_timers 2009-08-28 14:40:41 -04:00
ath5k ath5k: fix uninitialized value use in ath5k_eeprom_read_turbo_modes() 2009-08-28 14:40:54 -04:00
ath9k ath9k: Add Bluetooth Coexistence 3-wire support 2009-08-28 14:40:51 -04:00
Kconfig ath: add common ath_rxbuf_alloc() and make ath9k use it 2009-08-14 09:14:05 -04:00
Makefile ath: add module information 2009-04-22 16:54:47 -04:00
ath.h ath: move regulatory info into shared common structure 2009-08-20 11:36:03 -04:00
main.c ath: add common ath_rxbuf_alloc() and make ath9k use it 2009-08-14 09:14:05 -04:00
regd.c Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6 2009-07-23 19:03:51 -07:00
regd.h ath: move regulatory info into shared common structure 2009-08-20 11:36:03 -04:00
regd_common.h ath: map TH to FCC3_WORLD 2009-07-27 15:24:08 -04:00