|
@@ -779,28 +779,6 @@ static void ath9k_hw_4k_set_txpower(struct ath_hw *ah,
|
|
|
REGWRITE_BUFFER_FLUSH(ah);
|
|
|
}
|
|
|
|
|
|
-static void ath9k_hw_4k_set_addac(struct ath_hw *ah,
|
|
|
- struct ath9k_channel *chan)
|
|
|
-{
|
|
|
- struct modal_eep_4k_header *pModal;
|
|
|
- struct ar5416_eeprom_4k *eep = &ah->eeprom.map4k;
|
|
|
- u8 biaslevel;
|
|
|
-
|
|
|
- if (ah->hw_version.macVersion != AR_SREV_VERSION_9160)
|
|
|
- return;
|
|
|
-
|
|
|
- if (ah->eep_ops->get_eeprom_rev(ah) < AR5416_EEP_MINOR_VER_7)
|
|
|
- return;
|
|
|
-
|
|
|
- pModal = &eep->modalHeader;
|
|
|
-
|
|
|
- if (pModal->xpaBiasLvl != 0xff) {
|
|
|
- biaslevel = pModal->xpaBiasLvl;
|
|
|
- INI_RA(&ah->iniAddac, 7, 1) =
|
|
|
- (INI_RA(&ah->iniAddac, 7, 1) & (~0x18)) | biaslevel << 3;
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
static void ath9k_hw_4k_set_gain(struct ath_hw *ah,
|
|
|
struct modal_eep_4k_header *pModal,
|
|
|
struct ar5416_eeprom_4k *eep,
|
|
@@ -1152,7 +1130,6 @@ const struct eeprom_ops eep_4k_ops = {
|
|
|
.get_eeprom_ver = ath9k_hw_4k_get_eeprom_ver,
|
|
|
.get_eeprom_rev = ath9k_hw_4k_get_eeprom_rev,
|
|
|
.set_board_values = ath9k_hw_4k_set_board_values,
|
|
|
- .set_addac = ath9k_hw_4k_set_addac,
|
|
|
.set_txpower = ath9k_hw_4k_set_txpower,
|
|
|
.get_spur_channel = ath9k_hw_4k_get_spur_channel
|
|
|
};
|