aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/libcommon-cs/common_cs.c
diff options
context:
space:
mode:
Diffstat (limited to 'openbsc/src/libcommon-cs/common_cs.c')
-rw-r--r--openbsc/src/libcommon-cs/common_cs.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/openbsc/src/libcommon-cs/common_cs.c b/openbsc/src/libcommon-cs/common_cs.c
index d299427ea..d8d5ec777 100644
--- a/openbsc/src/libcommon-cs/common_cs.c
+++ b/openbsc/src/libcommon-cs/common_cs.c
@@ -63,8 +63,10 @@ struct gsm_network *gsm_network_init(void *ctx,
net->auto_create_subscr = true;
net->auto_assign_exten = true;
- net->country_code = country_code;
- net->network_code = network_code;
+ net->plmn = (struct osmo_plmn_id){
+ .mcc = country_code,
+ .mnc = network_code,
+ };
INIT_LLIST_HEAD(&net->trans_list);
INIT_LLIST_HEAD(&net->upqueue);