Skip to content

Commit feee2bc

Browse files
committed
drivers: wifi: siwx91x: Websockets NetStack Application
To support the SiWx917 Websockets Network Stack Application protocol offloading, we need to integrate the Silicon Labs APIs, so adding the corresponding source files and include files in the kconfig and CMakelist Signed-off-by: Rahul Gurram <rahul.gurram@silabs.com>
1 parent c1d2835 commit feee2bc

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

drivers/wifi/siwx91x/Kconfig.siwx91x

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,15 @@ config WIFI_SILABS_SIWX91X_PING
107107
than the Zephyr one. See also sl_net_ping.h in Silabs HAL for more
108108
information about the API.
109109

110+
config WIFI_SILABS_SIWX91X_WEBSOCKET_CLIENT
111+
bool "Offloaded implementation of Websocket client"
112+
help
113+
Enable this option to allow to use the Websocket client implementation
114+
provided by the Network Co-Processor present on SiWx91x series. This
115+
implementation usually require less resources than the Zephyr one.
116+
See also sl_websocket_client.h in Silabs HAL for more information
117+
about the API.
118+
110119
config WIFI_SILABS_SIWX91X_ENABLE_ROAMING
111120
bool "WiFi roaming support"
112121
default y

modules/hal_silabs/wiseconnect/CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,12 @@ if(CONFIG_WIFI_SILABS_SIWX91X_NET_STACK_OFFLOAD)
149149
zephyr_library_sources_ifdef(CONFIG_WIFI_SILABS_SIWX91X_PING
150150
${WISECONNECT_DIR}/components/device/silabs/si91x/wireless/icmp/sl_net_ping.c
151151
)
152+
zephyr_include_directories_ifdef(CONFIG_WIFI_SILABS_SIWX91X_WEBSOCKET_CLIENT
153+
${WISECONNECT_DIR}/components/service/sl_websocket_client/inc
154+
)
155+
zephyr_library_sources_ifdef(CONFIG_WIFI_SILABS_SIWX91X_WEBSOCKET_CLIENT
156+
${WISECONNECT_DIR}/components/service/sl_websocket_client/src/sl_websocket_client.c
157+
)
152158
endif() # CONFIG_WIFI_SILABS_SIWX91X_NET_STACK_OFFLOAD
153159
if(CONFIG_BT_SILABS_SIWX91X)
154160
zephyr_compile_definitions(

0 commit comments

Comments
 (0)