summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVadim Yanitskiy <axilirator@gmail.com>2017-07-10 16:56:43 +0700
committerVadim Yanitskiy <axilirator@gmail.com>2017-10-23 22:05:49 +0330
commit63c86222b55bbbc06ecefbd5c73abda2251eca9e (patch)
tree5f825c12afc1c0d5b2f04a77e38cf2df63e98236
parent89edd506d5a70887c2ae6db191321eda25b82429 (diff)
host/trxcon: reset scheduler when L1CTL is lost
-rw-r--r--src/host/trxcon/trxcon.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/host/trxcon/trxcon.c b/src/host/trxcon/trxcon.c
index 0ff3a7a..c0d5da3 100644
--- a/src/host/trxcon/trxcon.c
+++ b/src/host/trxcon/trxcon.c
@@ -89,6 +89,9 @@ static void trxcon_fsm_managed_action(struct osmo_fsm_inst *fi,
osmo_fsm_inst_state_chg(trxcon_fsm, TRXCON_STATE_IDLE, 0, 0);
if (app_data.trx->fsm->state != TRX_STATE_OFFLINE) {
+ /* Reset scheduler */
+ sched_trx_reset(app_data.trx);
+
/* TODO: implement trx_if_reset() */
trx_if_flush_ctrl(app_data.trx);
trx_if_cmd_poweroff(app_data.trx);