aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2011-06-07 00:12:34 +0200
committerHarald Welte <laforge@gnumonks.org>2011-06-07 00:12:34 +0200
commitdf680288a9de6ccc7108e8fe67308eea105f5aff (patch)
tree305f84ae1b32b53983155bbc0b8ae3171350c0e6
parent850dc6bbfa4e5ad66b87f1c2487edeb0f3076dd1 (diff)
initialize NM state for all objects to known state
-rw-r--r--openbsc/src/libcommon/gsm_data_shared.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/openbsc/src/libcommon/gsm_data_shared.c b/openbsc/src/libcommon/gsm_data_shared.c
index d69b3bdf..98dabda8 100644
--- a/openbsc/src/libcommon/gsm_data_shared.c
+++ b/openbsc/src/libcommon/gsm_data_shared.c
@@ -42,6 +42,9 @@ static void gsm_mo_init(struct gsm_abis_mo *mo, struct gsm_bts *bts,
mo->obj_inst.bts_nr = p1;
mo->obj_inst.trx_nr = p2;
mo->obj_inst.ts_nr = p3;
+ mo->nm_state.administrative = NM_STATE_NULL;
+ mo->nm_state.operational = NM_OPSTATE_NULL;
+ mo->nm_state.availability = NM_AVSTATE_POWER_OFF;
}
static const struct value_string pchan_names[] = {