linux/drivers/net/wireless/ath
Luis R. Rodriguez 359207c687 ath5k: Fix eeprom checksum check for custom sized eeproms
Commit 8bf3d79bc401ca417ccf9fc076d3295d1a71dbf5 enabled EEPROM
checksum checks to avoid bogus bug reports but failed to address
updating the code to consider devices with custom EEPROM sizes.
Devices with custom sized EEPROMs have the upper limit size stuffed
in the EEPROM. Use this as the upper limit instead of the static
default size. In case of a checksum error also provide back the
max size and whether or not this was the default size or a custom
one. If the EEPROM is busted we add a failsafe check to ensure
we don't loop forever or try to read bogus areas of hardware.

This closes bug 14874

http://bugzilla.kernel.org/show_bug.cgi?id=14874

Cc: stable@kernel.org
Cc: David Quan <david.quan@atheros.com>
Cc: Stephen Beahm <stephenbeahm@comcast.net>
Reported-by: Joshua Covington <joshuacov@googlemail.com>
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
2010-01-04 16:11:59 -05:00
..
ar9170 ar9170: Add support for D-Link DWA 160 A2 2009-11-18 17:09:19 -05:00
ath5k ath5k: Fix eeprom checksum check for custom sized eeproms 2010-01-04 16:11:59 -05:00
ath9k ath9k: fix ito64 2010-01-04 16:09:47 -05:00
ath.h ath9k: move driver keymap, keymax and splitmic to common 2009-11-11 17:09:09 -05:00
debug.c atheros: add common debug printing 2009-10-07 16:39:29 -04:00
debug.h atheros: add common debug printing 2009-10-07 16:39:29 -04:00
hw.c atheros: define shared bssidmask setting 2009-10-07 16:39:28 -04:00
Kconfig wireless: remove WLAN_80211 and WLAN_PRE80211 from Kconfig 2009-10-30 16:50:35 -04:00
main.c ath: add common ath_rxbuf_alloc() and make ath9k use it 2009-08-14 09:14:05 -04:00
Makefile ath9k: move hw code to its own module 2009-10-07 16:39:41 -04:00
reg.h atheros: define shared bssidmask setting 2009-10-07 16:39:28 -04:00
regd_common.h ath: Updates for regulatory and country codes. 2009-10-27 16:50:04 -04:00
regd.c cfg80211: convert bools into flags 2009-11-19 11:08:50 -05:00
regd.h ath: Updates for regulatory and country codes. 2009-10-27 16:50:04 -04:00