From b7849987e516eb3bf102b29298ecc103b8b24d53 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Wed, 29 Jun 2011 16:49:03 +0200 Subject: properly reset the MO state of all MO on Abis disconnect When we loose the A-bis link, we should properly re-set the administrative, operational and availability state of all MOs --- openbsc/include/openbsc/gsm_data_shared.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'openbsc/include/openbsc/gsm_data_shared.h') diff --git a/openbsc/include/openbsc/gsm_data_shared.h b/openbsc/include/openbsc/gsm_data_shared.h index b3b7b9050..011e0aa96 100644 --- a/openbsc/include/openbsc/gsm_data_shared.h +++ b/openbsc/include/openbsc/gsm_data_shared.h @@ -568,6 +568,8 @@ char *gsm_lchan_name(struct gsm_lchan *lchan); const char *gsm_lchans_name(enum gsm_lchan_state s); +void gsm_abis_mo_reset(struct gsm_abis_mo *mo); + struct gsm_abis_mo * gsm_objclass2mo(struct gsm_bts *bts, uint8_t obj_class, struct abis_om_obj_inst *obj_inst); @@ -579,6 +581,9 @@ void * gsm_objclass2obj(struct gsm_bts *bts, uint8_t obj_class, struct abis_om_obj_inst *obj_inst); +/* reset the state of all MO in the BTS */ +void gsm_bts_mo_reset(struct gsm_bts *bts); + uint8_t gsm_ts2chan_nr(const struct gsm_bts_trx_ts *ts, uint8_t lchan_nr); uint8_t gsm_lchan2chan_nr(const struct gsm_lchan *lchan); -- cgit v1.2.3