11B通道测试脚本如下
手动测试功率
11B
rtwpriv wlan0 mp_pwrctldm stop
rtwpriv wlan0 mp_ctx stop
rtwpriv wlan0 mp_start
rtwpriv wlan0 mp_channel 1
rtwpriv wlan0 mp_bandwidth 40M=0,shortGI=0
rtwpriv wlan0 mp_ant_tx a #mp_ant_tx a "a“代表A 天线 :B代表B天线:测试时记得切换天线
rtwpriv wlan0 mp_rate 22
rtwpriv wlan0 mp_get_txpower 0 #获取efuse 功率因子 "0"代表A天线;1带表B天线rtwpriv wlan0 mp_txpower patha=46,pathb=80 #上一条获取的功率因子填入“patha=46”替换掉46即可。如果测试B天线请替换pathb=80中的“80”
rtwpriv wlan0 mp_ctx background,pkt
rtwpriv wlan0 mp_pwrctldm start
11G通道测试脚本如下
#11G
rtwpriv wlan0 mp_pwrctldm stop
rtwpriv wlan0 mp_ctx stop
rtwpriv wlan0 mp_start
rtwpriv wlan0 mp_channel $1
rtwpriv wlan0 mp_bandwidth 40M=0,shortGI=0
rtwpriv wlan0 mp_ant_tx a
rtwpriv wlan0 mp_rate 108
rtwpriv wlan0 mp_get_txpower 0 rtwpriv wlan0 mp_txpower patha=46,pathb=80
rtwpriv wlan0 mp_ctx background,pkt
rtwpriv wlan0 mp_pwrctldm start
11N HT40通道测试指令脚本如下
#11N HT40
rtwpriv wlan0 mp_pwrctldm stop
rtwpriv wlan0 mp_ctx stop
rtwpriv wlan0 mp_start
rtwpriv wlan0 mp_channel $1
rtwpriv wlan0 mp_bandwidth 40M=1,shortGI=0
rtwpriv wlan0 mp_ant_tx a
rtwpriv wlan0 mp_rate 135
rtwpriv wlan0 mp_get_txpower 0 rtwpriv wlan0 mp_txpower patha=46,pathb=80
rtwpriv wlan0 mp_ctx background,pkt
rtwpriv wlan0 mp_pwrctldm start
11N HT20 通道测试指令脚本如下
#11N HT20
rtwpriv wlan0 mp_pwrctldm stop
rtwpriv wlan0 mp_ctx stop
rtwpriv wlan0 mp_start
rtwpriv wlan0 mp_channel $1
rtwpriv wlan0 mp_bandwidth 40M=0,shortGI=0
rtwpriv wlan0 mp_ant_tx a
rtwpriv wlan0 mp_rate 135
rtwpriv wlan0 mp_get_txpower 0 rtwpriv wlan0 mp_txpower patha=46,pathb=80
rtwpriv wlan0 mp_ctx background,pkt
rtwpriv wlan0 mp_pwrctldm start