aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/libcommon/gsm_data_shared.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2013-01-09 15:44:16 +0100
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2014-10-23 21:29:06 +0200
commitc7fc2cdd2a2b105f51ca86e974e1096f0a8d4202 (patch)
tree83b034fd9beb5399e1ec6a766fe2b2fd499bab6d /openbsc/src/libcommon/gsm_data_shared.c
parentf9ffd1fa1811914ce6b19f1d17e7a908e550d358 (diff)
HACK: Allow each BTS to have a different MCC/MNC for testing purposeszecke/hacks/multiple-mnc-mcc2
Diffstat (limited to 'openbsc/src/libcommon/gsm_data_shared.c')
-rw-r--r--openbsc/src/libcommon/gsm_data_shared.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/openbsc/src/libcommon/gsm_data_shared.c b/openbsc/src/libcommon/gsm_data_shared.c
index 8d5d0f85d..97f4c5fb4 100644
--- a/openbsc/src/libcommon/gsm_data_shared.c
+++ b/openbsc/src/libcommon/gsm_data_shared.c
@@ -276,6 +276,12 @@ struct gsm_bts *gsm_bts_alloc(void *ctx)
bts->rach_ldavg_slots = -1;
bts->paging.free_chans_need = -1;
+ /* hacks */
+ bts->network_code = 1;
+ bts->country_code = 1;
+ bts->name_long = talloc_strdup(bts, "OpenBSC");
+ bts->name_short = talloc_strdup(bts, "OpenBSC");
+
return bts;
}