diff options
author | Rajkumar Manoharan <rmanoharan@atheros.com> | 2011-04-11 10:52:28 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-04-12 16:59:40 -0400 |
commit | 2d05a0c2b4ac614cb5e0eba75d39a37205d129e8 (patch) | |
tree | ec1832cd62eef7b9fb4ccefe09653857204ea328 | |
parent | 3dfd7f606645279c788f48cfdfdf9565ec72c4f0 (diff) |
ath9k_hw: Remove unused code in AR9287 eeprom
Signed-off-by: Rajkumar Manoharan <rmanoharan@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r-- | drivers/net/wireless/ath/ath9k/eeprom_9287.c | 25 |
1 files changed, 1 insertions, 24 deletions
diff --git a/drivers/net/wireless/ath/ath9k/eeprom_9287.c b/drivers/net/wireless/ath/ath9k/eeprom_9287.c index 2f0712ea49a6..13579752a300 100644 --- a/drivers/net/wireless/ath/ath9k/eeprom_9287.c +++ b/drivers/net/wireless/ath/ath9k/eeprom_9287.c | |||
@@ -858,35 +858,12 @@ static void ath9k_hw_ar9287_set_board_values(struct ath_hw *ah, | |||
858 | { | 858 | { |
859 | struct ar9287_eeprom *eep = &ah->eeprom.map9287; | 859 | struct ar9287_eeprom *eep = &ah->eeprom.map9287; |
860 | struct modal_eep_ar9287_header *pModal = &eep->modalHeader; | 860 | struct modal_eep_ar9287_header *pModal = &eep->modalHeader; |
861 | u16 antWrites[AR9287_ANT_16S]; | ||
862 | u32 regChainOffset, regval; | 861 | u32 regChainOffset, regval; |
863 | u8 txRxAttenLocal; | 862 | u8 txRxAttenLocal; |
864 | int i, j, offset_num; | 863 | int i; |
865 | 864 | ||
866 | pModal = &eep->modalHeader; | 865 | pModal = &eep->modalHeader; |
867 | 866 | ||
868 | antWrites[0] = (u16)((pModal->antCtrlCommon >> 28) & 0xF); | ||
869 | antWrites[1] = (u16)((pModal->antCtrlCommon >> 24) & 0xF); | ||
870 | antWrites[2] = (u16)((pModal->antCtrlCommon >> 20) & 0xF); | ||
871 | antWrites[3] = (u16)((pModal->antCtrlCommon >> 16) & 0xF); | ||
872 | antWrites[4] = (u16)((pModal->antCtrlCommon >> 12) & 0xF); | ||
873 | antWrites[5] = (u16)((pModal->antCtrlCommon >> 8) & 0xF); | ||
874 | antWrites[6] = (u16)((pModal->antCtrlCommon >> 4) & 0xF); | ||
875 | antWrites[7] = (u16)(pModal->antCtrlCommon & 0xF); | ||
876 | |||
877 | offset_num = 8; | ||
878 | |||
879 | for (i = 0, j = offset_num; i < AR9287_MAX_CHAINS; i++) { | ||
880 | antWrites[j++] = (u16)((pModal->antCtrlChain[i] >> 28) & 0xf); | ||
881 | antWrites[j++] = (u16)((pModal->antCtrlChain[i] >> 10) & 0x3); | ||
882 | antWrites[j++] = (u16)((pModal->antCtrlChain[i] >> 8) & 0x3); | ||
883 | antWrites[j++] = 0; | ||
884 | antWrites[j++] = (u16)((pModal->antCtrlChain[i] >> 6) & 0x3); | ||
885 | antWrites[j++] = (u16)((pModal->antCtrlChain[i] >> 4) & 0x3); | ||
886 | antWrites[j++] = (u16)((pModal->antCtrlChain[i] >> 2) & 0x3); | ||
887 | antWrites[j++] = (u16)(pModal->antCtrlChain[i] & 0x3); | ||
888 | } | ||
889 | |||
890 | REG_WRITE(ah, AR_PHY_SWITCH_COM, pModal->antCtrlCommon); | 867 | REG_WRITE(ah, AR_PHY_SWITCH_COM, pModal->antCtrlCommon); |
891 | 868 | ||
892 | for (i = 0; i < AR9287_MAX_CHAINS; i++) { | 869 | for (i = 0; i < AR9287_MAX_CHAINS; i++) { |