diff options
author | Ivan Klyuchnikov <kluchnikovi@gmail.com> | 2017-02-07 07:30:38 +0000 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2017-02-19 08:58:20 +0000 |
commit | 70c68853c289bf13822a7c76cd2434fcf7364576 (patch) | |
tree | 709d182a2a32c8d269a301c644e1e52f5b25a813 /src/osmo-bts-trx/scheduler_trx.c | |
parent | 6b4c6aa375bfe1d49594d8a43345dc6b5df917c3 (diff) |
osmo-trx-bts: Fix incorrect bts shutdown procedure in case of clock loss from osmo-trx
This issue occurs in case of osmo-trx restart which leads to losing clock from osmo-trx.
Function bts_shutdown from common/bts.c should be used in this case for proper bts shutdown.
Change-Id: Ie65cf2e8f98cb8bf3314a00048aa53c1f8cd4c25
Diffstat (limited to 'src/osmo-bts-trx/scheduler_trx.c')
-rw-r--r-- | src/osmo-bts-trx/scheduler_trx.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/src/osmo-bts-trx/scheduler_trx.c b/src/osmo-bts-trx/scheduler_trx.c index d946ad5f..9c676d70 100644 --- a/src/osmo-bts-trx/scheduler_trx.c +++ b/src/osmo-bts-trx/scheduler_trx.c @@ -1408,19 +1408,7 @@ static void trx_ctrl_timer_cb(void *data) no_clock: transceiver_available = 0; - /* flush pending messages of transceiver */ - /* close all logical channels and reset timeslots */ - llist_for_each_entry(trx, &bts->trx_list, list) { - struct phy_instance *pinst = trx_phy_instance(trx); - struct trx_l1h *l1h = pinst->u.osmotrx.hdl; - trx_if_flush(l1h); - trx_sched_reset(&l1h->l1s); - if (trx->nr == 0) - trx_if_cmd_poweroff(l1h); - } - - /* tell BSC */ - check_transceiver_availability(bts, 0); + bts_shutdown(bts, "No clock from osmo-trx"); return; } |