aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIvan Klyuchnikov <kluchnikovi@gmail.com>2017-02-07 07:30:38 +0000
committerIvan Kluchnikov <kluchnikovi@gmail.com>2017-02-16 19:06:12 +0300
commit949fcade616f25ceb98c187feaee9040b2f3e46b (patch)
treeef3a2acf10ba0cc21cfcf654654600639209b997
parenta53e3a547299b202235afad9801acacd5cfe4acd (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 properly bts shutdown. Change-Id: Ie65cf2e8f98cb8bf3314a00048aa53c1f8cd4c25
-rw-r--r--src/osmo-bts-trx/scheduler_trx.c14
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 d946ad5..9c676d7 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;
}