Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
apertis-test-cases
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tests
apertis-test-cases
Merge requests
!343
Adding Wi-Fi AP testcases to Apertis
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Adding Wi-Fi AP testcases to Apertis
wip/Wi-Fi_AP
into
apertis/v2023dev1
Overview
116
Commits
1
Pipelines
33
Changes
4
Merged
Benani Sagar Kishore
requested to merge
wip/Wi-Fi_AP
into
apertis/v2023dev1
3 years ago
Overview
45
Commits
1
Pipelines
33
Changes
4
Expand
https://phabricator.apertis.org/T8357
Edited
3 years ago
by
Ariel D'Alessandro
0
0
Merge request reports
Compare
apertis/v2023dev1
version 34
bab852f9
3 years ago
version 33
eb989e6e
3 years ago
version 32
a19bd798
3 years ago
version 31
1db9a6fd
3 years ago
version 30
6e8dfef0
3 years ago
version 29
5b59d2b3
3 years ago
version 28
d041f5e6
3 years ago
version 27
d5561dce
3 years ago
version 26
765b76ba
3 years ago
version 25
ededee10
3 years ago
version 24
1728e779
3 years ago
version 23
1728e779
3 years ago
version 22
1e70e3f4
3 years ago
version 21
4c2b3750
3 years ago
version 20
01d416f5
3 years ago
version 19
77a7c5f5
3 years ago
version 18
dd5f308f
3 years ago
version 17
b0b3134e
3 years ago
version 16
77312909
3 years ago
version 15
4490f157
3 years ago
version 14
4490f157
3 years ago
version 13
771b9065
3 years ago
version 12
932e05a1
3 years ago
version 11
d9fdfc49
3 years ago
version 10
9c35ca5e
3 years ago
version 9
0f282bf9
3 years ago
version 8
eb66cfc7
3 years ago
version 7
217a461b
3 years ago
version 6
36c63881
3 years ago
version 5
85f61ea8
3 years ago
version 4
758a1fdd
3 years ago
version 3
463bf307
3 years ago
version 2
aec23562
3 years ago
version 1
af6ef83a
3 years ago
apertis/v2023dev1 (base)
and
version 21
latest version
d79fba6d
1 commit,
3 years ago
version 34
bab852f9
1 commit,
3 years ago
version 33
eb989e6e
1 commit,
3 years ago
version 32
a19bd798
1 commit,
3 years ago
version 31
1db9a6fd
14 commits,
3 years ago
version 30
6e8dfef0
13 commits,
3 years ago
version 29
5b59d2b3
13 commits,
3 years ago
version 28
d041f5e6
12 commits,
3 years ago
version 27
d5561dce
12 commits,
3 years ago
version 26
765b76ba
11 commits,
3 years ago
version 25
ededee10
10 commits,
3 years ago
version 24
1728e779
9 commits,
3 years ago
version 23
1728e779
9 commits,
3 years ago
version 22
1e70e3f4
8 commits,
3 years ago
version 21
4c2b3750
7 commits,
3 years ago
version 20
01d416f5
6 commits,
3 years ago
version 19
77a7c5f5
5 commits,
3 years ago
version 18
dd5f308f
4 commits,
3 years ago
version 17
b0b3134e
3 commits,
3 years ago
version 16
77312909
2 commits,
3 years ago
version 15
4490f157
1 commit,
3 years ago
version 14
4490f157
1 commit,
3 years ago
version 13
771b9065
4 commits,
3 years ago
version 12
932e05a1
3 commits,
3 years ago
version 11
d9fdfc49
2 commits,
3 years ago
version 10
9c35ca5e
1 commit,
3 years ago
version 9
0f282bf9
2 commits,
3 years ago
version 8
eb66cfc7
1 commit,
3 years ago
version 7
217a461b
2 commits,
3 years ago
version 6
36c63881
1 commit,
3 years ago
version 5
85f61ea8
1 commit,
3 years ago
version 4
758a1fdd
1 commit,
3 years ago
version 3
463bf307
1 commit,
3 years ago
version 2
aec23562
2 commits,
3 years ago
version 1
af6ef83a
1 commit,
3 years ago
4 files
+
450
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
4
Search (e.g. *.vue) (Ctrl+P)
test-cases/wifi-accesspoint-uncontrolled-shutdown-reboot.yaml
0 → 100644
+
116
−
0
Options
metadata
:
name
:
wifi-accesspoint-uncontrolled-shutdown-reboot
format
:
"
Apertis
Test
Definition
1.0"
image-types
:
hmi
:
[
armhf
]
image-deployment
:
-
OSTree
type
:
functional
exec-type
:
manual
priority
:
critical
maintainer
:
"
Apertis
Project"
description
:
"
Test
that
the
Wi-Fi
AP
connection
is
re-established
after
rebooting
the
AP,
which
is
setup
on
the
target."
resources
:
-
"
Two
Wi-Fi
USB
dongles,
see
https://www.apertis.org/reference_hardware/extras/"
pre-conditions
:
-
"
Make
sure
to
connect
the
Wi-Fi
USB
dongles
to
both
target
and
SDK."
expected
:
-
"
After
rebooting
the
target
device,
you
should
be
able
to
reconnect
from
the
SDK
to
the
Wi-Fi
access
point
'KEYMNGMT_TRNSMODE'
running
on
the
target
device."
-
"
On
the
SDK,
ensure
to
be
connected
to
the
'KEYMNGMT_TRNSMODE'
network"
-
|
>$ connmanctl> services
*AR KEYMNGMT_TRNSMODE wifi_1c872cc7c71d_4b45594d4e474d545f50534b_managed_psk
connmanctl>
-
"
On
the
target
device
the
'hostapd'
output
log
should
show
a
successful
connection:"
-
|
>$ journalctl -b -u hostapd
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
below
steps."
-
"
Check
the
wifi
interface
name
(e.g.
'wlan0')
running:"
-
$ WIFI_SERVICE=$(connmanctl services | grep -m 1 -o 'wifi_.*')
-
$ WIFI_IFACE=$(connmanctl services "$WIFI_SERVICE" | grep -o 'Interface=\w\+' | sed s/Interface=//)
-
"
Create
the
file
'/etc/hostapd/hostapd.conf'
with
the
following
content:
-
|
>$
sudo
tee
/etc/hostapd/hostapd.conf
<<EOF
ctrl_interface=/var/run/hostapd
interface=${WIFI_IFACE:?}
driver=nl80211
ssid=KEYMNGMT_TRNSMODE
auth_algs=1
wpa=2
wpa_key_mgmt=WPA-PSK
SAE
wpa_passphrase=12345678
sae_password=12345678
ieee80211w=1
sae_require_mfp=1
wpa_pairwise=CCMP
rsn_pairwise=CCMP
channel=11
ht_capab=[SHORT-GI-20]
ieee80211n=1
hw_mode=g
ieee80211ac=1
vht_oper_chwidth=0
EOF
-
"Created the file '/lib/systemd/network/hostapd.network' with the
following content:"
-
|
>$ sudo tee /lib/systemd/network/hostapd.network <<EOF
[Match]
Name=${WIFI_IFACE:?}
[Network]
Address=192.168.72.1/24
DHCPServer=yes
EOF
-
"
Finally,
run
the
following
commands
on
the
target
device:"
-
"
$
sudo
systemctl
stop
connman"
-
"
$
sudo
rfkill
unblock
wifi"
-
"
$
sudo
modprobe
mac80211"
-
"
$
sudo
iptables
--flush"
-
"
$
sudo
ifconfig
wlan0
up"
-
"
$
sudo
ifconfig
wlan0
192.168.0.1"
-
"
$
sudo
systemctl
up
${WIFI_IFACE:?}"
-
"
$
sudo
systemctl
start
hostapd"
-
"
On
the
SDK,
connect
to
'KEYMNGMT_TRNSMODE'
running
the
following
commands:"
-
|
>$ connmanctl
connmanctl> enable wifi
connmanctl> agent on
Agent registered
connmanctl> scan wifi
Scan completed for wifi
connmanctl> services
KEYMNGMT_TRNSMODE wifi_1c872cc7c71d_4b45594d4e474d545f50534b_managed_psk
connmanctl> connect wifi_1c872cc7c71d_4b45594d4e474d545f50534b_managed_psk
Agent RequestInput wifi_1c872cc7c71d_4b45594d4e474d545f50534b_managed_psk
Passphrase = [ Type=psk, Requirement=mandatory ]
Passphrase? 12345678
Connected wifi_1c872cc7c71d_4b45594d4e474d545f50534b_managed_psk
connmanctl> services
*AR KEYMNGMT_TRNSMODE wifi_1c872cc7c71d_4b45594d4e474d545f50534b_managed_psk
connmanctl>
-
"
After
the
connection
has
been
established,
reboot
the
access
point
by
pressing
the
reboot
button
on
the
target
device.
Then,
on
the
target
device,
restart
the
'hostapd'
daemon
and
'systemd-networkd'
service,
by
running:"
-
"
$
sudo
systemctl
restart
systemd-networkd"
-
"
$
sudo
systemctl
restart
hostapd"
-
"
On
the
SDK,
reconnect
to
'KEYMNGMT_TRNSMODE'
by
re-running
the
previous
'connmanctl'
commands."
Loading