diff options
author | Pavel Roskin <proski@gnu.org> | 2010-07-06 12:51:27 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-07-14 13:52:45 -0400 |
commit | 6eb90d46c59a75ceeccfef7c6c6705fb64b593dc (patch) | |
tree | 940169b3d2f1656e5e4aa066d7d633920efb8c2b | |
parent | 982723df56ceb6fb0f1e821e4898e58069a1f163 (diff) |
ath9k: remove unneeded calculation of minimal calibration power
Remove tMinCalPower from ath9k_hw_set_def_power_cal_table(), as it's
never used. Remove corresponding arguments of the functions calculating
that value.
Original patch by Prarit Bhargava <prarit@redhat.com>
Signed-off-by: Pavel Roskin <proski@gnu.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r-- | drivers/net/wireless/ath/ath9k/eeprom_4k.c | 7 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath9k/eeprom_9287.c | 4 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath9k/eeprom_def.c | 7 |
3 files changed, 4 insertions, 14 deletions
diff --git a/drivers/net/wireless/ath/ath9k/eeprom_4k.c b/drivers/net/wireless/ath/ath9k/eeprom_4k.c index afafc4d4b8fb..9cccd12e8f21 100644 --- a/drivers/net/wireless/ath/ath9k/eeprom_4k.c +++ b/drivers/net/wireless/ath/ath9k/eeprom_4k.c | |||
@@ -222,7 +222,7 @@ static void ath9k_hw_get_4k_gain_boundaries_pdadcs(struct ath_hw *ah, | |||
222 | struct ath9k_channel *chan, | 222 | struct ath9k_channel *chan, |
223 | struct cal_data_per_freq_4k *pRawDataSet, | 223 | struct cal_data_per_freq_4k *pRawDataSet, |
224 | u8 *bChans, u16 availPiers, | 224 | u8 *bChans, u16 availPiers, |
225 | u16 tPdGainOverlap, int16_t *pMinCalPower, | 225 | u16 tPdGainOverlap, |
226 | u16 *pPdGainBoundaries, u8 *pPDADCValues, | 226 | u16 *pPdGainBoundaries, u8 *pPDADCValues, |
227 | u16 numXpdGains) | 227 | u16 numXpdGains) |
228 | { | 228 | { |
@@ -308,8 +308,6 @@ static void ath9k_hw_get_4k_gain_boundaries_pdadcs(struct ath_hw *ah, | |||
308 | } | 308 | } |
309 | } | 309 | } |
310 | 310 | ||
311 | *pMinCalPower = (int16_t)(minPwrT4[0] / 2); | ||
312 | |||
313 | k = 0; | 311 | k = 0; |
314 | 312 | ||
315 | for (i = 0; i < numXpdGains; i++) { | 313 | for (i = 0; i < numXpdGains; i++) { |
@@ -399,7 +397,6 @@ static void ath9k_hw_set_4k_power_cal_table(struct ath_hw *ah, | |||
399 | static u8 pdadcValues[AR5416_NUM_PDADC_VALUES]; | 397 | static u8 pdadcValues[AR5416_NUM_PDADC_VALUES]; |
400 | u16 gainBoundaries[AR5416_EEP4K_PD_GAINS_IN_MASK]; | 398 | u16 gainBoundaries[AR5416_EEP4K_PD_GAINS_IN_MASK]; |
401 | u16 numPiers, i, j; | 399 | u16 numPiers, i, j; |
402 | int16_t tMinCalPower; | ||
403 | u16 numXpdGain, xpdMask; | 400 | u16 numXpdGain, xpdMask; |
404 | u16 xpdGainValues[AR5416_EEP4K_NUM_PD_GAINS] = { 0, 0 }; | 401 | u16 xpdGainValues[AR5416_EEP4K_NUM_PD_GAINS] = { 0, 0 }; |
405 | u32 reg32, regOffset, regChainOffset; | 402 | u32 reg32, regOffset, regChainOffset; |
@@ -452,7 +449,7 @@ static void ath9k_hw_set_4k_power_cal_table(struct ath_hw *ah, | |||
452 | ath9k_hw_get_4k_gain_boundaries_pdadcs(ah, chan, | 449 | ath9k_hw_get_4k_gain_boundaries_pdadcs(ah, chan, |
453 | pRawDataset, pCalBChans, | 450 | pRawDataset, pCalBChans, |
454 | numPiers, pdGainOverlap_t2, | 451 | numPiers, pdGainOverlap_t2, |
455 | &tMinCalPower, gainBoundaries, | 452 | gainBoundaries, |
456 | pdadcValues, numXpdGain); | 453 | pdadcValues, numXpdGain); |
457 | 454 | ||
458 | ENABLE_REGWRITE_BUFFER(ah); | 455 | ENABLE_REGWRITE_BUFFER(ah); |
diff --git a/drivers/net/wireless/ath/ath9k/eeprom_9287.c b/drivers/net/wireless/ath/ath9k/eeprom_9287.c index 37207dfd1799..4a52cf03808b 100644 --- a/drivers/net/wireless/ath/ath9k/eeprom_9287.c +++ b/drivers/net/wireless/ath/ath9k/eeprom_9287.c | |||
@@ -223,7 +223,6 @@ static void ath9k_hw_get_ar9287_gain_boundaries_pdadcs(struct ath_hw *ah, | |||
223 | struct cal_data_per_freq_ar9287 *pRawDataSet, | 223 | struct cal_data_per_freq_ar9287 *pRawDataSet, |
224 | u8 *bChans, u16 availPiers, | 224 | u8 *bChans, u16 availPiers, |
225 | u16 tPdGainOverlap, | 225 | u16 tPdGainOverlap, |
226 | int16_t *pMinCalPower, | ||
227 | u16 *pPdGainBoundaries, | 226 | u16 *pPdGainBoundaries, |
228 | u8 *pPDADCValues, | 227 | u8 *pPDADCValues, |
229 | u16 numXpdGains) | 228 | u16 numXpdGains) |
@@ -303,7 +302,6 @@ static void ath9k_hw_get_ar9287_gain_boundaries_pdadcs(struct ath_hw *ah, | |||
303 | } | 302 | } |
304 | } | 303 | } |
305 | 304 | ||
306 | *pMinCalPower = (int16_t)(minPwrT4[0] / 2); | ||
307 | k = 0; | 305 | k = 0; |
308 | 306 | ||
309 | for (i = 0; i < numXpdGains; i++) { | 307 | for (i = 0; i < numXpdGains; i++) { |
@@ -458,7 +456,6 @@ static void ath9k_hw_set_ar9287_power_cal_table(struct ath_hw *ah, | |||
458 | u8 pdadcValues[AR9287_NUM_PDADC_VALUES]; | 456 | u8 pdadcValues[AR9287_NUM_PDADC_VALUES]; |
459 | u16 gainBoundaries[AR9287_PD_GAINS_IN_MASK]; | 457 | u16 gainBoundaries[AR9287_PD_GAINS_IN_MASK]; |
460 | u16 numPiers = 0, i, j; | 458 | u16 numPiers = 0, i, j; |
461 | int16_t tMinCalPower; | ||
462 | u16 numXpdGain, xpdMask; | 459 | u16 numXpdGain, xpdMask; |
463 | u16 xpdGainValues[AR9287_NUM_PD_GAINS] = {0, 0, 0, 0}; | 460 | u16 xpdGainValues[AR9287_NUM_PD_GAINS] = {0, 0, 0, 0}; |
464 | u32 reg32, regOffset, regChainOffset, regval; | 461 | u32 reg32, regOffset, regChainOffset, regval; |
@@ -530,7 +527,6 @@ static void ath9k_hw_set_ar9287_power_cal_table(struct ath_hw *ah, | |||
530 | pRawDataset, | 527 | pRawDataset, |
531 | pCalBChans, numPiers, | 528 | pCalBChans, numPiers, |
532 | pdGainOverlap_t2, | 529 | pdGainOverlap_t2, |
533 | &tMinCalPower, | ||
534 | gainBoundaries, | 530 | gainBoundaries, |
535 | pdadcValues, | 531 | pdadcValues, |
536 | numXpdGain); | 532 | numXpdGain); |
diff --git a/drivers/net/wireless/ath/ath9k/eeprom_def.c b/drivers/net/wireless/ath/ath9k/eeprom_def.c index 02e6c2a55fe4..afa2b73ddbdd 100644 --- a/drivers/net/wireless/ath/ath9k/eeprom_def.c +++ b/drivers/net/wireless/ath/ath9k/eeprom_def.c | |||
@@ -593,7 +593,7 @@ static void ath9k_hw_get_def_gain_boundaries_pdadcs(struct ath_hw *ah, | |||
593 | struct ath9k_channel *chan, | 593 | struct ath9k_channel *chan, |
594 | struct cal_data_per_freq *pRawDataSet, | 594 | struct cal_data_per_freq *pRawDataSet, |
595 | u8 *bChans, u16 availPiers, | 595 | u8 *bChans, u16 availPiers, |
596 | u16 tPdGainOverlap, int16_t *pMinCalPower, | 596 | u16 tPdGainOverlap, |
597 | u16 *pPdGainBoundaries, u8 *pPDADCValues, | 597 | u16 *pPdGainBoundaries, u8 *pPDADCValues, |
598 | u16 numXpdGains) | 598 | u16 numXpdGains) |
599 | { | 599 | { |
@@ -675,8 +675,6 @@ static void ath9k_hw_get_def_gain_boundaries_pdadcs(struct ath_hw *ah, | |||
675 | } | 675 | } |
676 | } | 676 | } |
677 | 677 | ||
678 | *pMinCalPower = (int16_t)(minPwrT4[0] / 2); | ||
679 | |||
680 | k = 0; | 678 | k = 0; |
681 | 679 | ||
682 | for (i = 0; i < numXpdGains; i++) { | 680 | for (i = 0; i < numXpdGains; i++) { |
@@ -838,7 +836,7 @@ static void ath9k_hw_set_def_power_cal_table(struct ath_hw *ah, | |||
838 | static u8 pdadcValues[AR5416_NUM_PDADC_VALUES]; | 836 | static u8 pdadcValues[AR5416_NUM_PDADC_VALUES]; |
839 | u16 gainBoundaries[AR5416_PD_GAINS_IN_MASK]; | 837 | u16 gainBoundaries[AR5416_PD_GAINS_IN_MASK]; |
840 | u16 numPiers, i, j; | 838 | u16 numPiers, i, j; |
841 | int16_t tMinCalPower, diff = 0; | 839 | int16_t diff = 0; |
842 | u16 numXpdGain, xpdMask; | 840 | u16 numXpdGain, xpdMask; |
843 | u16 xpdGainValues[AR5416_NUM_PD_GAINS] = { 0, 0, 0, 0 }; | 841 | u16 xpdGainValues[AR5416_NUM_PD_GAINS] = { 0, 0, 0, 0 }; |
844 | u32 reg32, regOffset, regChainOffset; | 842 | u32 reg32, regOffset, regChainOffset; |
@@ -923,7 +921,6 @@ static void ath9k_hw_set_def_power_cal_table(struct ath_hw *ah, | |||
923 | chan, pRawDataset, | 921 | chan, pRawDataset, |
924 | pCalBChans, numPiers, | 922 | pCalBChans, numPiers, |
925 | pdGainOverlap_t2, | 923 | pdGainOverlap_t2, |
926 | &tMinCalPower, | ||
927 | gainBoundaries, | 924 | gainBoundaries, |
928 | pdadcValues, | 925 | pdadcValues, |
929 | numXpdGain); | 926 | numXpdGain); |