【MTK】iwpriv命令说明
-
CountryRegion 2.4GHz的国家地区码,不同的地区码信道选择范围不一样,范围是0~7,31~33
iwpriv ra0 set CountryRegion=5
-
CountryRegionABand 5G的国家地区码
-
CountryCode 无线国家码
-
国家码简写标准:https://www.iso.org/obp/ui/#search
iwpriv ra0 set CountryCode=cn
-
ChannelGeography:信道地理类型
0:Outdoor 1:Indoor 2:Both
-
.SSID 无线SSID,1~32 ASCII码
iwpriv ra0 set SSID="AAA"
-
WirelessMode 无线模式
1.legacy 11B only;2.legacy 11A only;3.legacy 11a/b/g mixed;4.legacy 11G only;5.11ABGN mixed
6.11N only in 2.4G; 7.11GN mixed;8.11AN mixed; 9.11BGN mixed; 10.11AGN mixed;11.11N only in 5G;
14.11A/AN/AC mixed 5G band only;15. 11AN/AC mixed 5G band only. -
Channel 无线channel
Channel=0; 0表示自动扫描; -
BasicRate 无线支持的基本速率集
1.1Mbps;2.2Mbps;3.1Mbps,2Mbps;4.5.5Mbps;15.1Mbps,2Mbps,5.5Mbps,11Mbps; -
Beacon Period Beacon帧的周期
iwpriv ra0 set BeaconPeriod=100
-
DtimPeriod duratin time 1~255
iwpriv ra0 set DtimPeriod=64
-
TxPower 传输功率,0~100
iwpriv ra0 set TxPower=99
-
DisableOLBC
-
BGProtection 启用/禁用 无线11B or 11G保护
0:auto;1:on;2:off -
MaxStaNum 最大sta连接数量
0:disable 1~32 -
TxAntenna 配置Tx天线数量
iwpriv ra0 set TxAntenna=1
-
RxAntenna 配置Rx天线数量
-
TxPreamble 启用/禁用Tx 前导码
iwpriv ra0 set TxPreamble=0
-
RTSThreshold 设置RTS 阈值 1~2347
-
FragThreshold 设置分片包阈值,256~2346
iwpriv ra0 set FragThreshold=1024
-
TxBurst 启用/禁用Tx burst,0:disable;1:enable
iwpriv ra0 set TxBurst=1
-
PktAggregate 启用/禁用 Tx 帧聚合,0:disable,1:enable
-
NoForwarding 启用或禁用不同的sta的包在相同的SSID转发,0:disable;1:enable
iwpriv ra0 set NoForwarding=0
-
NoForwardingBTNBSSID,禁用或启用在每个BSSID之间不转发0:disable;1:enable
-
NoForwardingMBCast,禁用或启用不抓发组播/多播包
-
HideSSID,禁用或启用隐藏SSID,0:disable;1:enable
iwpriv ra0 set HideSSID=0
-
StationKeepAlive禁用或启用周期性自动检测活跃的sta,0:disable;1:enable
iwpriv ra0 set StationKeepAlive=1
-
ShortSlot,禁用或启用short slot time,0:disable;1:enable
iwpriv ra0 set ShortSlot=1
-
AutoChannelSelect,启用禁用信道自动选则,0,disable;1:旧算法,2:新算法;
-
Debug 设置WLAN debug等级(0~5) 0:off;1:Error;2:Warning;3:Trace;4:Info;5:Loud
iwpriv ra0 set Debug=3
-
DriverVersion 检测无线驱动版本
iwpriv ra0 set DriverVersion=0
-
AccessPolicy 配置访问控制规则,0:允许访问AP,1:禁止访问AP
iwpriv ra0 set AccessPolicy=0
-
ResetCounter,重设计算器
iwpriv ra0 set ResetCounter=1
-
SiteSurvey 请求动作做站点测量
iwpriv ra0 set SiteSurvey=
被动扫描:空串,iwpriv ra0 set SiteSurvey=
主动扫描:目的SSID,iwpriv ra0 set SiteSurvey=Target_SSID -
CountryString 设置国家
iwpriv ra0 set CountryString=China
-
FixedTxMode设置发送调制模式,CCK OFDM HT
iwpriv ra0 set FixedTxMode=CCK
- DisConnectSta断开一个指定的STA
iwpriv ra0 set DisConnectSta=00:11:22:33:44:55
* - DisConnectAllSta 断开所有sta
iwpriv ra0 set DisConnectAllSta=1
* - McastPhyMode 设置多播物理模式,0:Disable; 1:CCK;2:OFDM;3:HTMIX
iwpriv ra0 set McastPhyMode=0
* - McastMcs设置多播包的MCS,0~15
iwpriv ra0 set McastMcs=0
* - MaxStaNum 现在每一个BSS可以管理sta的最大值 1~32
iwpriv ra0 set MaxStaNum=0
0:禁用限制
* - AutoFallBack 启用/禁用自动降低速率功能。0:disable; 1:enable
iwpriv ra0 set AutoFallBack=1
* -
MBSSWirelessMode 设置MBSS 无线物理方式
iwpriv ra0 set MBSSWirelessMode=1
0:802.11B/G mixed
1:802.11B only
2:801.11A only
4:801.11G only
6:801.11N only
7:801.11G/N mixed
8:801.11A/N mixed
9:801.11B/G/Nmixed
10:801.11A/G/N mixed
11:801.11N in 5G band only -
HtBw HT信道带宽设置, 0:20MHz;1:20/40 MHz
iwpriv ra0 set HtBw=1
-
HtMcs 设置无线调制编码策略, 0~15,32:fix MCS rate, 33,自动适配
iwpriv ra0 set HtMcs=33
-
HtGi 设置无线guard 间隔,0:长间隔;1短间隔
iwpriv ra0 set HtGi=1
-
HtOpMode 设置HT操作模式,0:HT混合模式,1:HT greenfield模式
iwpriv ra0 set HtOpMode=0
-
HtBaWinSize 设置Block Ack 窗口大小,1~64
iwpriv ra0 set HtBaWinSize=64
-
HtTxBASize 设置一次传输burst中AMPDU聚合包的个数,1~64
iwpriv ra0 set HtBASize=64
-
HtAmsdu 启用禁用A-MSDU,0 禁用,1启用
iwpriv ra0 set HtAmsdu=0
-
HtAutoBa 启用禁用自动block ack,0 禁用,1启用
iwpriv ra0 set HtAutoBa=1
-
HtMimoPs 启用禁用HT MIMMO power save 模式,1:enable,0:disable
iwpriv ra0 set HtMimoPs=1
-
AP2040Rescan 触发HT20/40 coexistence重新扫描,1:触发
iwpriv ra0 set AP2040Rescan=1
-
HtBssCoex 启用禁用HT BSS coexistence,0 禁用,1启用
iwpriv ra0 set HtBssCoex=1
-
AssocReqRssiThres设置关联请求时接收灵敏度的阈值,使拒绝STA的关联请求在弱信号的情况下
iwpriv ra0 set AssocReqRssiThres=-88
0:关闭
0~-100RSSI的值 -
stat 显示无线统计信息
iwpriw ra0 stat
或者:while [ 1 ]; do iwpriv ra0 set ResetCounter=1; sleep 1; iwpriv ra0 stat; done;
-
get_site_survey 获取扫描信息
iwpriv ra0 get_site_survey
执行该命令前先执行iwpriv ra0 set SiteSurvey= -
get_mac_table 获取连接到AP的sta的mac地址信息
iwpriv ra0 get_mac_talbe
-
get_ba_table 显示BlackACK table
iwpriv ra0 get_ba_table
-
show 显示信息
iwpriv ra0 show [parameter]
[parameter list]
1.driverinfo
2.stat
3.stainfo
4.stacountinfo
5.stasecinfo
6.bainfo
7.connStatus
8.reptinfo
9.wdsinfo
10.igmpinfo
11.mbss
12.blockch