aboutsummaryrefslogtreecommitdiffstats
path: root/tests
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 /tests
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 'tests')
-rw-r--r--tests/bsc/bsc_test.c2
-rw-r--r--tests/bssap/bssap_test.c2
-rw-r--r--tests/channel/channel_test.c2
-rw-r--r--tests/gsm0408/gsm0408_test.c2
-rw-r--r--tests/handover/handover_test.c2
5 files changed, 5 insertions, 5 deletions
diff --git a/tests/bsc/bsc_test.c b/tests/bsc/bsc_test.c
index 9c35d2f60..541a44caf 100644
--- a/tests/bsc/bsc_test.c
+++ b/tests/bsc/bsc_test.c
@@ -122,7 +122,7 @@ static void test_scan(void)
{
int i;
- struct gsm_network *net = bsc_network_init(NULL, 1, 1);
+ struct gsm_network *net = bsc_network_init(NULL);
struct gsm_bts *bts = gsm_bts_alloc(net, 0);
struct bsc_msc_data *msc;
struct gsm_subscriber_connection *conn;
diff --git a/tests/bssap/bssap_test.c b/tests/bssap/bssap_test.c
index ad8974f73..cf60e3871 100644
--- a/tests/bssap/bssap_test.c
+++ b/tests/bssap/bssap_test.c
@@ -89,7 +89,7 @@ void test_cell_identifier()
struct bsc_msc_data *msc;
struct gsm_bts *bts;
- bsc_gsmnet = bsc_network_init(NULL, 1, 1);
+ bsc_gsmnet = bsc_network_init(NULL);
bsc_gsmnet->bsc_data->rf_ctrl = talloc_zero(NULL, struct osmo_bsc_rf);
bsc_gsmnet->bsc_data->rf_ctrl->policy = S_RF_ON;
diff --git a/tests/channel/channel_test.c b/tests/channel/channel_test.c
index f37877e94..b41e3d6a7 100644
--- a/tests/channel/channel_test.c
+++ b/tests/channel/channel_test.c
@@ -38,7 +38,7 @@ void test_bts_debug_print(void)
printf("Testing the lchan printing:");
/* Create a dummy network */
- network = bsc_network_init(tall_bsc_ctx, 1, 1);
+ network = bsc_network_init(tall_bsc_ctx);
if (!network)
exit(1);
/* Add a BTS with some reasonanbly non-zero id */
diff --git a/tests/gsm0408/gsm0408_test.c b/tests/gsm0408/gsm0408_test.c
index aeec56f4c..9f5a5c41f 100644
--- a/tests/gsm0408/gsm0408_test.c
+++ b/tests/gsm0408/gsm0408_test.c
@@ -834,7 +834,7 @@ int main(int argc, char **argv)
osmo_init_logging(&log_info);
log_set_log_level(osmo_stderr_target, LOGL_INFO);
- net = bsc_network_init(tall_bsc_ctx, 1, 1);
+ net = bsc_network_init(tall_bsc_ctx);
if (!net) {
printf("Network init failure.\n");
return EXIT_FAILURE;
diff --git a/tests/handover/handover_test.c b/tests/handover/handover_test.c
index d1f75ba4e..8ba97fd8e 100644
--- a/tests/handover/handover_test.c
+++ b/tests/handover/handover_test.c
@@ -1293,7 +1293,7 @@ int main(int argc, char **argv)
log_set_print_filename2(osmo_stderr_target, LOG_FILENAME_BASENAME);
/* Create a dummy network */
- bsc_gsmnet = bsc_network_init(NULL, 1, 1);
+ bsc_gsmnet = bsc_network_init(NULL);
if (!bsc_gsmnet)
exit(1);