File tree Expand file tree Collapse file tree 4 files changed +25
-1
lines changed
modules/hal_silabs/wiseconnect
soc/silabs/silabs_siwx91x/siwg917 Expand file tree Collapse file tree 4 files changed +25
-1
lines changed Original file line number Diff line number Diff line change @@ -71,6 +71,15 @@ config WIFI_SILABS_SIWX91X_LIMIT_PACKET_BUF_PER_STA
71
71
would be buffered when the STA is in Power Save (PS) mode.
72
72
This helps manage buffer usage and ensures efficient packet handling.
73
73
74
+ config WIFI_SILABS_SIWX91X_SNTP_CLIENT
75
+ bool "Offloaded implementation of SNTP client"
76
+ help
77
+ Enable this option to allow to use the SNTP (Simple Network Time
78
+ protocol) implementation provided by the Network Co-Processor present
79
+ on SiWx91x series. This implementation usually require less resources
80
+ than the Zephyr one. See also sl_sntp.h in Silabs HAL for more
81
+ information about the API.
82
+
74
83
config WIFI_SILABS_SIWX91X_ENABLE_ROAMING
75
84
bool "WiFi roaming support"
76
85
default y
Original file line number Diff line number Diff line change @@ -110,6 +110,18 @@ if(CONFIG_WIFI_SILABS_SIWX91X)
110
110
)
111
111
endif () # CONFIG_WIFI_SILABS_SIWX91X
112
112
113
+ if (CONFIG_WIFI_SILABS_SIWX91X_NET_STACK_OFFLOAD )
114
+ zephyr_compile_definitions_ifdef (CONFIG_WIFI_SILABS_SIWX91X_SNTP_CLIENT
115
+ SLI_SI91X_INTERNAL_SNTP_CLIENT
116
+ )
117
+ zephyr_include_directories_ifdef (CONFIG_WIFI_SILABS_SIWX91X_SNTP_CLIENT
118
+ ${WISECONNECT_DIR} /components/service/sntp/inc
119
+ ${WISECONNECT_DIR} /components/device/silabs/si91x/wireless/inc/sntp
120
+ )
121
+ zephyr_library_sources_ifdef (CONFIG_WIFI_SILABS_SIWX91X_SNTP_CLIENT
122
+ ${WISECONNECT_DIR} /components/service/sntp/si91x/sl_sntp.c
123
+ )
124
+ endif () # CONFIG_WIFI_SILABS_SIWX91X_NET_STACK_OFFLOAD
113
125
if (CONFIG_BT_SILABS_SIWX91X )
114
126
zephyr_compile_definitions (
115
127
SLI_SI91X_ENABLE_BLE
Original file line number Diff line number Diff line change @@ -127,6 +127,9 @@ static void siwx91x_configure_network_stack(sl_si91x_boot_configuration_t *boot_
127
127
}
128
128
129
129
boot_config -> tcp_ip_feature_bit_map |= SL_SI91X_TCP_IP_FEAT_ICMP ;
130
+ if (IS_ENABLED (CONFIG_WIFI_SILABS_SIWX91X_SNTP_CLIENT )) {
131
+ boot_config -> tcp_ip_feature_bit_map |= SL_SI91X_TCP_IP_FEAT_SNTP_CLIENT ;
132
+ }
130
133
boot_config -> ext_tcp_ip_feature_bit_map |= SL_SI91X_EXT_TCP_IP_WINDOW_SCALING ;
131
134
boot_config -> ext_tcp_ip_feature_bit_map |= SL_SI91X_EXT_TCP_IP_TOTAL_SELECTS (10 );
132
135
Original file line number Diff line number Diff line change @@ -235,7 +235,7 @@ manifest:
235
235
groups :
236
236
- hal
237
237
- name : hal_silabs
238
- revision : a0095a7ac356a04e12188bb563e6207594f8e6b2
238
+ revision : pull/100/head
239
239
path : modules/hal/silabs
240
240
groups :
241
241
- hal
You can’t perform that action at this time.
0 commit comments