From fe1ca353bb7285f71ba1d22675c6c840770706ce Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Mon, 18 Jul 2011 11:26:07 +0200 Subject: bts-init: Initialize the BTS like it will look after a reset Reset the BTS MO State on BTS bootstrap. This way we will always test the BTS disconnect/reconnect case of the BTS. Do not reset the administrative state of objects. The BSC might have set these and wants to maintain them across disconnect/ reconnect. Right now this is true for the TRX state. --- openbsc/src/libbsc/bsc_init.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'openbsc/src/libbsc') diff --git a/openbsc/src/libbsc/bsc_init.c b/openbsc/src/libbsc/bsc_init.c index 1be8cb7a1..02a3adfcc 100644 --- a/openbsc/src/libbsc/bsc_init.c +++ b/openbsc/src/libbsc/bsc_init.c @@ -406,6 +406,9 @@ static int bootstrap_bts(struct gsm_bts *bts) bts->si_common.ncc_permitted = 0xff; + /* Initialize the BTS state */ + gsm_bts_mo_reset(bts); + return 0; } -- cgit v1.2.3