一、源代码替换
从本网址下载文件,替换package/ramips/applications/uci2dat/目录所有文件
二、配置编译选项,运行 make menuconfig
MTK Properties ---> Drivers ---> <*> kmod-mt7628.. --->WiFi Generic Feature Options --->
-------------------------------------------------------------------------------------+ |
| | -*- Basic Functions | |
| | [*] WSC (WiFi Simple Config) | |
| | [*] WSC V2(WiFi Simple Config Version 2.0) | |
| | [*] 802.11n Draft3 | |
| | [ ] PMF | |
| | [ ] LLTD (Link Layer Topology Discovery Protocol) | |
| | [ ] 802.11e DLS ((Direct-Link Setup) Support | |
| | [ ] WAPI Support | |
| | [ ] IGMP snooping | |
| | [ ] NETIF Block | |
| | [*] New Rate Adaptation support | |
| | [*] Intelligent Rate Adaption | |
| | [ ] Adaptive Group Switching | |
| | [ ] IDS (Intrusion Detection System) Support | |
| | [ ] Work Queue | |
| | [ ] SKB Recycle(Linux) | |
| | [*] LED Support | |
| | [*] ATE/QA Support | |
| | [ ] Memory Optimization | |
| | [*] UAPSD support
WiFi Operation Modes --->
[*] WDS | |
| | [*] MBSSID | |
| | [*] AP-Client Support | |
| | [*] MAC Repeater Support | |
| | [ ] SNIFFER | |
| | [ ] Concurrent WPS Support | |
| | [ ] LLTD (Link Layer Topology Discovery Protocol) | |
| | [ ] Airplay Support
保持上面配置,编译openwrt工程源代码
三、升级上面编译出来的固件后,进行设置STA功能
1、查看周围热信息
iwpriv apcli0 set SiteSurvey=0 && sleep 2 && iwpriv apcli0 get_site_survey
如下所示:
2、修改/etc/config/wireless文件信道、SSID、KEY和密码模式。
config wifi-device mt7628
option channel '4'
config wifi-iface
option device mt7628
option ifname ra0
option network lan
option mode ap
option ssid MTK4G_B26604
option encryption psk2
option key 12345678
option ApCliEnable '1' -->打开使能
option ApCliSsid 'MTK4G_B26604' -->前端SSID
option ApCliAuthMode 'WPA2PSK' -->前端的authmode
option ApCliEncrypType 'AES' -->前端加密
option ApCliWPAPSK '123456789' -->前端的密码
3、修改一下/etc/config/network文件
config interface 'wan'
option ifname 'apcli0'
option proto 'dhcp'
4、重启网络 /etc/init.d/network restart
5、验证运行 iwconfig apcli0查看信息(或者ifconfig apcli0查看有没有获取IP)