From 557ca78b4900f87359d8b09c353f0294fda9da44 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Mon, 10 Aug 2009 14:16:08 +0200 Subject: bsc_hack.c: Unconditionally listen for the nanoBTS As proposed on the mailinglist, initialize the socket once and wait for the nanoBTS to connect. --- openbsc/src/bsc_hack.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'openbsc/src/bsc_hack.c') diff --git a/openbsc/src/bsc_hack.c b/openbsc/src/bsc_hack.c index db47bfc78..3a3f0d6a7 100644 --- a/openbsc/src/bsc_hack.c +++ b/openbsc/src/bsc_hack.c @@ -1031,15 +1031,16 @@ static int bootstrap_network(void) llist_for_each_entry(bts, &gsmnet->bts_list, list) { bootstrap_bts(bts); - if (is_ipaccess_bts(bts)) - rc = ipaccess_setup(bts); - else + if (!is_ipaccess_bts(bts)) rc = e1_reconfig_bts(bts); if (rc < 0) exit (1); } + /* initialize nanoBTS support omce */ + rc = ipaccess_setup(gsmnet); + return 0; } -- cgit v1.2.3