@@ -37,31 +37,35 @@ static int silabs_siwx917_nwp_init(void)
3737 .boot_config = {
3838 .oper_mode = SL_SI91X_CLIENT_MODE ,
3939 .coex_mode = NWP_INIT_COEX_MODE ,
40- .feature_bit_map = SL_SI91X_FEAT_SECURITY_OPEN | SL_SI91X_FEAT_WPS_DISABLE ,
4140 .tcp_ip_feature_bit_map = SL_SI91X_TCP_IP_FEAT_EXTENSION_VALID ,
4241 .ext_tcp_ip_feature_bit_map = SL_SI91X_CONFIG_FEAT_EXTENSION_VALID ,
4342 .config_feature_bit_map = SL_SI91X_ENABLE_ENHANCED_MAX_PSP ,
4443 .custom_feature_bit_map = SL_SI91X_CUSTOM_FEAT_EXTENSION_VALID ,
4544 .ext_custom_feature_bit_map =
4645 MEMORY_CONFIG |
4746 SL_SI91X_EXT_FEAT_XTAL_CLK |
48- SL_SI91X_EXT_FEAT_IEEE_80211W |
4947 SL_SI91X_EXT_FEAT_FRONT_END_SWITCH_PINS_ULP_GPIO_4_5_0 ,
50- }};
48+ }
49+ };
5150 sl_si91x_boot_configuration_t * cfg = & network_config .boot_config ;
5251
5352#ifdef CONFIG_WIFI_SIWX917
54- cfg -> tcp_ip_feature_bit_map |=
55- #ifdef CONFIG_NET_IPV6
56- SL_SI91X_TCP_IP_FEAT_DHCPV6_CLIENT | SL_SI91X_TCP_IP_FEAT_IPV6 |
57- #endif
58- #ifndef CONFIG_WIFI_SIWX917_NET_STACK_OFFLOAD
59- SL_SI91X_TCP_IP_FEAT_BYPASS |
60- #endif
61- SL_SI91X_TCP_IP_FEAT_DHCPV4_CLIENT | SL_SI91X_TCP_IP_FEAT_DNS_CLIENT |
62- SL_SI91X_TCP_IP_FEAT_SSL | SL_SI91X_TCP_IP_FEAT_MDNSD | SL_SI91X_TCP_IP_FEAT_ICMP ;
63- cfg -> ext_tcp_ip_feature_bit_map |=
64- SL_SI91X_EXT_TCP_IP_WINDOW_SCALING | SL_SI91X_EXT_TCP_IP_TOTAL_SELECTS (10 );
53+ cfg -> feature_bit_map |= SL_SI91X_FEAT_SECURITY_OPEN | SL_SI91X_FEAT_WPS_DISABLE ,
54+ cfg -> ext_custom_feature_bit_map |= SL_SI91X_EXT_FEAT_IEEE_80211W ;
55+ if (IS_ENABLED (CONFIG_WIFI_SIWX917_NET_STACK_OFFLOAD )) {
56+ cfg -> ext_tcp_ip_feature_bit_map |= SL_SI91X_EXT_TCP_IP_WINDOW_SCALING ;
57+ cfg -> ext_tcp_ip_feature_bit_map |= SL_SI91X_EXT_TCP_IP_TOTAL_SELECTS (10 );
58+ cfg -> tcp_ip_feature_bit_map |= SL_SI91X_TCP_IP_FEAT_ICMP ;
59+ if (IS_ENABLED (CONFIG_NET_IPV6 )) {
60+ cfg -> tcp_ip_feature_bit_map |= SL_SI91X_TCP_IP_FEAT_DHCPV6_CLIENT ;
61+ cfg -> tcp_ip_feature_bit_map |= SL_SI91X_TCP_IP_FEAT_IPV6 ;
62+ }
63+ if (IS_ENABLED (CONFIG_NET_IPV4 )) {
64+ cfg -> tcp_ip_feature_bit_map |= SL_SI91X_TCP_IP_FEAT_DHCPV4_CLIENT ;
65+ }
66+ } else {
67+ cfg -> tcp_ip_feature_bit_map |= SL_SI91X_TCP_IP_FEAT_BYPASS ;
68+ }
6569#endif
6670
6771#ifdef CONFIG_BT_SIWX917
0 commit comments