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/src/libbsc/bsc_init.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'openbsc/src/libbsc/bsc_init.c') diff --git a/openbsc/src/libbsc/bsc_init.c b/openbsc/src/libbsc/bsc_init.c index 8654dd73a..1be8cb7a1 100644 --- a/openbsc/src/libbsc/bsc_init.c +++ b/openbsc/src/libbsc/bsc_init.c @@ -292,15 +292,9 @@ static int inp_sig_cb(unsigned int subsys, unsigned int signal, lchan_free(&ts->lchan[lchan_no]); lchan_reset(&ts->lchan[lchan_no]); } - - ts->mo.nm_state.operational = 0; - ts->mo.nm_state.availability = 0; } - trx->mo.nm_state.operational = 0; - trx->mo.nm_state.availability = 0; - trx->bb_transc.mo.nm_state.operational = 0; - trx->bb_transc.mo.nm_state.availability = 0; + gsm_bts_mo_reset(trx->bts); abis_nm_clear_queue(trx->bts); break; -- cgit v1.2.3