Skip to content
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

WiFi: allow to use Zephyr native stack #47

Merged
merged 7 commits into from
Oct 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion drivers/wifi/siwx917/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# SPDX-License-Identifier: Apache-2.0
# Copyright (c) 2024 Silicon Laboratories Inc.

zephyr_library_sources_ifdef(CONFIG_WIFI_SIWX917 siwx917_wifi.c)
if(CONFIG_WIFI_SIWX917)

zephyr_library_sources(siwx917_wifi.c)
zephyr_library_sources_ifdef(CONFIG_WIFI_SIWX917_NET_STACK_OFFLOAD siwx917_wifi_socket.c)

endif()
20 changes: 19 additions & 1 deletion drivers/wifi/siwx917/Kconfig.siwx917
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,31 @@ config WIFI_SIWX917
depends on DT_HAS_SILABS_SIWX917_WIFI_ENABLED
select WISECONNECT_NETWORK_STACK
select EVENTS
select WIFI_OFFLOAD
select NET_L2_WIFI_MGMT
help
Enable WiFi driver for the Silabs SiWx917 SoC series.

if WIFI_SIWX917

choice
prompt "Network stack"
default WIFI_SIWX917_NET_STACK_NATIVE
help
Choose "Native" stack if you want a better compatibility with Zephyr
features. "Offloaded" stack may provide better resource (power and
memory) consumption.

config WIFI_SIWX917_NET_STACK_NATIVE
bool "Native"
select WIFI_USE_NATIVE_NETWORKING
select NET_L2_ETHERNET

config WIFI_SIWX917_NET_STACK_OFFLOAD
bool "Offloaded"
select WIFI_OFFLOAD

endchoice

config NET_TCP_WORKQ_STACK_SIZE
default 2048

Expand Down
Loading
Loading