aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVadim Yanitskiy <vyanitskiy@sysmocom.de>2020-09-03 19:16:59 +0700
committerlaforge <laforge@osmocom.org>2020-09-08 20:19:18 +0000
commit422b751ac880dffaec0df004430cd812a46bceb8 (patch)
tree4c5a6502903d29ae260f4739ac98151ec78b66e9
parentccf2017b28af35c6bb1715d2d4b448f97898d1b9 (diff)
fix bootstrap_rsl(): check result of gsm_bts_trx_set_system_infos()
Ensure that osmo-bsc would not continue to work as usual, if for some reason we cannot encode or send System Information messages. Change-Id: I7d3458fb10760e33411f2074a6b2df1c257438d5
-rw-r--r--src/osmo-bsc/osmo_bsc_main.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/osmo-bsc/osmo_bsc_main.c b/src/osmo-bsc/osmo_bsc_main.c
index ebae0a22e..560f8fd7c 100644
--- a/src/osmo-bsc/osmo_bsc_main.c
+++ b/src/osmo-bsc/osmo_bsc_main.c
@@ -308,7 +308,10 @@ static void bootstrap_rsl(struct gsm_bts_trx *trx)
if (trx_is_usable(trx))
acc_ramp_trigger(&trx->bts->acc_ramp);
- gsm_bts_trx_set_system_infos(trx);
+ if (gsm_bts_trx_set_system_infos(trx) != 0) {
+ LOG_TRX(trx, DRSL, LOGL_ERROR, "Failed to generate System Information\n");
+ return;
+ }
if (trx->bts->type == GSM_BTS_TYPE_NOKIA_SITE) {
/* channel unspecific, power reduction in 2 dB steps */