diff options
Diffstat (limited to 'drivers/net/wireless/ath9k/hw.c')
-rw-r--r-- | drivers/net/wireless/ath9k/hw.c | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/drivers/net/wireless/ath9k/hw.c b/drivers/net/wireless/ath9k/hw.c index 1d44aa8e5110..a7f44e5b2e82 100644 --- a/drivers/net/wireless/ath9k/hw.c +++ b/drivers/net/wireless/ath9k/hw.c | |||
@@ -27,14 +27,6 @@ | |||
27 | #define ATH9K_CLOCK_RATE_5GHZ_OFDM 40 | 27 | #define ATH9K_CLOCK_RATE_5GHZ_OFDM 40 |
28 | #define ATH9K_CLOCK_RATE_2GHZ_OFDM 44 | 28 | #define ATH9K_CLOCK_RATE_2GHZ_OFDM 44 |
29 | 29 | ||
30 | extern struct hal_percal_data iq_cal_multi_sample; | ||
31 | extern struct hal_percal_data iq_cal_single_sample; | ||
32 | extern struct hal_percal_data adc_gain_cal_multi_sample; | ||
33 | extern struct hal_percal_data adc_gain_cal_single_sample; | ||
34 | extern struct hal_percal_data adc_dc_cal_multi_sample; | ||
35 | extern struct hal_percal_data adc_dc_cal_single_sample; | ||
36 | extern struct hal_percal_data adc_init_dc_cal; | ||
37 | |||
38 | static bool ath9k_hw_set_reset_reg(struct ath_hal *ah, u32 type); | 30 | static bool ath9k_hw_set_reset_reg(struct ath_hal *ah, u32 type); |
39 | static void ath9k_hw_set_regs(struct ath_hal *ah, struct ath9k_channel *chan, | 31 | static void ath9k_hw_set_regs(struct ath_hal *ah, struct ath9k_channel *chan, |
40 | enum ath9k_ht_macmode macmode); | 32 | enum ath9k_ht_macmode macmode); |
@@ -1886,9 +1878,9 @@ static void ath9k_hw_9280_spur_mitigate(struct ath_hal *ah, struct ath9k_channel | |||
1886 | if ((cur_vit_mask > lower) && (cur_vit_mask < upper)) { | 1878 | if ((cur_vit_mask > lower) && (cur_vit_mask < upper)) { |
1887 | 1879 | ||
1888 | /* workaround for gcc bug #37014 */ | 1880 | /* workaround for gcc bug #37014 */ |
1889 | volatile int tmp = abs(cur_vit_mask - bin); | 1881 | volatile int tmp_v = abs(cur_vit_mask - bin); |
1890 | 1882 | ||
1891 | if (tmp < 75) | 1883 | if (tmp_v < 75) |
1892 | mask_amt = 1; | 1884 | mask_amt = 1; |
1893 | else | 1885 | else |
1894 | mask_amt = 0; | 1886 | mask_amt = 0; |
@@ -2087,9 +2079,9 @@ static void ath9k_hw_spur_mitigate(struct ath_hal *ah, struct ath9k_channel *cha | |||
2087 | if ((cur_vit_mask > lower) && (cur_vit_mask < upper)) { | 2079 | if ((cur_vit_mask > lower) && (cur_vit_mask < upper)) { |
2088 | 2080 | ||
2089 | /* workaround for gcc bug #37014 */ | 2081 | /* workaround for gcc bug #37014 */ |
2090 | volatile int tmp = abs(cur_vit_mask - bin); | 2082 | volatile int tmp_v = abs(cur_vit_mask - bin); |
2091 | 2083 | ||
2092 | if (tmp < 75) | 2084 | if (tmp_v < 75) |
2093 | mask_amt = 1; | 2085 | mask_amt = 1; |
2094 | else | 2086 | else |
2095 | mask_amt = 0; | 2087 | mask_amt = 0; |