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
+ 657
0
Compare changes
  • Side-by-side
  • Inline
Files
6
+ 49
0
metadata:
name: wifi-accesspoint-deactivation
format: "Apertis Test Definition 1.0"
image-types:
hmi: [ armhf ]
sdk: [ amd64 ]
image-deployment:
- OSTree
type: functional
exec-type: manual
priority: critical
maintainer: "Apertis Project"
description: "Test WiFi access point (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 '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 setup on the target device, running:"
- |
>$ sudo hostapd_cli disable
Selected interface 'wifi_interface_name'
wlxac9e1779c080: AP-DISABLED
nl80211: deinit ifname=wlxac9e1779c080 disabled_11b_rates=0
wlxac9e1779c080: interface state ENABLED->DISABLED
OK
- |
>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
run:
steps:
- "On the target device execute the following command:"
- "$ sudo hostapd_cli disable"
Loading