generic_wireless

Predefined wireless tests. wireless is called “Wifi / Bluetooth” in AVL.

Inherit

Bluetooth

pytest_name

bluetooth

args

expected_adapter_count
1
scan_devices
true

ProbeWireless

pytest_name

probe.probe

args

component_list
[
  "wireless"
]
config_file
"/usr/local/factory/py/hwid/v3/default_probe_statement.json"
overridden_rules
[
  [
    "wireless",
    "==",
    1
  ]
]

WifiSSIDList

This test object cannot be run directly. Users have to inherit and modify it.

pytest_name

wifi_throughput

Wireless

Alias of WirelessAntenna for legacy test lists.

pytest_name

wireless_antenna

args

device_name
"wlan0"
ignore_missing_services
true
services
"eval! constants.wireless_services"
switch_antenna_config
{
  "all": [
    3,
    3
  ],
  "aux": [
    2,
    2
  ],
  "main": [
    1,
    1
  ]
}
strength
{
  "all": -60,
  "aux": -60,
  "main": -60
}
wifi_chip_type
null

WirelessAntenna

Auto detect the type of the wifi chip.

pytest_name

wireless_antenna

args

device_name
"wlan0"
ignore_missing_services
true
services
"eval! constants.wireless_services"
switch_antenna_config
{
  "all": [
    3,
    3
  ],
  "aux": [
    2,
    2
  ],
  "main": [
    1,
    1
  ]
}
strength
{
  "all": -60,
  "aux": -60,
  "main": -60
}
wifi_chip_type
null

WirelessAntennaRadiotap

Only allow wifi chips which supports radiotap.

pytest_name

wireless_antenna

args

device_name
"wlan0"
ignore_missing_services
true
services
"eval! constants.wireless_services"
switch_antenna_config
{
  "all": [
    3,
    3
  ],
  "aux": [
    2,
    2
  ],
  "main": [
    1,
    1
  ]
}
strength
{
  "all": -60,
  "aux": -60,
  "main": -60
}
wifi_chip_type
"radiotap"

WirelessAntennaSwitchAntenna

Only allow wifi chips which supports switch_antenna.

pytest_name

wireless_antenna

args

device_name
"wlan0"
ignore_missing_services
true
services
"eval! constants.wireless_services"
switch_antenna_config
{
  "all": [
    3,
    3
  ],
  "aux": [
    2,
    2
  ],
  "main": [
    1,
    1
  ]
}
strength
{
  "all": -60,
  "aux": -60,
  "main": -60
}
wifi_chip_type
"switch_antenna"

WirelessConnect

pytest_name

wireless_connect

args

service_name
[
  {
    "passphrase": "crosfactory",
    "security": "psk",
    "ssid": "crosfactory20"
  },
  {
    "passphrase": "crosfactory",
    "security": "psk",
    "ssid": "crosfactory21"
  }
]

WirelessDisconnect

pytest_name

wireless_connect

args

service_name
[]

WirelessRadiotap

Alias of WirelessAntennaRadiotap for legacy test lists.

pytest_name

wireless_antenna

args

device_name
"wlan0"
ignore_missing_services
true
services
"eval! constants.wireless_services"
switch_antenna_config
{
  "all": [
    3,
    3
  ],
  "aux": [
    2,
    2
  ],
  "main": [
    1,
    1
  ]
}
strength
{
  "all": -60,
  "aux": -60,
  "main": -60
}
wifi_chip_type
"radiotap"