Skip to content

Contents

Create an ssh connection

https://dev.azure.com/lede/bitswrt-UserGuides/_wiki/wikis/UserGuides/1689/debug-ssh

Operation method: Linux Command

Turn on testmode

wifi down
rmmod monitor
rmmod wifi_3_0
rmmod wifi_2_0
rmmod qca_ol
insmod qca_ol testmode=1
insmod wifi_3_0
insmod wifi_2_0

variable

--txfreq 2412 --txrate 23 --rateBw 4 --nss 1 --mode bw20 --txpwr 10 --txchain 1

NHX6018 athtestcmd example

2.4GHz Sample Tx commands with explanation

freq 2412

  • TX on
qcatestcmd -i wifi1 --tx tx99 --phyId 1 --txfreq 2412 --txrate 23 --rateBw 4 --nss 1 --mode bw20 --txpwr 10 --txchain 1
  • TX on MIMO
qcatestcmd -i wifi1 --tx tx99 --phyId 1 --txfreq 2412 --txrate 23 --rateBw 4 --nss2 --mode bw20 --txpwr 10
root@NHX6018-0-NPN-256M32-D4:/# qcatestcmd -i wifi1 --tx tx99 --phyId 1 --txfreq 2412 --txrate 23 --rateBw 4 --nss2 --mode bw20 --txpwr 10
channel=2412, opCode 1, flags 0x18
TLV2p0
copying 304, 0x5 0x0 0x0
sending 304, 0x5 0x0 0x0
TX Reponse: status 0
TX Reponse: phyId 1
00 10 00 00 30 01 00 00 05 00 00 00 02 00 00 00 00 00 00 00 14 01 00 00 28 48 00 00 00 00 00 00 00 00 00 00 0E 00 00 00 2F 5B 05 2F 0F 00 00 00 35 00 00 00 EF 46 5A 14 03 00 00 00 A6 00 00 00 14 52 E6 44 01 00 00 00 36 00 00 00 50 3E BD 54 6C 09 00 00 E5 00 00 00 78 1C 7B 00 17 00 00 00 5F 01 00 00 97 31 28 1A 02 00 00 00 38 00 00 00 52 1C E2 02 02 00 00 00 E6 00 00 00 3B 48 8E 0E 0A 00 00 00 42 00 00 00 F8 7B B5 29 18 00 00 00 44 00 00 00 46 32 EC 3F DC 05 00 00 2C 00 00 00 D4 AA A7 05 04 00 00 00 5E 01 00 00 22 1E EF 45 02 00 00 00 5A 00 00 00 43 38 DF 14 06 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 CA 00 00 00 FF 00 00 00 EF 00 00 00 5B 00 00 00 E2 1F C4 64 06 00 00 00 00
sent 304
root@NHX6018-0-NPN-256M32-D4:/#
  • TX off
qcatestcmd -i wifi1 --tx off --phyId 1

freq 2437

  • TX on
qcatestcmd -i wifi1 --tx tx99 --phyId 1 --txfreq 2437 --txrate 23 --rateBw 4 --nss 1 --mode bw20 --txpwr 10 --txchain 1
  • TX off
qcatestcmd -i wifi1 --tx off --phyId 1

freq 2462

  • TX on
qcatestcmd -i wifi1 --tx tx99 --phyId 1 --txfreq 2462 --txrate 23 --rateBw 4 --nss 1 --mode bw20 --txpwr 10 --txchain 1
  • TX off
qcatestcmd -i wifi1 --tx off --phyId 1

2.4GHz Sample Rx commands with explanation

  • The following shows the sample command to start reception in promiscuous mode in 2.4 GHz.
qcatestcmd -i wifi<x> --rx promis --phyId <x> --rxfreq 2412 --rateBw 4
  • The following shows the sample command to start reception in filter mode in 2.4 GHz.
qcatestcmd -i wifi<x> --setbssid 01:00:00:C0:FF:EE --rx filter --phyId <x> --
rxfreq 2412 --rateBw 4
  • The following shows the sample command to stop receiving and collect the report in 2.4 GHz.
qcatestcmd -i wifi<x> --rx report --phyId <x>

5GHz Sample Tx commands with explanation

freq 5210

  • TX on
qcatestcmd -i wifi0 --tx tx99 --phyId 0 --txfreq 5210 --txrate 29 --rateBw 6 --nss 1 --txpwr 10 --txchain 1
  • TX on MIMO
