Skip to content

Commit

Permalink
tests: wifi: nrf_wifi: reduce config overrides
Browse files Browse the repository at this point in the history
Reduce the number of config overrides needed for the various testcases
by only enabling the options if needed in the first place.

Signed-off-by: Jordan Yates <jordan@embeint.com>
  • Loading branch information
JordanYates committed Jan 22, 2025
1 parent 6ff8e23 commit 70b41da
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 31 deletions.
40 changes: 40 additions & 0 deletions tests/drivers/wifi/nrf_wifi/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
#
# Copyright (c) 2025 Embeint Inc
#
# SPDX-License-Identifier: Apache-2.0
#

if !CONFIG_WIFI_USAGE_MODE_SCAN_ONLY

configdefault NET_SOCKETS
default y
configdefault NET_LOG
default y
configdefault NET_IPV6
default y
configdefault NET_IPV4
default y
configdefault NET_UDP
default y
configdefault NET_TCP
default y
configdefault NET_DHCPV4
default y
configdefault DNS_RESOLVER
default y

configdefault NET_STATISTICS
default y
configdefault NET_STATISTICS_WIFI
default y
configdefault NET_STATISTICS_USER_API
default y

configdefault NET_PKT_RX_COUNT
default 8
configdefault NET_PKT_TX_COUNT
default 8

endif # !CONFIG_WIFI_USAGE_MODE_SCAN_ONLY

source "Kconfig.zephyr"
16 changes: 0 additions & 16 deletions tests/drivers/wifi/nrf_wifi/prj.conf
Original file line number Diff line number Diff line change
Expand Up @@ -5,27 +5,11 @@
#
CONFIG_WIFI=y
CONFIG_WIFI_NRF70=y
CONFIG_WIFI_NM_WPA_SUPPLICANT=y
CONFIG_BUILD_ONLY_NO_BLOBS=y

CONFIG_TEST_RANDOM_GENERATOR=y
# Networking
CONFIG_NETWORKING=y
CONFIG_NET_SOCKETS=y
CONFIG_NET_LOG=y
CONFIG_NET_IPV6=y
CONFIG_NET_IPV4=y
CONFIG_NET_UDP=y
CONFIG_NET_TCP=y
CONFIG_NET_DHCPV4=y
CONFIG_DNS_RESOLVER=y

CONFIG_NET_STATISTICS=y
CONFIG_NET_STATISTICS_WIFI=y
CONFIG_NET_STATISTICS_USER_API=y

CONFIG_NET_PKT_RX_COUNT=8
CONFIG_NET_PKT_TX_COUNT=8

# Below section is the primary contributor to SRAM and is currently
# tuned for performance, but this will be revisited in the future.
Expand Down
17 changes: 2 additions & 15 deletions tests/drivers/wifi/nrf_wifi/testcase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,24 +11,13 @@ tests:
extra_configs:
- CONFIG_NRF70_RADIO_TEST=y
- CONFIG_NETWORKING=n
- CONFIG_WIFI_NM_WPA_SUPPLICANT=n
nrf70.build.scan_only:
extra_configs:
- CONFIG_NRF70_SCAN_ONLY=y
- CONFIG_NETWORKING=y
- CONFIG_NET_DHCPV4=n
- CONFIG_NET_NATIVE=n
- CONFIG_NET_OFFLOAD=y
- CONFIG_WIFI_NM_WPA_SUPPLICANT=n
- CONFIG_WIFI_USAGE_MODE_SCAN_ONLY=y
nrf70.build.raw_scan_results:
extra_configs:
- CONFIG_WIFI_USAGE_MODE_SCAN_ONLY=y
- CONFIG_WIFI_MGMT_RAW_SCAN_RESULTS=y
- CONFIG_NRF70_SCAN_ONLY=y
- CONFIG_NETWORKING=y
- CONFIG_NET_DHCPV4=n
- CONFIG_NET_NATIVE=n
- CONFIG_NET_OFFLOAD=y
- CONFIG_WIFI_NM_WPA_SUPPLICANT=n
nrf70.build.raw_tx:
extra_configs:
- CONFIG_NRF70_RAW_DATA_TX=y
Expand All @@ -42,5 +31,3 @@ tests:
extra_configs:
- CONFIG_NRF70_OFFLOADED_RAW_TX=y
- CONFIG_NETWORKING=n
- CONFIG_WIFI_NM_WPA_SUPPLICANT=n
- CONFIG_NET_L2_WIFI_MGMT=n

0 comments on commit 70b41da

Please sign in to comment.