bsc_hack.c: Unconditionally listen for the nanoBTS

As proposed on the mailinglist, initialize the socket once
and wait for the nanoBTS to connect.
This commit is contained in:
Holger Hans Peter Freyther 2009-08-10 14:16:08 +02:00
parent 7a8fa412fd
commit 557ca78b49
1 changed files with 4 additions and 3 deletions

View File

@ -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;
}