-
Notifications
You must be signed in to change notification settings - Fork 6.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add hostap configuration build tests #79973
Merged
henrikbrixandersen
merged 13 commits into
zephyrproject-rtos:main
from
jukkar:devel/wifi-supplicant-config-tests
Oct 23, 2024
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
60a4539
hostap: Remove extra IEEE8021X_EAPOL as it was mentioned twice
jukkar c383a20
hostap: Fix hostapd AP compilation error
jukkar 235b9c4
hostap: Add ip-addr.c compilation to the build
jukkar 3f3f7a0
hostap: P2P needs EAPOL to select it
jukkar bf28cb2
hostap: Fix compilation error when enterprise support is enabled
jukkar 1f00d13
hostap: Enterprise mode needs sha1-internal.c
jukkar ecdfbf0
hostap: Fix crypto=none compilation
jukkar dcbebd6
hostap: Remove not found hostapd functions
jukkar 993f7fd
hostap: Add needed include files to fix compilation
jukkar d41d5b6
hostap: Avoid warning of different enum mapping
jukkar 185fc10
tests: net: wifi: Add build test for various config combinations
jukkar b7e2e0b
manifest: hostap: Pull compile error fixes
jukkar b852e86
modules: hostap: Add a config option for WPA control timeout
krish2718 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
cmake_minimum_required(VERSION 3.20.0) | ||
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE}) | ||
project(build_all) | ||
|
||
FILE(GLOB app_sources src/*.c) | ||
target_sources(app PRIVATE ${app_sources}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
CONFIG_TEST=y | ||
CONFIG_TEST_USERSPACE=y | ||
CONFIG_NET_TEST=y | ||
|
||
CONFIG_NETWORKING=y | ||
CONFIG_NET_IPV4=y | ||
CONFIG_NET_IPV6=y | ||
CONFIG_NET_CONFIG_SETTINGS=n | ||
|
||
CONFIG_WIFI=y | ||
CONFIG_WIFI_NM=y | ||
|
||
CONFIG_SHELL=y | ||
CONFIG_NET_SHELL=y | ||
CONFIG_NET_L2_WIFI_SHELL=y | ||
CONFIG_NET_L2_WIFI_MGMT=y | ||
|
||
CONFIG_WIFI_SHELL_MAX_AP_STA=2 | ||
CONFIG_WIFI_MGMT_RAW_SCAN_RESULTS=y | ||
CONFIG_WIFI_MGMT_FORCED_PASSIVE_SCAN=y | ||
CONFIG_WIFI_MGMT_SCAN_SSID_FILT_MAX=3 | ||
CONFIG_WIFI_MGMT_SCAN_CHAN_MAX_MANUAL=10 | ||
CONFIG_WIFI_NM_MAX_MANAGED_INTERFACES=2 | ||
CONFIG_WIFI_MGMT_AP_STA_SKIP_INACTIVITY_POLL=y | ||
CONFIG_WIFI_MGMT_AP_MAX_NUM_STA=10 | ||
|
||
CONFIG_WIFI_NM_WPA_SUPPLICANT=y | ||
CONFIG_WIFI_NM_WPA_SUPPLICANT_DEBUG_LEVEL=0 | ||
CONFIG_WIFI_NM_WPA_SUPPLICANT_WEP=y | ||
CONFIG_WIFI_NM_WPA_SUPPLICANT_ADVANCED_FEATURES=y | ||
CONFIG_WIFI_NM_WPA_SUPPLICANT_AP=y | ||
CONFIG_WIFI_NM_WPA_SUPPLICANT_CLI=y | ||
CONFIG_WPA_CLI=y |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
/* | ||
* Copyright (c) 2024 Nordic Semiconductor ASA | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
int main(void) | ||
{ | ||
return 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
common: | ||
build_only: true | ||
tags: | ||
- drivers | ||
- wifi | ||
- net | ||
platform_allow: | ||
- native_sim | ||
- native_sim/native/64 | ||
tests: | ||
wifi.build.crypto_default: | ||
extra_configs: | ||
- CONFIG_WIFI_NM_WPA_SUPPLICANT_CRYPTO=y | ||
wifi.build.crypto_alt: | ||
extra_configs: | ||
- CONFIG_WIFI_NM_WPA_SUPPLICANT_CRYPTO_ALT=y | ||
wifi.build.crypto_none: | ||
extra_configs: | ||
- CONFIG_WIFI_NM_WPA_SUPPLICANT_CRYPTO_NONE=y | ||
# FIXME: The psa crypto does not work atm so commented out | ||
# the build test temporarily. | ||
# wifi.build.crypto_psa: | ||
# extra_configs: | ||
# - CONFIG_WIFI_NM_WPA_SUPPLICANT_CRYPTO_MBEDTLS_PSA=y | ||
wifi.build.crypto_enterprise: | ||
extra_configs: | ||
- CONFIG_WIFI_NM_WPA_SUPPLICANT_CRYPTO_ALT=y | ||
- CONFIG_WIFI_NM_WPA_SUPPLICANT_CRYPTO_ENTERPRISE=y | ||
- CONFIG_MBEDTLS_TLS_VERSION_1_2=y | ||
- CONFIG_EAP_TLS=y | ||
- CONFIG_EAP_TTLS=y | ||
- CONFIG_EAP_PEAP=y | ||
- CONFIG_EAP_MD5=y | ||
- CONFIG_EAP_MSCHAPV2=y | ||
- CONFIG_EAP_LEAP=y | ||
- CONFIG_EAP_PSK=y | ||
- CONFIG_EAP_PAX=y | ||
- CONFIG_EAP_SAKE=y | ||
- CONFIG_EAP_GPSK=y | ||
- CONFIG_EAP_PWD=y | ||
- CONFIG_EAP_EKE=y | ||
- CONFIG_EAP_IKEV2=y | ||
- CONFIG_EAP_SIM=y | ||
- CONFIG_EAP_AKA=y | ||
wifi.build.wpa3: | ||
extra_configs: | ||
- CONFIG_WIFI_NM_WPA_SUPPLICANT_WPA3=y | ||
- CONFIG_MBEDTLS_TLS_VERSION_1_2=y | ||
wifi.build.wps: | ||
extra_configs: | ||
- CONFIG_WIFI_NM_WPA_SUPPLICANT_WPS=y | ||
- CONFIG_WIFI_NM_WPA_SUPPLICANT_EAPOL=y | ||
- CONFIG_WIFI_NM_WPA_SUPPLICANT_CRYPTO=y | ||
wifi.build.p2p: | ||
extra_configs: | ||
- CONFIG_WIFI_NM_WPA_SUPPLICANT_P2P=y | ||
- CONFIG_WIFI_NM_WPA_SUPPLICANT_CRYPTO=y | ||
wifi.build.hostapd_ap: | ||
extra_configs: | ||
- CONFIG_WIFI_NM_HOSTAPD_AP=y | ||
- CONFIG_WIFI_NM_WPA_SUPPLICANT_INF_MON=n | ||
wifi.build.dpp: | ||
extra_configs: | ||
- CONFIG_WIFI_NM_WPA_SUPPLICANT_CRYPTO_ALT=y | ||
- CONFIG_WIFI_NM_WPA_SUPPLICANT_CRYPTO_ENTERPRISE=y | ||
- CONFIG_WIFI_NM_WPA_SUPPLICANT_DPP=y |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jukkar is the guidance to continue to add the extra configuration items to this test case as they get added to Zephyr?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It might not be practical to add new config options here. I think we should have these set differently by having a Kconfig option that sets needed values like these, and then just select that one option here.