android wifi热点 信道,wifi 热点配置最优信道(示例代码) | 您所在的位置:网站首页 › ns怎么改信道 › android wifi热点 信道,wifi 热点配置最优信道(示例代码) |
wifi热点服务hostapd启动需要配置hostad.conf文件,其中有一个参数channel是用来配置信道的,信道的可选参数如下: # channel 1-14 is 2.4 GHz ; channel 36, 40, 44, 46, 48, 52, 56, 60, # 64, 100, 104, 108, 112, 116, 120, 124, 128, 132, 136, 140, 149, # 153, 157, 161 is 5GHz # The channels that are available for use in a particular country differ # according to the regulations of that country. 如果只是要配置正确在可选范围内随便填一个就可以了,但是如果需要选出一个当前环境下最优的一个信道,就需要动动手指了。 我们需要戒指iwlist工具来扫描一下,然后就可以找到最优信道了 ifconfig wlan0 up iwlist wlan0 scan iwlist wlan0 scan iwlist wlan0 scan 扫面了三次,现在我们可以去看下最优信道是哪个了,我的网卡是rtl8188eu,通过以下指令获取 [[email protected]_p3 /]# cat /proc/net/rtl8188eu/wlan0/best_channel The rx cnt of channel 1 =8 The rx cnt of channel 2 = 11 The rx cnt of channel 3 = 12 The rx cnt of channel 4 |
CopyRight 2018-2019 实验室设备网 版权所有 |