aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/libcommon
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2011-06-04 19:58:26 +0200
committerHolger Hans Peter Freyther <zecke@selfish.org>2012-03-16 11:56:21 +0100
commit20fea245150b377ec97a3e56818cfbfc6e691097 (patch)
treef80a08be6cba80da909a145d6879bb6657b7b505 /openbsc/src/libcommon
parent44e5dad3e25ed8aa200bd6229f2d4d94b8326123 (diff)
bsc: Prepare to have multiple MSC connections
We now have a list of MSCs but in the code we will try to access the MSC with the nr 0.
Diffstat (limited to 'openbsc/src/libcommon')
-rw-r--r--openbsc/src/libcommon/gsm_data.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/openbsc/src/libcommon/gsm_data.c b/openbsc/src/libcommon/gsm_data.c
index a731c1a34..6eb39b067 100644
--- a/openbsc/src/libcommon/gsm_data.c
+++ b/openbsc/src/libcommon/gsm_data.c
@@ -87,6 +87,7 @@ struct gsm_network *gsm_network_init(uint16_t country_code, uint16_t network_cod
/* Init back pointer */
net->bsc_data->network = net;
+ INIT_LLIST_HEAD(&net->bsc_data->mscs);
net->country_code = country_code;
net->network_code = network_code;
@@ -141,14 +142,6 @@ struct gsm_network *gsm_network_init(uint16_t country_code, uint16_t network_cod
net->mncc_recv = mncc_recv;
- INIT_LLIST_HEAD(&net->bsc_data->msc.dests);
- net->bsc_data->msc.ping_timeout = 20;
- net->bsc_data->msc.pong_timeout = 5;
- net->bsc_data->msc.core_ncc = -1;
- net->bsc_data->msc.core_mcc = -1;
- net->bsc_data->msc.rtp_base = 4000;
- net->bsc_data->msc.network = net;
-
gsm_net_update_ctype(net);
return net;