aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath9k/eeprom_9287.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/eeprom_9287.c')
-rw-r--r--drivers/net/wireless/ath/ath9k/eeprom_9287.c26
1 files changed, 1 insertions, 25 deletions
diff --git a/drivers/net/wireless/ath/ath9k/eeprom_9287.c b/drivers/net/wireless/ath/ath9k/eeprom_9287.c
index e1d0c217c104..5ba1385c9838 100644
--- a/drivers/net/wireless/ath/ath9k/eeprom_9287.c
+++ b/drivers/net/wireless/ath/ath9k/eeprom_9287.c
@@ -1004,31 +1004,7 @@ static void ath9k_hw_ar9287_set_board_values(struct ath_hw *ah,
1004static u16 ath9k_hw_ar9287_get_spur_channel(struct ath_hw *ah, 1004static u16 ath9k_hw_ar9287_get_spur_channel(struct ath_hw *ah,
1005 u16 i, bool is2GHz) 1005 u16 i, bool is2GHz)
1006{ 1006{
1007#define EEP_MAP9287_SPURCHAN \ 1007 return ah->eeprom.map9287.modalHeader.spurChans[i].spurChan;
1008 (ah->eeprom.map9287.modalHeader.spurChans[i].spurChan)
1009
1010 struct ath_common *common = ath9k_hw_common(ah);
1011 u16 spur_val = AR_NO_SPUR;
1012
1013 ath_dbg(common, ANI, "Getting spur idx:%d is2Ghz:%d val:%x\n",
1014 i, is2GHz, ah->config.spurchans[i][is2GHz]);
1015
1016 switch (ah->config.spurmode) {
1017 case SPUR_DISABLE:
1018 break;
1019 case SPUR_ENABLE_IOCTL:
1020 spur_val = ah->config.spurchans[i][is2GHz];
1021 ath_dbg(common, ANI, "Getting spur val from new loc. %d\n",
1022 spur_val);
1023 break;
1024 case SPUR_ENABLE_EEPROM:
1025 spur_val = EEP_MAP9287_SPURCHAN;
1026 break;
1027 }
1028
1029 return spur_val;
1030
1031#undef EEP_MAP9287_SPURCHAN
1032} 1008}
1033 1009
1034const struct eeprom_ops eep_ar9287_ops = { 1010const struct eeprom_ops eep_ar9287_ops = {