Skip to content

Commit 87d05ff

Browse files
jhirsirlubos
authored andcommitted
samples: dect_phy: dect_shell: fix: mdm deinit() fail halted scheduler
Fixing the case where nrf_modem_dect_phy_deinit failed (-12) when starting RSSI scan. This caused the scheduler to stay as suspended. Additionally, adding more CONFIG_NRF_MODEM_LIB_SHMEM_TX_SIZE to avoid -ENOMEM (-12) failure like this. Signed-off-by: Jani Hirsimäki <[email protected]>
1 parent 1e697ab commit 87d05ff

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

samples/dect/dect_phy/dect_shell/prj.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ CONFIG_ENTROPY_GENERATOR=y
6969
CONFIG_NRF_MODEM_LIB=y
7070
CONFIG_NRF_MODEM_LIB_ON_FAULT_APPLICATION_SPECIFIC=y
7171
CONFIG_NRF_MODEM_LIB_SHMEM_RX_SIZE=6144
72-
CONFIG_NRF_MODEM_LIB_SHMEM_TX_SIZE=12288
72+
CONFIG_NRF_MODEM_LIB_SHMEM_TX_SIZE=15360
7373

7474
# Debugging configurations
7575
CONFIG_ASSERT=y

samples/dect/dect_phy/dect_shell/src/dect/dect_phy_ctrl.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1078,6 +1078,9 @@ int dect_phy_ctrl_rssi_scan_start(struct dect_phy_rssi_scan_params *params,
10781078
if (params->reinit_mdm_api) {
10791079
ret = dect_phy_ctrl_phy_reinit();
10801080
if (ret) {
1081+
if (params->suspend_scheduler) {
1082+
dect_phy_api_scheduler_resume();
1083+
}
10811084
return ret;
10821085
}
10831086
}

0 commit comments

Comments
 (0)