aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath9k/hw.c
diff options
context:
space:
mode:
authorSujith <Sujith.Manoharan@atheros.com>2009-02-11 23:36:43 -0500
committerJohn W. Linville <linville@tuxdriver.com>2009-02-27 14:51:43 -0500
commitfec0de1110e58ed39647e484bff8437e4185158d (patch)
tree61c7af7a434c92d3ef0d2423b1150744adf9dbc3 /drivers/net/wireless/ath9k/hw.c
parente421c7b35c17752dbe6d26d910eb2d6814073355 (diff)
ath9k: Fix rd_ext EEPROM capability for AR9285
AR9285 chipsets have a different EEPROM layout, handle this appropriately when populating the rd_ext capability. Signed-off-by: Sujith <Sujith.Manoharan@atheros.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath9k/hw.c')
-rw-r--r--drivers/net/wireless/ath9k/hw.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath9k/hw.c b/drivers/net/wireless/ath9k/hw.c
index cad8e39c201e..55d5a7440942 100644
--- a/drivers/net/wireless/ath9k/hw.c
+++ b/drivers/net/wireless/ath9k/hw.c
@@ -3128,10 +3128,11 @@ bool ath9k_hw_fill_cap_info(struct ath_hw *ah)
3128 u16 capField = 0, eeval; 3128 u16 capField = 0, eeval;
3129 3129
3130 eeval = ah->eep_ops->get_eeprom(ah, EEP_REG_0); 3130 eeval = ah->eep_ops->get_eeprom(ah, EEP_REG_0);
3131
3132 ah->regulatory.current_rd = eeval; 3131 ah->regulatory.current_rd = eeval;
3133 3132
3134 eeval = ah->eep_ops->get_eeprom(ah, EEP_REG_1); 3133 eeval = ah->eep_ops->get_eeprom(ah, EEP_REG_1);
3134 if (AR_SREV_9285_10_OR_LATER(ah))
3135 eeval |= AR9285_RDEXT_DEFAULT;
3135 ah->regulatory.current_rd_ext = eeval; 3136 ah->regulatory.current_rd_ext = eeval;
3136 3137
3137 capField = ah->eep_ops->get_eeprom(ah, EEP_OP_CAP); 3138 capField = ah->eep_ops->get_eeprom(ah, EEP_OP_CAP);