openwrt STA+AP共存模式
2016-07-01 14:52
1141 查看
2、ap+sta共存模式,修改如下配置文件vi /etc/config/wireless
[root@2c56de0481b6 openwrt_widora]# cat package/base-files/files/etc/config/wireless //这个是制作rootfs
config wifi-device radio0
option type ralink
option variant mt7628
option country TW
option hwmode 11g
option htmode HT40
option channel auto
option disabled 0
config wifi-iface ap //AP配置项
option device radio0
option mode ap
option network lan
option ifname ra0
option ssid Widora
option encryption none
config wifi-iface sta //STA配置项
option device radio0
option mode sta
option network wan
option ifname apcli0
option led mediatek:orange:wifi
option ssid Netcore //要连接的ssid
option key 55556666 //要连接的password
option encryption psk2 //加密方式,wpa2
option disabled 1
[root@2c56de0481b6 openwrt_widora]#
要在rc.local中启动一个脚本:
cat package/base-files/files/etc/rc.local
# Put your custom commands here that should be executed once
# the system init finished. By default this file does nothing.
echo Congradulations!!! Openwrt Welcome you!
#sleep 8
#sh /etc/checkwifi.sh
#remark, ssid passwd
connect2ap Netcore 55556666 //启动连接上级router。如果不成功,则只有AP可用。
sleep 5
FMServer & //流媒体server。
exit 0
相关文章推荐
- 解决WIFI无线连接或连接上很慢
- WIFI万能钥匙密码查询接口实例
- Android获取当前已连接的wifi信号强度的方法
- 在Android里完美实现基站和WIFI定位
- Android编程实现获取当前连接wifi名字的方法
- Android开发之Wifi基础教程
- android编程实现设置、打开wifi热点共享供他人连接的方法
- ubuntu用wifi连接android调试程序的步骤
- 设置Android设备WIFI在休眠时永不断开的代码实现
- android开发教程之wifi开发示例
- Android管理与操作Wifi简单实例源码
- 解决ubuntu 15.04 无法开启wifi问题
- 从「林」开始: imx51-linux-rt3070ap-dhcpd
- 如何在联想Y430P安装Fedora24
- OpenWrt 15.05 下安装Samba
- WiFiAssistant 无线承载网络设置助手的开发历程
- 郑轻校园网工具1.0正式版本首发
- win10系统wifi信号很弱怎么办?win10系统wifi不稳定解决方法
- 家属楼如何设置使用免费wifi