From 48eca2524cb960b4ea430e228fcb80be73a512f5 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Sun, 30 Jun 2013 15:05:09 +0200 Subject: Don't send OML STATE CHANGE before OML is connected Instead of calling oml_mo_state_chg() [which transmits OML STATE CHG] during bts_init(), we use a new oml_mo_state_init() function which simply sets the state. --- include/osmo-bts/oml.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include') diff --git a/include/osmo-bts/oml.h b/include/osmo-bts/oml.h index 0fdb95f5..01c127a5 100644 --- a/include/osmo-bts/oml.h +++ b/include/osmo-bts/oml.h @@ -14,6 +14,9 @@ int oml_mo_statechg_ack(struct gsm_abis_mo *mo); /* Change the state and send STATE CHG REP */ int oml_mo_state_chg(struct gsm_abis_mo *mo, int op_state, int avail_state); +/* First initialization of MO, does _not_ generate state changes */ +int oml_mo_state_init(struct gsm_abis_mo *mo, int op_state, int avail_state); + /* Transmit STATE CHG REP even if there was no state change */ int oml_tx_state_changed(struct gsm_abis_mo *mo); -- cgit v1.2.3