我的路由器是网件Netgear WND4300,刷的是OpenWrt第三方固件。刷完后开启无线网络,发现iphone5s在5g下无线传输速率只有65Mbps,远低于理论值。后发现需在路由器里做如下配置可解决:
1,进入路由器管理界面,编辑无线配置,无线安全中把加密设成“WPA2-PSK”,算法“AES”。
2,HT mode设为40MHz,勾选“强制40MHz频宽”
3,“无线电功率”也可调整,比如100mW
4,SSH登录路由器,编辑文件/etc/config/wireless,注意下面的高亮部分的修改:
config wifi-device 'radio0' option type 'mac80211' option channel '11' option hwmode '11ng' option path 'pci0000:00/0000:00:11.0' option txpower '20' option country 'US' option htmode 'HT40' option noscan '1' config wifi-device 'radio1' option type 'mac80211' option hwmode '11na' option path 'pci0000:00/0000:00:12.0' option country 'US' option channel '161' option txpower '18' option htmode 'HT40+' option noscan '1' config wifi-iface option device 'radio1' option network 'lan' option mode 'ap' option ssid 'OpenWrt_5' option key '12345678' option encryption 'psk2+ccmp' config wifi-iface option device 'radio0' option mode 'ap' option ssid 'OpenWrt_2' option network 'lan' option encryption 'psk2+ccmp' option key '12345678'