qcatestcmd -i wifi0 --tx tx99 --phyId 0 --txfreq 5210 --txrate 29 --rateBw 6 --nss2 --txpwr 10
root@NHX6018-0-NPN-256M32-D4:/# qcatestcmd -i wifi0 --tx tx99 --phyId 0 --txfreq 5210 --txrate 29 --rateBw 6 --nss2 --txpwr 10
qcatestcmd: unrecognized option: nss2
channel=5210, opCode 1, flags 0x18
TLV2p0
copying 280, 0x5 0x0 0x0
sending 280, 0x5 0x0 0x0
00 10 00 00 18 01 00 00 05 00 00 00 02 00 00 00 00 00 00 00 FC 00 00 00 94 60 00 00 00 00 00 00 00 00 00 00 0E 00 00 00 2F 5B 05 2F 0D 00 00 00 35 00 00 00 EF 46 5A 14 03 00 00 00 A6 00 00 00 14 52 E6 44 00 00 00 00 36 00 00 00 50 3E BD 54 5A 14 00 00 E5 00 00 00 78 1C 7B 00 1D 00 00 00 E6 00 00 00 3B 48 8E 0E 0A 00 00 00 42 00 00 00 F8 7B B5 29 18 00 00 00 44 00 00 00 46 32 EC 3F DC 05 00 00 2C 00 00 00 D4 AA A7 05 06 00 00 00 5E 01 00 00 22 1E EF 45 02 00 00 00 5A 00 00 00 43 38 DF 14 06 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 CA 00 00 00 FF 00 00 00 EE 00 00 00 5B 00 00 00 E2 1F C4 64 06 00 00 00 00 00 00 00 00 00 00 00 03 00 00 00 7F 00 00 00 03 00 00 00 40 00 00 00 33 00 00 00 5C 00 00 00 11 4B 43 05 06 00 00 00 00 00 00 00 00 00 00 00 03 00 00 00 7F 00 00 00 11 00 00 00 12 00 00 00 13 00 00 00 3E 00 00 00 9C 6D 0A 50 00 00 00 00
sent 280
root@NHX6018-0-NPN-256M32-D4:/#
  • TX off
tx off: qcatestcmd -i wifi0 --tx off --phyId 0

freq 5530

  • TX on
qcatestcmd -i wifi0 --tx tx99 --phyId 0 --txfreq 5530 --txrate 29 --rateBw 6 --nss 1 --txpwr 10 --txchain 1
  • TX off
tx off: qcatestcmd -i wifi0 --tx off --phyId 0

freq 5610

  • TX on
qcatestcmd -i wifi0 --tx tx99 --phyId 0 --txfreq 5610 --txrate 29 --rateBw 6 --nss 1 --txpwr 10 --txchain 1
  • TX off
tx off: qcatestcmd -i wifi0 --tx off --phyId 0

freq 5690

  • TX on
qcatestcmd -i wifi0 --tx tx99 --phyId 0 --txfreq 5690 --txrate 29 --rateBw 6 --nss 1 --txpwr 10 --txchain 1
  • TX off
tx off: qcatestcmd -i wifi0 --tx off --phyId 0

freq 5775

  • TX on
qcatestcmd -i wifi0 --tx tx99 --phyId 0 --txfreq 5775 --txrate 29 --rateBw 6 --nss 1 --txpwr 10 --txchain 1
  • TX off
tx off: qcatestcmd -i wifi0 --tx off --phyId 0

freq 5855

  • TX on
qcatestcmd -i wifi0 --tx tx99 --phyId 0 --txfreq 5855 --txrate 29 --rateBw 6 --nss 1 --txpwr 10 --txchain 1
  • TX off
tx off: qcatestcmd -i wifi0 --tx off --phyId 0

5 GHz Sample Rx commands with explanation

  • The following shows the sample command to start reception in promiscuous mode in 5 GHz.
qcatestcmd -i wifi<x> --rx promis --phyId <x> --rxfreq 5180 --rateBw 4
  • The following shows the sample command to start reception in filter mode in 5 GHz.
qcatestcmd -i wifi<x> --setbssid 01:00:00:C0:FF:EE --rx filter --phyId <x> --
rxfreq 5180 --rateBw 4
  • The following shows the sample command to stop receiving and collect the report in 5 GHz.
qcatestcmd -i wifi<x> --rx report --phyId <x>