Skip to content

Commit b7db6f3

Browse files
committed
samples: wifi: shutdown: Fix build errors
Shutdown sample assumes default nRF70 mode is scan and doesn't support any other mode. With the migration to upstream scan only is limited to nRF7000 shield, so, remove other combinations. Also, add nRF7000 with 5340 as this was the main usecase for testing this sample. Signed-off-by: Chaitanya Tata <[email protected]>
1 parent 6aecabc commit b7db6f3

File tree

2 files changed

+6
-28
lines changed

2 files changed

+6
-28
lines changed

samples/wifi/shutdown/README.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,12 @@ Building and running
5050

5151
.. include:: /includes/build_and_run_ns.txt
5252

53-
To build for the nRF7002 DK, use the ``nrf7002dk/nrf5340/cpuapp`` board target.
53+
To build for the nRF7000 EK, use the ``nrf5340dk/nrf5340/cpuapp`` board target.
5454
The following is an example of the CLI command to demonstrate Wi-Fi shutdown:
5555

5656
.. code-block:: console
5757
58-
west build -b nrf7002dk/nrf5340/cpuapp
58+
west build -b nrf5340dk/nrf5340/cpuapp -- -DSHIELD=nrf7002ek_nrf7000
5959
6060
Disable auto-start of the Wi-Fi driver
6161
--------------------------------------
@@ -65,7 +65,7 @@ You can disable it by setting the :kconfig:option:`CONFIG_NRF_WIFI_IF_AUTO_START
6565

6666
.. code-block:: console
6767
68-
west build -b nrf7002dk/nrf5340/cpuapp -DCONFIG_NRF_WIFI_IF_AUTO_START=n
68+
west build -b nrf5340dk/nrf5340/cpuapp -- -DSHIELD=nrf7002ek_nrf7000 -DCONFIG_NRF_WIFI_IF_AUTO_START=n
6969
7070
With this configuration, the Wi-Fi network interface is not automatically brought up by the Zephyr networking stack.
7171
You must press **Button 1** to bring up the Wi-Fi network interface.
@@ -85,7 +85,7 @@ Testing
8585
*** Booting Zephyr OS build v3.3.99-ncs1-26-ge405279d2134 ***
8686
[00:00:00.440,460] <inf> wifi_nrf: Firmware (v1.2.8.1) booted successfully
8787
88-
[00:00:00.638,397] <inf> scan: Starting nrf7002dk_nrf5340_cpuapp with CPU frequency: 64 MHz
88+
[00:00:00.638,397] <inf> scan: Starting nrf5340dk_nrf5340_cpuapp with CPU frequency: 64 MHz
8989
9090
[00:00:00.642,608] <inf> scan: Scan requested
9191

samples/wifi/shutdown/sample.yaml

Lines changed: 2 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -3,38 +3,16 @@ sample:
33
application
44
name: Wi-Fi shutdown
55
tests:
6-
sample.nrf7002.shutdown:
7-
sysbuild: true
8-
build_only: true
9-
integration_platforms:
10-
- nrf7002dk/nrf5340/cpuapp
11-
platform_allow: nrf7002dk/nrf5340/cpuapp
12-
tags: ci_build sysbuild ci_samples_wifi
13-
sample.nrf7001.shutdown:
14-
sysbuild: true
15-
build_only: true
16-
integration_platforms:
17-
- nrf7002dk/nrf5340/cpuapp/nrf7001
18-
platform_allow: nrf7002dk/nrf5340/cpuapp/nrf7001
19-
tags: ci_build sysbuild ci_samples_wifi
20-
skip: true
21-
sample.nrf7002_eks.shutdown:
22-
sysbuild: true
23-
build_only: true
24-
extra_args: SHIELD=nrf7002ek
25-
integration_platforms:
26-
- nrf5340dk/nrf5340/cpuapp
27-
- nrf52840dk/nrf52840
28-
platform_allow: nrf5340dk/nrf5340/cpuapp nrf52840dk/nrf52840
29-
tags: ci_build sysbuild ci_samples_wifi
306
sample.nrf7000_location.shutdown:
317
sysbuild: true
328
build_only: true
339
extra_args: SHIELD=nrf7002ek_nrf7000
3410
integration_platforms:
11+
- nrf5340dk/nrf5340/cpuapp
3512
- nrf9160dk/nrf9160/ns
3613
- nrf9161dk/nrf9161/ns
3714
platform_allow:
15+
- nrf5340dk/nrf5340/cpuapp
3816
- nrf9160dk/nrf9160/ns
3917
- nrf9161dk/nrf9161/ns
4018
- nrf9151dk/nrf9151/ns

0 commit comments

Comments
 (0)