Lines Matching refs:snr
1679 snr_a_full = wa->snr; in wpa_scan_result_compar()
1680 snr_a = MIN(wa->snr, GREAT_SNR); in wpa_scan_result_compar()
1681 snr_b_full = wb->snr; in wpa_scan_result_compar()
1682 snr_b = MIN(wa->snr, GREAT_SNR); in wpa_scan_result_compar()
1777 r->snr, r->snr >= GREAT_SNR ? "*" : "", in dump_scan_res()
1869 res->snr = res->level - res->noise; in scan_snr()
1873 res->snr = res->level; in scan_snr()
1878 static unsigned int max_ht20_rate(int snr) in max_ht20_rate() argument
1880 if (snr < 6) in max_ht20_rate()
1882 if (snr < 8) in max_ht20_rate()
1884 if (snr < 13) in max_ht20_rate()
1886 if (snr < 17) in max_ht20_rate()
1888 if (snr < 20) in max_ht20_rate()
1890 if (snr < 23) in max_ht20_rate()
1892 if (snr < 24) in max_ht20_rate()
1898 static unsigned int max_ht40_rate(int snr) in max_ht40_rate() argument
1900 if (snr < 3) in max_ht40_rate()
1902 if (snr < 6) in max_ht40_rate()
1904 if (snr < 10) in max_ht40_rate()
1906 if (snr < 15) in max_ht40_rate()
1908 if (snr < 17) in max_ht40_rate()
1910 if (snr < 22) in max_ht40_rate()
1912 if (snr < 24) in max_ht40_rate()
1918 static unsigned int max_vht80_rate(int snr) in max_vht80_rate() argument
1920 if (snr < 1) in max_vht80_rate()
1922 if (snr < 2) in max_vht80_rate()
1924 if (snr < 5) in max_vht80_rate()
1926 if (snr < 9) in max_vht80_rate()
1928 if (snr < 11) in max_vht80_rate()
1930 if (snr < 15) in max_vht80_rate()
1932 if (snr < 16) in max_vht80_rate()
1934 if (snr < 18) in max_vht80_rate()
1936 if (snr < 20) in max_vht80_rate()
1938 if (snr < 22) in max_vht80_rate()
1951 int snr = res->snr; in scan_est_throughput() local
1960 if (rate > 1 * 2 && snr < 1) in scan_est_throughput()
1962 else if (rate > 2 * 2 && snr < 4) in scan_est_throughput()
1964 else if (rate > 6 * 2 && snr < 5) in scan_est_throughput()
1966 else if (rate > 9 * 2 && snr < 6) in scan_est_throughput()
1968 else if (rate > 12 * 2 && snr < 7) in scan_est_throughput()
1970 else if (rate > 18 * 2 && snr < 10) in scan_est_throughput()
1972 else if (rate > 24 * 2 && snr < 11) in scan_est_throughput()
1974 else if (rate > 36 * 2 && snr < 15) in scan_est_throughput()
1976 else if (rate > 48 * 2 && snr < 19) in scan_est_throughput()
1978 else if (rate > 54 * 2 && snr < 21) in scan_est_throughput()
1985 tmp = max_ht20_rate(snr); in scan_est_throughput()
1995 tmp = max_ht40_rate(snr); in scan_est_throughput()
2005 tmp = max_ht20_rate(snr) + 1; in scan_est_throughput()
2013 tmp = max_ht40_rate(snr) + 1; in scan_est_throughput()
2021 tmp = max_vht80_rate(snr) + 1; in scan_est_throughput()