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
diff --git a/src/osmo-bsc/osmo_bsc_main.c b/src/osmo-bsc/osmo_bsc_main.c
index ebae0a2..560f8fd 100644
--- a/src/osmo-bsc/osmo_bsc_main.c
+++ b/src/osmo-bsc/osmo_bsc_main.c
@@ -308,7 +308,10 @@
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 */