aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2013-06-30 15:05:09 +0200
committerHarald Welte <laforge@gnumonks.org>2013-06-30 15:09:35 +0200
commit48eca2524cb960b4ea430e228fcb80be73a512f5 (patch)
tree2cfadb49aa9ef9341c7bd8af78ebd296808441d1 /include
parent0089ce417822d989778c8a5f362f402578873897 (diff)
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.
Diffstat (limited to 'include')
-rw-r--r--include/osmo-bts/oml.h3
1 files changed, 3 insertions, 0 deletions
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);