Change in osmo-bsc[master]: fix bootstrap_rsl(): check result of gsm_bts_trx_set_system_infos()

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

fixeria gerrit-no-reply at lists.osmocom.org
Thu Sep 3 12:24:20 UTC 2020


fixeria has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-bsc/+/19964 )


Change subject: fix bootstrap_rsl(): check result of gsm_bts_trx_set_system_infos()
......................................................................

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
---
M src/osmo-bsc/osmo_bsc_main.c
1 file changed, 4 insertions(+), 1 deletion(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-bsc refs/changes/64/19964/1

diff --git a/src/osmo-bsc/osmo_bsc_main.c b/src/osmo-bsc/osmo_bsc_main.c
index 95eab4a..9fcdd72 100644
--- a/src/osmo-bsc/osmo_bsc_main.c
+++ b/src/osmo-bsc/osmo_bsc_main.c
@@ -311,7 +311,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 */

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-bsc/+/19964
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-bsc
Gerrit-Branch: master
Gerrit-Change-Id: I7d3458fb10760e33411f2074a6b2df1c257438d5
Gerrit-Change-Number: 19964
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <vyanitskiy at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200903/d6c63089/attachment.htm>


More information about the gerrit-log mailing list