内容发布更新时间 : 2025/1/9 8:44:41星期一 下面是文章的全部内容请认真阅读。
OpenWrt MediaTek AP Router 1.2.25
RTS Threshold
uci set wireless.chipname.rtsthres=n n could be: 1~2347
1.2.26 TX Power
uci set wireless.chipname.txpower=n n could be: 1~100
1.2.27 Short Preamble
uci set wireless.chipname.txpreamble=n n could be: 0: Disable 1: Enable
1.2.28 Short Slot
uci set wireless.chipname.shortslot=n n could be: 0: Disable 1: Enable
1.2.29 Tx Burst
uci set wireless.chipname.txburst=n n could be: 0: Disable 1: Enable
1.2.30 Pkt_Aggregate
uci set wireless.chipname.pktaggre=n n could be: 0: Disable 1: Enable
1.2.31 IEEE 802.11H Support
uci set wireless.chipname.pktaggre=n n could be: 0: Disable 1: Enable
1.2.32 Country Code
uci set wireless.chipname.country=str
str could be: ”US”, ”JP” ,”FR” ,”TW”, ”IE” ,”HK” ,”NONE”
MediaTek Confidential
? 2014 - 2015 MediaTek Inc.
Page 25 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 1.2.33
Region 0 1 2 3 4 5 6 7 31 32 33
Channels 1-11 1-13 10-11 10-13 14 1-14 3-9 5-13 1-14 1-11 active scan, 12 and 13 passive scan 1-14 all active scan, 14 b mode only 2.4G Country Region
uci set wireless.chipname.region=n
1.2.34
5G Country Region
uci set wireless.chipname.aregion=n Region 0 1 2 3 4 5 6 7 8 9 10 11
Channels 36, 40, 44, 48, 52, 56, 60, 64, 149, 153, 157, 161, 165 36, 40, 44, 48, 52, 56, 60, 64, 100, 104, 108, 112, 116, 120, 124, 128, 132, 136, 140 36, 40, 44, 48, 52, 56, 60, 64 52, 56, 60, 64, 149, 153, 157, 161 149, 153, 157, 161, 165 149, 153, 157, 161 36, 40, 44, 48 36, 40, 44, 48, 52, 56, 60, 64, 100, 104, 108, 112, 116, 120, 124, 128, 132, 136, 140, 149, 153, 157, 161, 165 52, 56, 60, 64 36, 40, 44, 48, 52, 56, 60, 64, 100, 104, 108, 112, 116, 132, 136, 140, 149, 153, 157, 161, 165 36, 40, 44, 48, 149, 153, 157, 161, 165 36, 40, 44, 48, 52, 56, 60, 64, 100, 104, 108, 112, 116, 120, 149, 153, 157, 161 MediaTek Confidential ? 2014 - 2015 MediaTek Inc. Page 26 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 2
MTK/Ralink Property Packages
Here are packages located under {SDKRoot}/package/ralink. Here is a brief introduction to them.
2.1
2.1.1
Applications
ated
ATE daemon. For factory test.
You should enable the “ATE/QA” option in the driver configuration. (Check “make menuocnfig” -> “ralink properties” -> “drivers” -> “mtxxxx”). Usage:
ated -i ifname # run as a daemon
2.1.2 btnd
A daemon program to handle GPIO button event.
Once it detects a button event (click, hold), it call corresponding shell scripts defined under /etc/btnd/ . Usage:
btnd
Assume that your product has 2 gpio buttons, one for “WiFi WPS”, uses gpio 2, the other for “restore factory settings”, uses gpio 1. Then you can: btnd wps 2 & // “wps” is a given name chosen by you. btnd reset 1 & // just make sure the given name matches the script name under /etc/btnd/. When the user clicked wps button (gpio 2), btnd would call “sh /etc/btnd/wps_click.sh”. When the user held reset button (gpio 1), btnd would call “sh /etc/btnd/reset_hold.sh”. You can put your own task in
2.1.3 eth_mac
Change the Ethernet MAC address in EEPROM.
2.1.4 ethstt
A user tool to query switch port status. Usage:
ethstt # print switch port status ethstat –d # run as a daemon
MediaTek Confidential ? 2014 - 2015 MediaTek Inc. Page 27 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
2.1.5 gpio
A user tool to query switch port status. Usage:
gpio w - writing test (output) gpio r - reading test (input)
gpio i (
2.1.6 nvram
A user tool to manage nvram data.
Usage:
Please check the command help message.
MediaTek Confidential ? 2014 - 2015 MediaTek Inc. Page 28 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.