Skip to content

Commit a73f202

Browse files
muahmed-silabskartben
authored andcommitted
drivers: wifi: siwx91x: Fix boot_config
Enable and rearrange some features in the boot config. Signed-off-by: Muzaffar Ahmed <muzaffar.ahmed@silabs.com>
1 parent 2a1b754 commit a73f202

File tree

1 file changed

+15
-6
lines changed
  • soc/silabs/silabs_siwx91x/siwg917

1 file changed

+15
-6
lines changed

soc/silabs/silabs_siwx91x/siwg917/nwp.c

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,14 @@ int siwg91x_get_nwp_config(int wifi_oper_mode, sl_wifi_device_configuration_t *g
3535
.boot_config = {
3636
.feature_bit_map = SL_SI91X_FEAT_SECURITY_OPEN | SL_SI91X_FEAT_WPS_DISABLE,
3737
.tcp_ip_feature_bit_map = SL_SI91X_TCP_IP_FEAT_EXTENSION_VALID,
38-
.custom_feature_bit_map = SL_SI91X_CUSTOM_FEAT_EXTENSION_VALID,
39-
.ext_custom_feature_bit_map = SL_SI91X_EXT_FEAT_XTAL_CLK,
38+
.custom_feature_bit_map = SL_SI91X_CUSTOM_FEAT_EXTENSION_VALID |
39+
SL_SI91X_CUSTOM_FEAT_RTC_FROM_HOST,
40+
.ext_custom_feature_bit_map =
41+
SL_SI91X_EXT_FEAT_XTAL_CLK | SL_SI91X_EXT_FEAT_1P8V_SUPPORT |
42+
SL_SI91X_EXT_FEAT_DISABLE_XTAL_CORRECTION |
43+
SL_SI91X_EXT_FEAT_NWP_QSPI_80MHZ_CLK_ENABLE |
44+
SL_SI91X_EXT_FEAT_FRONT_END_SWITCH_PINS_ULP_GPIO_4_5_0 |
45+
SL_SI91X_EXT_FEAT_FRONT_END_INTERNAL_SWITCH,
4046
}
4147
};
4248
sl_si91x_boot_configuration_t *boot_config = &default_config.boot_config;
@@ -78,9 +84,7 @@ int siwg91x_get_nwp_config(int wifi_oper_mode, sl_wifi_device_configuration_t *g
7884
#ifdef CONFIG_WIFI_SILABS_SIWX91X
7985
boot_config->ext_tcp_ip_feature_bit_map = SL_SI91X_CONFIG_FEAT_EXTENSION_VALID;
8086
boot_config->config_feature_bit_map = SL_SI91X_ENABLE_ENHANCED_MAX_PSP;
81-
boot_config->ext_custom_feature_bit_map |=
82-
SL_SI91X_EXT_FEAT_IEEE_80211W |
83-
SL_SI91X_EXT_FEAT_FRONT_END_SWITCH_PINS_ULP_GPIO_4_5_0;
87+
boot_config->ext_custom_feature_bit_map |= SL_SI91X_EXT_FEAT_IEEE_80211W;
8488
#endif
8589

8690
#ifdef CONFIG_BT_SILABS_SIWX91X
@@ -111,14 +115,19 @@ int siwg91x_get_nwp_config(int wifi_oper_mode, sl_wifi_device_configuration_t *g
111115
}
112116

113117
if (IS_ENABLED(CONFIG_WIFI_SILABS_SIWX91X_LIMIT_PACKET_BUF_PER_STA)) {
114-
boot_config->custom_feature_bit_map |= SL_SI91X_CUSTOM_FEAT_LIMIT_PACKETS_PER_STA;
118+
boot_config->custom_feature_bit_map |=
119+
SL_SI91X_CUSTOM_FEAT_LIMIT_PACKETS_PER_STA;
115120
}
116121

117122
} else {
118123
return -EINVAL;
119124
}
120125

121126
#ifdef CONFIG_WIFI_SILABS_SIWX91X
127+
if (!IS_ENABLED(CONFIG_PM)) {
128+
boot_config->custom_feature_bit_map |= SL_SI91X_CUSTOM_FEAT_SOC_CLK_CONFIG_160MHZ;
129+
}
130+
122131
if (IS_ENABLED(CONFIG_WIFI_SILABS_SIWX91X_NET_STACK_OFFLOAD)) {
123132
boot_config->tcp_ip_feature_bit_map |= SL_SI91X_TCP_IP_FEAT_ICMP;
124133
boot_config->ext_tcp_ip_feature_bit_map |= SL_SI91X_EXT_TCP_IP_WINDOW_SCALING;

0 commit comments

Comments
 (0)