]> git.baikalelectronics.ru Git - kernel.git/commit
atheros: fix propagation of bad EEPROM on regulatory init
authorLuis R. Rodriguez <lrodriguez@atheros.com>
Tue, 14 Apr 2009 01:41:46 +0000 (21:41 -0400)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 22 Apr 2009 20:57:15 +0000 (16:57 -0400)
commitc6234ac8e48ed5114423e7280ade952bf8d92b59
tree273ad6d462c816057a4f791f12febad5cce5e962
parenta1e9cb6c2966309cd86bd65b23c24f9f817c2567
atheros: fix propagation of bad EEPROM on regulatory init

When the EEPROM is not in good condition we cannot continue so
we currently bail out but only ath5k is bailing out properly.
Both ath9k and ar9170 were proceeding and if a user were to run
into this they'd see an obscure panic. Lets propagate the error
as intended and make sure we inform the user by lifting the
error message from debug to a kernel error.

Stable note: You can find a port of this page here:

http://bombadil.infradead.org/~mcgrof/patches/ath9k/ath9k-fix-eeprom.patch.txt

Cc: stable@kernel.org
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ar9170/main.c
drivers/net/wireless/ath/ath9k/main.c
drivers/net/wireless/ath/regd.c