|Hauke Mehrtens 4c8a09cc45 tools: Set mode for new file /tmp/mt76-test-%s||2 months ago|
|CMakeLists.txt||8 months ago|
|README.md||8 months ago|
|eeprom.c||1 month ago|
|fields.c||3 months ago|
|main.c||8 months ago|
|mt76-test.h||8 months ago|
This utility can be used to perform some support functions required for Rx/Tx calibration, similar to the ATE command set of the SDK driver.
Its main functionality is setting test parameters and dumping statistics. It can also be used to prepare modified EEPROM data for writing into flash.
mt76-test phy0 set <parameter>=<value>[…]
mt76-test phy0 dump
mt76-test phy0 dump stats
The test state is controlled through the
state parameter. The following state values are supported:
off: Normal operation (default)
idle: Testmode enabled, but no specific test active
tx_frames: Send a number of packets with configurable rate/txpower
rx_frames: Receive packets and show RSSI and packet count/PER
Setting a state activates it even if the value is the same as before. Setting it to
tx_frames triggers sending packets immediately. Setting
rx_frames enables receive mode and can also be used to clear rx statistics.
To run tests, you first need to disable all normal interfaces, set up a monitor mode interface and configure it to the channel/bandwidth you intend to use.
| Parameter name | ATE parameter | Description |
ATE | Test state |
ATETXCNT | Number of packets to send |
ATETXLEN | Length of packets to send |
ATETXMODE | PHY mode (possible values:
tx_rate_nss | | Number of spatial streams (VHT only) |
ATETXMCS | MCS or legacy rate index |
ATETXGI | Enable short guard interval |
ATETXLDPC | Enable LDPC |
ATETXPOWERCTRL | Firmware transmit power control feature |
ATETXPOW0-3 | Per-chain half-dBm transmit power,
0 means default value, e.g.
ATETXANT | Transmit antenna bitmask |
ATETXFREQOFFSET | Frequency offset |