diff options
-rw-r--r-- | drivers/net/wireless/ath9k/calib.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/ath9k/eeprom.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/ath9k/eeprom.h | 3 | ||||
-rw-r--r-- | drivers/net/wireless/ath9k/hw.c | 2 |
4 files changed, 3 insertions, 6 deletions
diff --git a/drivers/net/wireless/ath9k/calib.c b/drivers/net/wireless/ath9k/calib.c index 93c6e1f72353..1c074c059b5c 100644 --- a/drivers/net/wireless/ath9k/calib.c +++ b/drivers/net/wireless/ath9k/calib.c | |||
@@ -749,8 +749,6 @@ bool ath9k_hw_calibrate(struct ath_hw *ah, struct ath9k_channel *chan, | |||
749 | u8 rxchainmask, bool longcal, | 749 | u8 rxchainmask, bool longcal, |
750 | bool *isCalDone) | 750 | bool *isCalDone) |
751 | { | 751 | { |
752 | #define OLC_FOR_AR9280_20_LATER (AR_SREV_9280_20_OR_LATER(ah) && \ | ||
753 | ah->eep_ops->get_eeprom(ah, EEP_OL_PWRCTRL)) | ||
754 | struct hal_cal_list *currCal = ah->cal_list_curr; | 752 | struct hal_cal_list *currCal = ah->cal_list_curr; |
755 | 753 | ||
756 | *isCalDone = true; | 754 | *isCalDone = true; |
diff --git a/drivers/net/wireless/ath9k/eeprom.c b/drivers/net/wireless/ath9k/eeprom.c index fff7a1b6fbf2..02d0b919ee3d 100644 --- a/drivers/net/wireless/ath9k/eeprom.c +++ b/drivers/net/wireless/ath9k/eeprom.c | |||
@@ -2164,8 +2164,6 @@ static bool ath9k_hw_set_def_power_cal_table(struct ath_hw *ah, | |||
2164 | struct ath9k_channel *chan, | 2164 | struct ath9k_channel *chan, |
2165 | int16_t *pTxPowerIndexOffset) | 2165 | int16_t *pTxPowerIndexOffset) |
2166 | { | 2166 | { |
2167 | #define OLC_FOR_AR9280_20_LATER (AR_SREV_9280_20_OR_LATER(ah) && \ | ||
2168 | ah->eep_ops->get_eeprom(ah, EEP_OL_PWRCTRL)) | ||
2169 | #define SM_PD_GAIN(x) SM(0x38, AR_PHY_TPCRG5_PD_GAIN_BOUNDARY_##x) | 2167 | #define SM_PD_GAIN(x) SM(0x38, AR_PHY_TPCRG5_PD_GAIN_BOUNDARY_##x) |
2170 | #define SM_PDGAIN_B(x, y) \ | 2168 | #define SM_PDGAIN_B(x, y) \ |
2171 | SM((gainBoundaries[x]), AR_PHY_TPCRG5_PD_GAIN_BOUNDARY_##y) | 2169 | SM((gainBoundaries[x]), AR_PHY_TPCRG5_PD_GAIN_BOUNDARY_##y) |
diff --git a/drivers/net/wireless/ath9k/eeprom.h b/drivers/net/wireless/ath9k/eeprom.h index 2cfea5d56d10..6296e3eff10b 100644 --- a/drivers/net/wireless/ath9k/eeprom.h +++ b/drivers/net/wireless/ath9k/eeprom.h | |||
@@ -95,6 +95,9 @@ | |||
95 | #define FREQ2FBIN(x, y) ((y) ? ((x) - 2300) : (((x) - 4800) / 5)) | 95 | #define FREQ2FBIN(x, y) ((y) ? ((x) - 2300) : (((x) - 4800) / 5)) |
96 | #define ath9k_hw_use_flash(_ah) (!(_ah->ah_flags & AH_USE_EEPROM)) | 96 | #define ath9k_hw_use_flash(_ah) (!(_ah->ah_flags & AH_USE_EEPROM)) |
97 | 97 | ||
98 | #define OLC_FOR_AR9280_20_LATER (AR_SREV_9280_20_OR_LATER(ah) && \ | ||
99 | ah->eep_ops->get_eeprom(ah, EEP_OL_PWRCTRL)) | ||
100 | |||
98 | #define AR_EEPROM_RFSILENT_GPIO_SEL 0x001c | 101 | #define AR_EEPROM_RFSILENT_GPIO_SEL 0x001c |
99 | #define AR_EEPROM_RFSILENT_GPIO_SEL_S 2 | 102 | #define AR_EEPROM_RFSILENT_GPIO_SEL_S 2 |
100 | #define AR_EEPROM_RFSILENT_POLARITY 0x0002 | 103 | #define AR_EEPROM_RFSILENT_POLARITY 0x0002 |
diff --git a/drivers/net/wireless/ath9k/hw.c b/drivers/net/wireless/ath9k/hw.c index 2c0173a3cce0..6f2e92ec77ae 100644 --- a/drivers/net/wireless/ath9k/hw.c +++ b/drivers/net/wireless/ath9k/hw.c | |||
@@ -1219,8 +1219,6 @@ static int ath9k_hw_process_ini(struct ath_hw *ah, | |||
1219 | struct ath9k_channel *chan, | 1219 | struct ath9k_channel *chan, |
1220 | enum ath9k_ht_macmode macmode) | 1220 | enum ath9k_ht_macmode macmode) |
1221 | { | 1221 | { |
1222 | #define OLC_FOR_AR9280_20_LATER (AR_SREV_9280_20_OR_LATER(ah) && \ | ||
1223 | ah->eep_ops->get_eeprom(ah, EEP_OL_PWRCTRL)) | ||
1224 | int i, regWrites = 0; | 1222 | int i, regWrites = 0; |
1225 | struct ieee80211_channel *channel = chan->chan; | 1223 | struct ieee80211_channel *channel = chan->chan; |
1226 | u32 modesIndex, freqIndex; | 1224 | u32 modesIndex, freqIndex; |