From 112c8e6939c0c7b1b8c2d153f92c22212ecb3c28 Mon Sep 17 00:00:00 2001 From: Arunmani Alagarsamy Date: Mon, 2 Jun 2025 15:29:01 +0530 Subject: [PATCH] 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 --- soc/silabs/silabs_siwx91x/siwg917/nwp.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/soc/silabs/silabs_siwx91x/siwg917/nwp.c b/soc/silabs/silabs_siwx91x/siwg917/nwp.c index febba47cc61..8395925ebe9 100644 --- a/soc/silabs/silabs_siwx91x/siwg917/nwp.c +++ b/soc/silabs/silabs_siwx91x/siwg917/nwp.c @@ -102,7 +102,10 @@ static void siwx91x_configure_ap_mode(sl_si91x_boot_configuration_t *boot_config { boot_config->oper_mode = SL_SI91X_ACCESS_POINT_MODE; boot_config->coex_mode = SL_SI91X_WLAN_ONLY_MODE; - boot_config->custom_feature_bit_map |= SL_SI91X_CUSTOM_FEAT_LIMIT_PACKETS_PER_STA; + + if (IS_ENABLED(CONFIG_WIFI_SILABS_SIWX91X_LIMIT_PACKET_BUF_PER_STA)) { + boot_config->custom_feature_bit_map |= SL_SI91X_CUSTOM_FEAT_LIMIT_PACKETS_PER_STA; + } if (hidden_ssid) { 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 } if (IS_ENABLED(CONFIG_WIFI_SILABS_SIWX91X)) { + if (!IS_ENABLED(CONFIG_PM)) { + boot_config->custom_feature_bit_map |= + SL_SI91X_CUSTOM_FEAT_SOC_CLK_CONFIG_160MHZ; + } + siwx91x_configure_network_stack(boot_config, wifi_oper_mode); }