Skip to content

Commit d7f1c0a

Browse files
jerome-pouillerArunmaniAlagarsamy2710
authored andcommitted
drivers: wifi: siwx91x: Add support for Enhanced Legacy Power Save
Siwx91x support a specific mode slightly better than the old legacy PS mode. This mode has to be set on the NWP boot, so it is not easy to configure it during the runtime. Hence, this patch only provide a compile time option to enable it. Co-authored-by: Arunmani Alagarsamy <arunmani.a@silabs.com> Signed-off-by: Arunmani Alagarsamy <arunmani.a@silabs.com> Signed-off-by: Jérôme Pouiller <jerome.pouiller@silabs.com>
1 parent c3ce29e commit d7f1c0a

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

drivers/wifi/siwx91x/Kconfig.siwx91x

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,24 @@ config WIFI_SILABS_SIWX91X
1414

1515
if WIFI_SILABS_SIWX91X
1616

17+
config WIFI_SILABS_SIWX91X_ENHANCED_MAX_PSP
18+
bool "Enhanced Max PSP Support"
19+
default y
20+
help
21+
Enable this option to allow the device to configure
22+
Enhanced Maximum Power Save (PSP) support during
23+
device initialization.
24+
25+
**Advantages:**
26+
- Reduces power consumption during low traffic periods.
27+
- Automatically transitions to Fast PSP for improved responsiveness
28+
when traffic is high.
29+
30+
**Limitations:**
31+
- Initially uses PS-Poll frames for power management, even if the
32+
user configures NULL frame-based.
33+
- Switches to NULL frame-based only when traffic increases.
34+
1735
choice
1836
prompt "Network stack"
1937
default WIFI_SILABS_SIWX91X_NET_STACK_NATIVE

soc/silabs/silabs_siwx91x/siwg917/nwp.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,11 @@ static void siwx91x_configure_sta_mode(sl_si91x_boot_configuration_t *boot_confi
6969

7070
#ifdef CONFIG_WIFI_SILABS_SIWX91X
7171
boot_config->ext_tcp_ip_feature_bit_map = SL_SI91X_CONFIG_FEAT_EXTENSION_VALID;
72-
boot_config->config_feature_bit_map = SL_SI91X_ENABLE_ENHANCED_MAX_PSP;
7372
boot_config->ext_custom_feature_bit_map |= SL_SI91X_EXT_FEAT_IEEE_80211W |
7473
SL_SI91X_EXT_FEAT_FRONT_END_SWITCH_PINS_ULP_GPIO_4_5_0;
74+
if (IS_ENABLED(CONFIG_WIFI_SILABS_SIWX91X_ENHANCED_MAX_PSP)) {
75+
boot_config->config_feature_bit_map = SL_SI91X_ENABLE_ENHANCED_MAX_PSP;
76+
}
7577
#endif
7678

7779
#ifdef CONFIG_BT_SILABS_SIWX91X

0 commit comments

Comments
 (0)