aboutsummaryrefslogtreecommitdiffstats
path: root/src/libbsc/net_init.c
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2018-02-27 12:37:26 +0100
committerNeels Hofmeyr <neels@hofmeyr.de>2018-03-05 05:37:54 +0100
commitf7a6329bbd5dd621eccc10a05141b58f3b72ec06 (patch)
treead4e9b671dae8de26a4286a27499aff08dd5fd9c /src/libbsc/net_init.c
parent4d358c00e1b3389291bdb3d5c40d0da8d6cf4d02 (diff)
cosmetic: bsc_network_init(): imply default 001-01 PLMN
All callers pass mcc=1, mnc=1, so just have it as default. (Prepare for net->country_code etc to be replaced by net->plmn) Change-Id: Ic16bc0bab3f2d4721e86a1a04f9d9f988d777df2
Diffstat (limited to 'src/libbsc/net_init.c')
-rw-r--r--src/libbsc/net_init.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/libbsc/net_init.c b/src/libbsc/net_init.c
index 2f65a5208..e44c335d1 100644
--- a/src/libbsc/net_init.c
+++ b/src/libbsc/net_init.c
@@ -22,6 +22,7 @@
#include <osmocom/bsc/gsm_04_08_utils.h>
#include <osmocom/bsc/handover_cfg.h>
#include <osmocom/bsc/chan_alloc.h>
+#include <osmocom/bsc/common_bsc.h>
/* XXX hard-coded for now */
#define T3122_CHAN_LOAD_SAMPLE_INTERVAL 1 /* in seconds */
@@ -38,9 +39,7 @@ static void update_t3122_chan_load_timer(void *data)
osmo_timer_schedule(&net->t3122_chan_load_timer, T3122_CHAN_LOAD_SAMPLE_INTERVAL, 0);
}
-struct gsm_network *bsc_network_init(void *ctx,
- uint16_t country_code,
- uint16_t network_code)
+struct gsm_network *bsc_network_init(void *ctx)
{
struct gsm_network *net;
@@ -48,8 +47,9 @@ struct gsm_network *bsc_network_init(void *ctx,
if (!net)
return NULL;
- net->country_code = country_code;
- net->network_code = network_code;
+ net->country_code = 1;
+ net->network_code = 1;
+
/* Permit a compile-time default of A5/3 and A5/1 */
net->a5_encryption_mask = (1 << 3) | (1 << 1);