第一范文网 - 专业文章范例文档资料分享平台

MTK-OpenWrt-3.10.14-SDK

来源:用户分享 时间:2025/5/31 4:17:50 本文由loading 分享 下载这篇文档手机版
说明:文章内容仅供预览,部分内容可能不全,需要完整文档或者需要复制内容,请下载word后使用。下载word有问题请添加微信号:xxxxxxx或QQ:xxxxxx 处理(尽可能给您提供完整文档),感谢您的支持与谅解。

OpenWrt MediaTek AP Router

Security settings

MediaTek Confidential ? 2014 - 2015 MediaTek Inc. This document contains information that is proprietary to MediaTek Inc.

Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited.Page 17 of 34

OpenWrt MediaTek AP Router

MediaTek Confidential ? 2014 - 2015 MediaTek Inc. This document contains information that is proprietary to MediaTek Inc.

Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited.Page 18 of 34

OpenWrt MediaTek AP Router 1

1.1

Wireless configuration via UCI

Basic idea

There are already 2 ways to configure MTK wireless drivers.

1) Using iwpriv command. (eg: iwpriv ra0 set SSID=myrouter)

2) Edit the profile of the driver. (located at /etc/Wireless/chipname/chipname.dat)

rd

Here we introduce the 3 way, which is for the convenience of LuCI development. To use this feature, you should enable uci2dat first. You can find this application at: Menuconfig -> Ralink Properties -> Applications -> uci2dat

Then you can configure MTK wireless drivers via uci commands, like this:

uci set wireless.chipname.option1=value1 uci set wireless.chipname.option2=value2 ……

uci commit wifi down wifi up

1.2 Examples

In your script, you should replace “chipname” with the right name of your wireless chip, (like mt7620, mt7612, mt7602, mt7610 etc).

1.2.1

SSID

This is a little tricky, read the example carefully. uci set wireless.@wifi-iface[n].ssid=newssid

N is the index of the interface you want to change. You can check the interface index by : uci show wireless

You may see something like this:

MediaTek Confidential ? 2014 - 2015 MediaTek Inc. Page 19 of 34

This document contains information that is proprietary to MediaTek Inc.

Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited.

OpenWrt MediaTek AP Router [root@OpenWrt]uci show wireless wireless.mt7612=wifi-device wireless.mt7612.type=mt7612 wireless.mt7612.vendor=ralink wireless.mt7612.channel=0 wireless.mt7612.autoch=2 wireless.@wifi-iface[0]=wifi-iface wireless.@wifi-iface[0].device=mt7612 wireless.@wifi-iface[0].ifname=rai0 wireless.@wifi-iface[0].network=lan wireless.@wifi-iface[0].mode=ap wireless.@wifi-iface[0].ssid=OpenWrt-mt7612 wireless.@wifi-iface[0].encryption=psk2 wireless.@wifi-iface[0].key=12345678 wireless.mt7620=wifi-device wireless.mt7620.type=mt7620 wireless.mt7620.vendor=ralink wireless.mt7620.channel=0 wireless.mt7620.autoch=2 wireless.@wifi-iface[1]=wifi-iface wireless.@wifi-iface[1].device=mt7620 wireless.@wifi-iface[1].ifname=ra0 wireless.@wifi-iface[1].network=lan wireless.@wifi-iface[1].mode=ap wireless.@wifi-iface[1].ssid=OpenWrt-mt7620 wireless.@wifi-iface[1].encryption=psk2 wireless.@wifi-iface[1].key=12345678 Then you have 2 WiFi interfaces, one has SSID “OpenWrt-mt7620” and the other has SSID “OpenWrt-mt7612”. If you want to change “OpenWrt-mt7620” to “MyNew7620”, you should call:

uci set wireless.@wifi-iface[1].ssid=MyNew7620 # “1” is the index of “OpenWrt-mt7620”

1.2.2

Encryption

Read the example in “SSID” section first, then you can: uci set wireless.@wifi-iface[n].encryption=x x could be: x psk-mixed psk2 psk wpa-mixed wpa2 encryption WPAPSKWPA2PSK WPA2PSK WPAPSK WPAWPA2 WPA2 ? 2014 - 2015 MediaTek Inc.

Page 20 of 34

MediaTek Confidential

This document contains information that is proprietary to MediaTek Inc.

Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited.

搜索更多关于: MTK-OpenWrt-3.10.14-SDK 的文档
MTK-OpenWrt-3.10.14-SDK.doc 将本文的Word文档下载到电脑,方便复制、编辑、收藏和打印
本文链接:https://www.diyifanwen.net/c9cp6b6on3637lyc0yeje_5.html(转载请注明文章来源)
热门推荐
Copyright © 2012-2023 第一范文网 版权所有 免责声明 | 联系我们
声明 :本网站尊重并保护知识产权,根据《信息网络传播权保护条例》,如果我们转载的作品侵犯了您的权利,请在一个月内通知我们,我们会及时删除。
客服QQ:xxxxxx 邮箱:xxxxxx@qq.com
渝ICP备2023013149号
Top