Java 如何知道wi-fi频道的得分?

Java 如何知道wi-fi频道的得分?,java,android,wifi,frequency,analyzer,Java,Android,Wifi,Frequency,Analyzer,我正在尝试创建Wifi analyzer应用程序。我需要获得wifi频道的评级。我该怎么做 这就是我获取wi-fi频道的方式 ........ TextView tvChannel = (TextView) lv.getChildAt(wantedChild).findViewById(R.id.textViewChannel); tvChannel.setText(" " + convertFrequencyToChannel(results.get(i).frequency)); .....

我正在尝试创建Wifi analyzer应用程序。我需要获得wifi频道的评级。我该怎么做

这就是我获取wi-fi频道的方式

........
TextView tvChannel = (TextView) lv.getChildAt(wantedChild).findViewById(R.id.textViewChannel);
tvChannel.setText(" " + convertFrequencyToChannel(results.get(i).frequency));
.......

public static int convertFrequencyToChannel(int freq) {
    if (freq >= 2412 && freq <= 2484) {
        return (freq - 2412) / 5 + 1;
    } else if (freq >= 5170 && freq <= 5825) {
        return (freq - 5170) / 5 + 34;
    } else {
        return -1;
    }
}
。。。。。。。。
TextView tvChannel=(TextView)lv.getChildAt(wantedChild.findViewById(R.id.textViewChannel);
tvChannel.setText(“+convertFrequencyCannel(results.get(i.frequency));
.......
公共静态int转换器频率通道(int freq){

如果(freq>=2412&&freq=5170&&freq)问题相关。任何人。。。