Skip to content

Commit 6966645

Browse files
kartbenswamidas1998
authored andcommitted
drivers:wifi:siwx91x:Added SNTP KCONFIG
modules:hal_silabs:wiseconnect:Added SNTP source files soc:silabs:silabs_siw91x:siwg917:Added SNTP related configurations west.yml:Updated revision To support the SiWx917 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 Co-authored-by: Swami Das Nampalli <swami.das@silabs.com> Signed-off-by: Swami Das Nampalli <swami.das@silabs.com> Signed-off-by: Rahul Gurram <rahul.gurram@silabs.com>
1 parent f7a2b4e commit 6966645

File tree

5 files changed

+21
-3
lines changed

5 files changed

+21
-3
lines changed

drivers/wifi/siwx91x/Kconfig.siwx91x

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ config NET_MGMT_EVENT_STACK_SIZE
4545
config NET_MGMT_EVENT_QUEUE_SIZE
4646
default 10
4747

48+
config WIFI_SILABS_SIWX91X_SNTP_CLIENT
49+
bool "SNTP"
50+
4851
config WIFI_SILABS_SIWX91X_ENABLE_ROAMING
4952
bool "WiFi roaming support"
5053
help

drivers/wifi/siwx91x/siwx91x_wifi.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,10 +139,10 @@ static unsigned int siwx91x_on_join(sl_wifi_event_t event,
139139
if (IS_ENABLED(CONFIG_WIFI_SILABS_SIWX91X_NET_STACK_NATIVE)) {
140140
net_if_dormant_off(sidev->iface);
141141
}
142-
142+
if (IS_ENABLED(CONFIG_WIFI_SILABS_SIWX91X_NET_STACK_OFFLOAD)) {
143143
siwx91x_on_join_ipv4(sidev);
144144
siwx91x_on_join_ipv6(sidev);
145-
145+
}
146146
return 0;
147147
}
148148

modules/hal_silabs/wiseconnect/CMakeLists.txt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,18 @@ if(CONFIG_WIFI_SILABS_SIWX91X)
9898
)
9999
endif() # CONFIG_WIFI_SILABS_SIWX91X
100100

101+
if(CONFIG_WIFI_SILABS_SIWX91X_NET_STACK_OFFLOAD)
102+
zephyr_compile_definitions_ifdef(CONFIG_WIFI_SILABS_SIWX91X_SNTP_CLIENT
103+
SLI_SI91X_INTERNAL_SNTP_CLIENT
104+
)
105+
zephyr_include_directories_ifdef(CONFIG_WIFI_SILABS_SIWX91X_SNTP_CLIENT
106+
${WISECONNECT_DIR}/components/service/sntp/inc
107+
${WISECONNECT_DIR}/components/device/silabs/si91x/wireless/inc/sntp
108+
)
109+
zephyr_library_sources_ifdef(CONFIG_WIFI_SILABS_SIWX91X_SNTP_CLIENT
110+
${WISECONNECT_DIR}/components/service/sntp/si91x/sl_sntp.c
111+
)
112+
endif() # CONFIG_WIFI_SILABS_SIWX91X_NET_STACK_OFFLOAD
101113
if(CONFIG_BT_SILABS_SIWX91X)
102114
zephyr_compile_definitions(
103115
SLI_SI91X_ENABLE_BLE

soc/silabs/silabs_siwx91x/siwg917/nwp.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,9 @@ int siwg91x_get_nwp_config(int wifi_oper_mode, sl_wifi_device_configuration_t *g
116116
#ifdef CONFIG_WIFI_SILABS_SIWX91X
117117
if (IS_ENABLED(CONFIG_WIFI_SILABS_SIWX91X_NET_STACK_OFFLOAD)) {
118118
boot_config->tcp_ip_feature_bit_map |= SL_SI91X_TCP_IP_FEAT_ICMP;
119+
#ifdef CONFIG_WIFI_SILABS_SIWX91X_SNTP_CLIENT
120+
boot_config->tcp_ip_feature_bit_map |= SL_SI91X_TCP_IP_FEAT_SNTP_CLIENT;
121+
#endif
119122
boot_config->ext_tcp_ip_feature_bit_map |= SL_SI91X_EXT_TCP_IP_WINDOW_SCALING;
120123
boot_config->ext_tcp_ip_feature_bit_map |= SL_SI91X_EXT_TCP_IP_TOTAL_SELECTS(10);
121124

west.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ manifest:
233233
groups:
234234
- hal
235235
- name: hal_silabs
236-
revision: 40a0237e4812241de677441e02131d6c75830636
236+
revision: pull/100/head
237237
path: modules/hal/silabs
238238
groups:
239239
- hal

0 commit comments

Comments
 (0)