Lines Matching refs:main_rssi_avg
73 int mindelta, int main_rssi_avg, in ath_is_alt_ant_ratio_better() argument
79 if (alt_rssi_avg > main_rssi_avg + mindelta) in ath_is_alt_ant_ratio_better()
84 (alt_rssi_avg > main_rssi_avg + maxdelta)) in ath_is_alt_ant_ratio_better()
93 int main_rssi_avg) in ath_ant_div_comb_alt_check() argument
117 if ((set1 && (alt_rssi_avg >= (main_rssi_avg - 5))) || in ath_ant_div_comb_alt_check()
118 (set2 && (alt_rssi_avg >= (main_rssi_avg - 2))) || in ath_ant_div_comb_alt_check()
127 if ((set1 && (alt_rssi_avg >= (main_rssi_avg - 3))) || in ath_ant_div_comb_alt_check()
128 (set2 && (alt_rssi_avg >= (main_rssi_avg + 3))) || in ath_ant_div_comb_alt_check()
140 int main_rssi_avg) in ath_lnaconf_alt_good_scan() argument
145 antcomb->rssi_lna2 = main_rssi_avg; in ath_lnaconf_alt_good_scan()
147 antcomb->rssi_lna1 = main_rssi_avg; in ath_lnaconf_alt_good_scan()
263 int main_rssi_avg, int alt_rssi_avg, in ath_select_ant_div_from_quick_scan() argument
277 antcomb->rssi_first = main_rssi_avg; in ath_select_ant_div_from_quick_scan()
285 main_rssi_avg, alt_rssi_avg, in ath_select_ant_div_from_quick_scan()
294 main_rssi_avg, alt_rssi_avg, in ath_select_ant_div_from_quick_scan()
303 main_rssi_avg, alt_rssi_avg, in ath_select_ant_div_from_quick_scan()
314 antcomb->rssi_first = main_rssi_avg; in ath_select_ant_div_from_quick_scan()
326 antcomb->rssi_lna2 = main_rssi_avg; in ath_select_ant_div_from_quick_scan()
328 antcomb->rssi_lna1 = main_rssi_avg; in ath_select_ant_div_from_quick_scan()
344 main_rssi_avg, alt_rssi_avg, in ath_select_ant_div_from_quick_scan()
353 main_rssi_avg, alt_rssi_avg, in ath_select_ant_div_from_quick_scan()
362 main_rssi_avg, alt_rssi_avg, in ath_select_ant_div_from_quick_scan()
592 int main_rssi_avg) in ath_ant_try_scan() argument
597 antcomb->rssi_lna1 = main_rssi_avg; in ath_ant_try_scan()
605 antcomb->rssi_lna2 = main_rssi_avg; in ath_ant_try_scan()
665 int main_rssi_avg, int curr_main_set, in ath_ant_try_switch() argument
671 alt_rssi_avg, main_rssi_avg)) { in ath_ant_try_switch()
725 int alt_ratio = 0, alt_rssi_avg = 0, main_rssi_avg = 0, curr_alt_set; in ath_ant_comb_scan() local
775 main_rssi_avg = (antcomb->main_total_rssi / in ath_ant_comb_scan()
789 main_rssi_avg); in ath_ant_comb_scan()
802 alt_rssi_avg, main_rssi_avg, in ath_ant_comb_scan()
809 (alt_rssi_avg < (main_rssi_avg + div_ant_conf.lna1_lna2_delta))) in ath_ant_comb_scan()
814 alt_rssi_avg, main_rssi_avg); in ath_ant_comb_scan()
833 main_rssi_avg, alt_rssi_avg, in ath_ant_comb_scan()
841 ath9k_debug_stat_ant(sc, &div_ant_conf, main_rssi_avg, alt_rssi_avg); in ath_ant_comb_scan()