summaryrefslogtreecommitdiffstats
path: root/openbsc/src/libbsc/bsc_init.c
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2011-06-29 16:49:03 +0200
committerHarald Welte <laforge@gnumonks.org>2011-06-29 16:49:03 +0200
commitb7849987e516eb3bf102b29298ecc103b8b24d53 (patch)
tree7d0cef4dbe3ce0f8655a4dd989d7f1d3209dde0a /openbsc/src/libbsc/bsc_init.c
parentc7921c9205ae3ac131f4ce6447876fc46cd32fae (diff)
properly reset the MO state of all MO on Abis disconnect0.9.14
When we loose the A-bis link, we should properly re-set the administrative, operational and availability state of all MOs
Diffstat (limited to 'openbsc/src/libbsc/bsc_init.c')
-rw-r--r--openbsc/src/libbsc/bsc_init.c8
1 files changed, 1 insertions, 7 deletions
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;