Skip to content

Commit 112c8e6

Browse files
ArunmaniAlagarsamy2710kartben
authored andcommitted
soc: silabs: siwg917: Restore missing config and update default settings
Commit `2844850` inadvertently omitted `SL_SI91X_CUSTOM_FEAT_SOC_CLK_CONFIG_160MHZ`. This commit restores the missing flag to ensure proper SOC clock setup. Additionally, `SL_SI91X_CUSTOM_FEAT_LIMIT_PACKETS_PER_STA` is now enabled as the default setting, aligning with the driver Kconfig. Signed-off-by: Arunmani Alagarsamy <arunmani.a@silabs.com>
1 parent 647477c commit 112c8e6

File tree

1 file changed

+9
-1
lines changed
  • soc/silabs/silabs_siwx91x/siwg917

1 file changed

+9
-1
lines changed

soc/silabs/silabs_siwx91x/siwg917/nwp.c

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,10 @@ static void siwx91x_configure_ap_mode(sl_si91x_boot_configuration_t *boot_config
102102
{
103103
boot_config->oper_mode = SL_SI91X_ACCESS_POINT_MODE;
104104
boot_config->coex_mode = SL_SI91X_WLAN_ONLY_MODE;
105-
boot_config->custom_feature_bit_map |= SL_SI91X_CUSTOM_FEAT_LIMIT_PACKETS_PER_STA;
105+
106+
if (IS_ENABLED(CONFIG_WIFI_SILABS_SIWX91X_LIMIT_PACKET_BUF_PER_STA)) {
107+
boot_config->custom_feature_bit_map |= SL_SI91X_CUSTOM_FEAT_LIMIT_PACKETS_PER_STA;
108+
}
106109

107110
if (hidden_ssid) {
108111
boot_config->custom_feature_bit_map |= SL_SI91X_CUSTOM_FEAT_AP_IN_HIDDEN_MODE;
@@ -200,6 +203,11 @@ int siwx91x_get_nwp_config(sl_wifi_device_configuration_t *get_config, uint8_t w
200203
}
201204

202205
if (IS_ENABLED(CONFIG_WIFI_SILABS_SIWX91X)) {
206+
if (!IS_ENABLED(CONFIG_PM)) {
207+
boot_config->custom_feature_bit_map |=
208+
SL_SI91X_CUSTOM_FEAT_SOC_CLK_CONFIG_160MHZ;
209+
}
210+
203211
siwx91x_configure_network_stack(boot_config, wifi_oper_mode);
204212
}
205213

0 commit comments

Comments
 (0)