Review at  https://gerrit.osmocom.org/6706

host/trxcon: reset scheduler when L1CTL is lost

Change-Id: I1fd8a610085c8591a820e784b7122de7b3032d15
---
M src/host/trxcon/trxcon.c
1 file changed, 3 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.osmocom.org:29418/osmocom-bb refs/changes/06/6706/1

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 @@
                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);

-- 
To view, visit https://gerrit.osmocom.org/6706
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I1fd8a610085c8591a820e784b7122de7b3032d15
Gerrit-PatchSet: 1
Gerrit-Project: osmocom-bb
Gerrit-Branch: master
Gerrit-Owner: Harald Welte <lafo...@gnumonks.org>

Reply via email to