aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath9k/eeprom_9287.c
diff options
context:
space:
mode:
authorRajkumar Manoharan <rmanoharan@atheros.com>2010-11-10 17:51:26 +0530
committerJohn W. Linville <linville@tuxdriver.com>2010-11-16 15:59:39 -0500
commitb5261cf4f3860bd772346a3e692683b6144dd44c (patch)
tree143b32fdfe95d47c45d2612696153d463fe6c03f /drivers/net/wireless/ath/ath9k/eeprom_9287.c
parent7cbf2611dac8d5f76fe64795a9426b8c97e6c3f8 (diff)
downloadkernel_samsung_smdk4412-b5261cf4f3860bd772346a3e692683b6144dd44c.zip
kernel_samsung_smdk4412-b5261cf4f3860bd772346a3e692683b6144dd44c.tar.gz
kernel_samsung_smdk4412-b5261cf4f3860bd772346a3e692683b6144dd44c.tar.bz2
ath9k_hw: Set proper eeprom offset for AR9287 HTC devices
AR9287 based PCI & USB devices are differed in eeprom start offset. So set proper the offset for HTC devices to read nvram correctly. Cc: stable@kernel.org Signed-off-by: Rajkumar Manoharan <rmanoharan@atheros.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/eeprom_9287.c')
-rw-r--r--drivers/net/wireless/ath/ath9k/eeprom_9287.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath9k/eeprom_9287.c b/drivers/net/wireless/ath/ath9k/eeprom_9287.c
index 966b949..195406d 100644
--- a/drivers/net/wireless/ath/ath9k/eeprom_9287.c
+++ b/drivers/net/wireless/ath/ath9k/eeprom_9287.c
@@ -37,7 +37,7 @@ static bool ath9k_hw_ar9287_fill_eeprom(struct ath_hw *ah)
int addr, eep_start_loc;
eep_data = (u16 *)eep;
- if (ah->hw_version.devid == 0x7015)
+ if (AR9287_HTC_DEVID(ah))
eep_start_loc = AR9287_HTC_EEP_START_LOC;
else
eep_start_loc = AR9287_EEP_START_LOC;