Skip to content
Snippets Groups Projects

Adding Wi-Fi AP testcases to Apertis

Merged Benani Sagar Kishore requested to merge wip/Wi-Fi_AP into apertis/v2023dev1
Compare and
6 files
+ 622
0
Compare changes
  • Side-by-side
  • Inline
Files
6
+ 48
0
metadata:
name: wifi-accesspoint-deactivation
format: "Apertis Test Definition 1.0"
image-types:
hmi: [ armhf, amd64 ]
sdk: [ amd64 ]
image-deployment:
- APT
type: functional
exec-type: manual
priority: critical
maintainer: "Apertis Project"
description: "Test wifi access point mode (AP mode) can be activated/deactivated in the common base of Apertis."
resources:
- "2 Wi-Fi USB dongles. (https://www.apertis.org/reference_hardware/extras/)"
macro_install_packages_preconditions: dnsmasq hostapd
pre-conditions:
- "Ensure that the wifi-wpa2-psk-accesspoint-setup test is up and running before executing this test"
expected:
- "The user should be able to enable/disable the wi-fi AP set up on the target"
- |
>wlan0: AP-STA-CONNECTED 0c:9d:92:70:fd:4c
wlan0: STA 0c:9d:92:70:fd:4c RADIUS: starting accounting session 97DB26400B1D3921
wlan0: AP-STA-DISCONNECTED 0c:9d:92:70:fd:4c
wlan0: STA 0c:9d:92:70:fd:4c IEEE 802.11: authenticated
wlan0: STA 0c:9d:92:70:fd:4c IEEE 802.11: associated (aid 1)
wlan0: AP-STA-CONNECTED 0c:9d:92:70:fd:4c
wlan0: STA 0c:9d:92:70:fd:4c RADIUS: starting accounting session AEBCF08534CAE0B6
wlan0: AP-STA-DISCONNECTED 0c:9d:92:70:fd:4c
wlan0: interface state ENABLED->DISABLED
wlan0: AP-DISABLED
wlan0: CTRL-EVENT-TERMINATING
nl80211: deinit ifname=wlx1c872cc7c71d disabled_11b_rates=0
- |
>root@apertis:/home/user# hostapd_cli disable
Selected interface 'interface_name'
wlxac9e1779c080: AP-DISABLED
nl80211: deinit ifname=wlxac9e1779c080 disabled_11b_rates=0
wlxac9e1779c080: interface state ENABLED->DISABLED
OK
run:
steps:
- "On the target execute root@apertis:/home/user#hostapd_cli disable"
Loading