diff options
author | Philipp Maier <pmaier@sysmocom.de> | 2021-11-09 15:05:14 +0100 |
---|---|---|
committer | Philipp Maier <pmaier@sysmocom.de> | 2021-11-15 13:34:15 +0100 |
commit | 7f7c83a7de8c51d26b0d60c923d916a267f2efbc (patch) | |
tree | 0fe0b1e193041e3140f4de3587396b15d3fdb812 | |
parent | 4b706fa15d3c528080b79559f4658905bdf52045 (diff) |
osmo_bsc_main: move generate_ma_for_bts() into bootstrap_bts()
The function generate_ma_for_bts() is called when the OML TEI comes up.
In the same code path boostrap_bts() is called as well. It would be more
logical to call generate_ma_for_bts() from boostrap_bts() since it is
also part of the bootstrapping process.
Change-Id: Ib2ed5b1eac3701cfb3a3e8dd478488ba5404d1fd
Related: SYS#5369
-rw-r--r-- | src/osmo-bsc/osmo_bsc_main.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/osmo-bsc/osmo_bsc_main.c b/src/osmo-bsc/osmo_bsc_main.c index ae9bd69e6..243664117 100644 --- a/src/osmo-bsc/osmo_bsc_main.c +++ b/src/osmo-bsc/osmo_bsc_main.c @@ -469,6 +469,10 @@ static void bootstrap_bts(struct gsm_bts *bts) /* Initialize the BTS state */ gsm_bts_sm_mo_reset(bts->site_mgr); + + /* Generate Mobile Allocation bit-masks for all timeslots. + * This needs to be done here, because it's used for TS configuration. */ + generate_ma_for_bts(bts); } /* Callback function to be called every time we receive a signal from INPUT */ @@ -487,9 +491,6 @@ static int inp_sig_cb(unsigned int subsys, unsigned int signal, switch (signal) { case S_L_INP_TEI_UP: if (isd->link_type == E1INP_SIGN_OML) { - /* Generate Mobile Allocation bit-masks for all timeslots. - * This needs to be done here, because it's used for TS configuration. */ - generate_ma_for_bts(trx->bts); /* Check parameters and apply vty config dependent parameters */ rc = check_bts(trx->bts); if (rc < 0) { |