aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@netfilter.org>2009-12-21 23:12:19 +0100
committerHarald Welte <laforge@netfilter.org>2009-12-21 23:12:19 +0100
commit73d4fce151b587ae28692448ea7094212e7eab7b (patch)
tree768c86ac9ab44c5bae2838e867080894a19107a9
parent713550120cb9231de49090c01abb6e867a93137d (diff)
make sure bootstrap_bts() only contains static initialization
values that might change at runtime are moved to set_system_infos() which we might now also call at runtime to update the BTS with changes in the SI
-rw-r--r--openbsc/src/bsc_init.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/openbsc/src/bsc_init.c b/openbsc/src/bsc_init.c
index 86a93a1a9..61510435b 100644
--- a/openbsc/src/bsc_init.c
+++ b/openbsc/src/bsc_init.c
@@ -672,6 +672,11 @@ static int set_system_infos(struct gsm_bts_trx *trx)
{
int i, rc;
u_int8_t si_tmp[23];
+ struct gsm_bts *bts = trx->bts;
+
+ bts->si_common.cell_sel_par.ms_txpwr_max_ccch =
+ ms_pwr_ctl_lvl(bts->band, bts->ms_max_power);
+ bts->si_common.cell_sel_par.neci = bts->network->neci;
if (trx == trx->bts->c0) {
for (i = 1; i <= 4; i++) {
@@ -827,10 +832,7 @@ static int bootstrap_bts(struct gsm_bts *bts)
bts->si_common.cell_options.dtx = 2; /* MS shall not use upplink DTX */
bts->si_common.cell_options.pwrc = 0; /* PWRC not set */
- bts->si_common.cell_sel_par.ms_txpwr_max_ccch =
- ms_pwr_ctl_lvl(bts->band, bts->ms_max_power);
bts->si_common.cell_sel_par.acs = 0;
- bts->si_common.cell_sel_par.neci = bts->network->neci;
bts->si_common.ncc_permitted = 0xff;