Skip to content

Commit 15eeb3d

Browse files
Martinhoff-makercfriedt
authored andcommitted
soc: silabs: siwx91x_nwp: fix coex_mode in nwp initialization
Change the default coex mode when there is neither WiFi or BT activated. Switch from BLE_ONLY to WLAN_ONLY. It fix a bug where we can't go in deepsleep if we didn't select CONFIG_WIFI. Signed-off-by: Martin Hoff <[email protected]>
1 parent 67085f1 commit 15eeb3d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

soc/silabs/silabs_siwx91x/siwg917/siwx91x_nwp.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,11 +163,13 @@ static void siwx91x_configure_sta_mode(sl_si91x_boot_configuration_t *boot_confi
163163
boot_config->coex_mode = SL_SI91X_WLAN_BLE_MODE;
164164
} else if (wifi_enabled) {
165165
boot_config->coex_mode = SL_SI91X_WLAN_ONLY_MODE;
166+
} else if (bt_enabled) {
167+
boot_config->coex_mode = SL_SI91X_BLE_MODE;
166168
} else {
167169
/*
168170
* Even if neither WiFi or BLE is used we have to specify a Coex mode
169171
*/
170-
boot_config->coex_mode = SL_SI91X_BLE_MODE;
172+
boot_config->coex_mode = SL_SI91X_WLAN_ONLY_MODE;
171173
}
172174

173175
#ifdef CONFIG_WIFI_SILABS_SIWX91X

0 commit comments

Comments
 (0)