diff options
author | Felix Fietkau <nbd@openwrt.org> | 2010-04-15 17:39:17 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-04-16 15:43:40 -0400 |
commit | 57b98384e5450996300d77ece61739b58325a84f (patch) | |
tree | b797704e2d232ec7c6175758c7b8804a6e66cf73 /drivers/net/wireless/ath/ath9k/eeprom_def.c | |
parent | 6c84ce08aaf5995afc7ff7b4c54069c2431fca87 (diff) |
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) | |||
223 | return -EINVAL; | 223 | return -EINVAL; |
224 | } | 224 | } |
225 | 225 | ||
226 | /* Enable fixup for AR_AN_TOP2 if necessary */ | ||
227 | if (AR_SREV_9280_10_OR_LATER(ah) && | ||
228 | (eep->baseEepHeader.version & 0xff) > 0x0a && | ||
229 | eep->baseEepHeader.pwdclkind == 0) | ||
230 | ah->need_an_top2_fixup = 1; | ||
231 | |||
226 | return 0; | 232 | return 0; |
227 | } | 233 | } |
228 | 234 | ||