Searched refs:cur_bb_spur (Results 1 - 3 of 3) sorted by relevance

/linux-4.1.27/drivers/net/wireless/ath/ath9k/
H A Dar9002_phy.c195 int cur_bb_spur; ar9002_hw_spur_mitigate() local
205 cur_bb_spur = ah->eep_ops->get_spur_channel(ah, i, is2GHz); ar9002_hw_spur_mitigate()
207 if (AR_NO_SPUR == cur_bb_spur) ar9002_hw_spur_mitigate()
211 cur_bb_spur = (cur_bb_spur / 10) + AR_BASE_FREQ_2GHZ; ar9002_hw_spur_mitigate()
213 cur_bb_spur = (cur_bb_spur / 10) + AR_BASE_FREQ_5GHZ; ar9002_hw_spur_mitigate()
215 cur_bb_spur = cur_bb_spur - freq; ar9002_hw_spur_mitigate()
218 if ((cur_bb_spur > -AR_SPUR_FEEQ_BOUND_HT40) && ar9002_hw_spur_mitigate()
219 (cur_bb_spur < AR_SPUR_FEEQ_BOUND_HT40)) { ar9002_hw_spur_mitigate()
220 bb_spur = cur_bb_spur; ar9002_hw_spur_mitigate()
223 } else if ((cur_bb_spur > -AR_SPUR_FEEQ_BOUND_HT20) && ar9002_hw_spur_mitigate()
224 (cur_bb_spur < AR_SPUR_FEEQ_BOUND_HT20)) { ar9002_hw_spur_mitigate()
225 bb_spur = cur_bb_spur; ar9002_hw_spur_mitigate()
H A Dar5008_phy.c290 int cur_bb_spur; ar5008_hw_spur_mitigate() local
297 cur_bb_spur = ah->eep_ops->get_spur_channel(ah, i, is2GHz); ar5008_hw_spur_mitigate()
298 if (AR_NO_SPUR == cur_bb_spur) ar5008_hw_spur_mitigate()
300 cur_bb_spur = cur_bb_spur - (chan->channel * 10); ar5008_hw_spur_mitigate()
301 if ((cur_bb_spur > -95) && (cur_bb_spur < 95)) { ar5008_hw_spur_mitigate()
302 bb_spur = cur_bb_spur; ar5008_hw_spur_mitigate()
H A Dar9003_phy.c259 int cur_bb_spur, negative = 0, cck_spur_freq; ar9003_hw_spur_mitigate_mrc_cck() local
298 cur_bb_spur = ath9k_hw_fbin2freq(spur_fbin_ptr[i], ar9003_hw_spur_mitigate_mrc_cck()
301 cur_bb_spur = spur_freq[i]; ar9003_hw_spur_mitigate_mrc_cck()
303 cur_bb_spur -= synth_freq; ar9003_hw_spur_mitigate_mrc_cck()
304 if (cur_bb_spur < 0) { ar9003_hw_spur_mitigate_mrc_cck()
306 cur_bb_spur = -cur_bb_spur; ar9003_hw_spur_mitigate_mrc_cck()
308 if (cur_bb_spur < range) { ar9003_hw_spur_mitigate_mrc_cck()
309 cck_spur_freq = (int)((cur_bb_spur << 19) / 11); ar9003_hw_spur_mitigate_mrc_cck()

Completed in 117 milliseconds