diff options
author | Felix Fietkau <nbd@openwrt.org> | 2010-04-15 23:39:17 +0200 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-04-16 21:43:40 +0200 |
commit | 57b98384e5450996300d77ece61739b58325a84f (patch) | |
tree | b797704e2d232ec7c6175758c7b8804a6e66cf73 /drivers/net/wireless/ath/ath9k/eeprom_def.c | |
parent | ath9k_hw: Fill get_isr() for AR9003 (diff) | |
download | linux-57b98384e5450996300d77ece61739b58325a84f.tar.xz linux-57b98384e5450996300d77ece61739b58325a84f.zip |
ath9k_hw: move AR9280 PCI EEPROM fix to eeprom_def.c
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/eeprom_def.c')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/eeprom_def.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath9k/eeprom_def.c b/drivers/net/wireless/ath/ath9k/eeprom_def.c index 3d1b86bd07df..cf59799ef307 100644 --- a/drivers/net/wireless/ath/ath9k/eeprom_def.c +++ b/drivers/net/wireless/ath/ath9k/eeprom_def.c @@ -223,6 +223,12 @@ static int ath9k_hw_def_check_eeprom(struct ath_hw *ah) return -EINVAL; } + /* Enable fixup for AR_AN_TOP2 if necessary */ + if (AR_SREV_9280_10_OR_LATER(ah) && + (eep->baseEepHeader.version & 0xff) > 0x0a && + eep->baseEepHeader.pwdclkind == 0) + ah->need_an_top2_fixup = 1; + return 0; } |