aboutsummaryrefslogtreecommitdiffstats
path: root/src/osmo-bsc/nm_bts_fsm.c
diff options
context:
space:
mode:
authorAlexander Couzens <lynxis@fe80.eu>2022-12-19 21:21:32 +0100
committerlynxis lazus <lynxis@fe80.eu>2023-01-03 09:13:52 +0000
commit315af2f9ea1e8b9bf6e58caebd9dd7829edecfed (patch)
tree67de160a5ed6834b768c8b09b662adf7aa561526 /src/osmo-bsc/nm_bts_fsm.c
parent6cc5f08eb8fc3d2cc7e87fba89821903fde0f1d7 (diff)
bts: ipa/osmo-bts/sysmobts: MO: add support for the second NSVC
The second NSVC MO has been explicit skipped and never been interacted with. osmo-bts is already supporting it for a long time as well the PCU is supporting it at least since the NS2 code migration. Fixes the ttcn3 test case BTS_Tests.TC_pcu_socket_two_nsvc. Closes: OS#5835 Change-Id: I3486a7cc9a424602b73f8adc2fefce169213e46b
Diffstat (limited to 'src/osmo-bsc/nm_bts_fsm.c')
-rw-r--r--src/osmo-bsc/nm_bts_fsm.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/osmo-bsc/nm_bts_fsm.c b/src/osmo-bsc/nm_bts_fsm.c
index 3d95b93ec..92728dce2 100644
--- a/src/osmo-bsc/nm_bts_fsm.c
+++ b/src/osmo-bsc/nm_bts_fsm.c
@@ -143,8 +143,11 @@ static void rx_get_attr_rep(struct gsm_bts *bts, bool allow_opstart)
bts->mo.get_attr_sent = false;
/* Announce bts_features are available to related NSVC MOs */
- nsvc = gsm_bts_sm_nsvc_num(bts->site_mgr, 0); /* we only support NSVC0 so far */
- osmo_fsm_inst_dispatch(nsvc->mo.fi, NM_EV_FEATURE_NEGOTIATED, NULL);
+ for (int i = 0; i < ARRAY_SIZE(bts->site_mgr->gprs.nsvc); i++) {
+ nsvc = gsm_bts_sm_nsvc_num(bts->site_mgr, i);
+ if (nsvc)
+ osmo_fsm_inst_dispatch(nsvc->mo.fi, NM_EV_FEATURE_NEGOTIATED, NULL);
+ }
/* Move FSM forward */
configure_loop(bts, &bts->mo.nm_state, allow_opstart);