path: root/openbsc/src/libbsc/bsc_init.c
diff options
authorHarald Welte <>2017-07-15 22:52:01 +0200
committerHarald Welte <>2017-07-15 23:31:04 +0200
commit45164a2b45e5eb6ea04137ede3a4b79eedce6c0f (patch)
treefbcf89cb7ba708ecf2e58495cd67bc4875a8e701 /openbsc/src/libbsc/bsc_init.c
parent9f6760de2cf3166c169ba4018144e2cd95fafaff (diff)
Fix regression causing loss of static system-information messages
In commit 8b1a2f8cd7a81c6b8c7cdb0963dcf89de7c46100 we started to initialize bts->si_valid to 0. This means we are skipping the manually configured static system information. Instead, we have to initialize bts->si_valid to bts->si_mode_static, i.e. start with those that are static and not to be auto-generated. Found while developing Change-Id: Iab9cc93cf6d54560a72cc393cc3721a8d10e04bf Closes: #2367
Diffstat (limited to 'openbsc/src/libbsc/bsc_init.c')
1 files changed, 2 insertions, 2 deletions
diff --git a/openbsc/src/libbsc/bsc_init.c b/openbsc/src/libbsc/bsc_init.c
index ead21b4f9..c17e4a715 100644
--- a/openbsc/src/libbsc/bsc_init.c
+++ b/openbsc/src/libbsc/bsc_init.c
@@ -138,8 +138,8 @@ int gsm_bts_trx_set_system_infos(struct gsm_bts_trx *trx)
ms_pwr_ctl_lvl(bts->band, bts->ms_max_power);
bts->si_common.cell_sel_par.neci = bts->network->neci;
- /* Zero, forget the state of the SIs */
- bts->si_valid = 0;
+ /* Zero/forget the state of the dynamically computed SIs, leeping the static ones */
+ bts->si_valid = bts->si_mode_static;
/* First, we determine which of the SI messages we actually need */