diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2009-08-10 14:16:08 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2009-08-10 14:16:08 +0200 |
commit | 557ca78b4900f87359d8b09c353f0294fda9da44 (patch) | |
tree | 2e6eb69f60de7d5255bd4c48326b26d74882be29 /openbsc/src/bsc_hack.c | |
parent | 7a8fa412fd63aae81fdf6b281b00b183ae0be3f9 (diff) |
bsc_hack.c: Unconditionally listen for the nanoBTS
As proposed on the mailinglist, initialize the socket once
and wait for the nanoBTS to connect.
Diffstat (limited to 'openbsc/src/bsc_hack.c')
-rw-r--r-- | openbsc/src/bsc_hack.c | 7 |
1 files changed, 4 insertions, 3 deletions
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; } |