Change in osmo-bsc[master]: handover_test prep: move arfcn into create_bts()

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

neels gerrit-no-reply at lists.osmocom.org
Tue Nov 17 01:56:09 UTC 2020


neels has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-bsc/+/21189 )


Change subject: handover_test prep: move arfcn into create_bts()
......................................................................

handover_test prep: move arfcn into create_bts()

Preparation for Ic645cea671aa4798804666b8886f11bab5351e11 to allow arbitrary
timeslot configurations in the tests.

Change-Id: I6eb11e9f98c827cfcd819990db38b6848bf18b27
---
M tests/handover/handover_test.c
1 file changed, 4 insertions(+), 4 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-bsc refs/changes/89/21189/1

diff --git a/tests/handover/handover_test.c b/tests/handover/handover_test.c
index bb72e1b..b911b98 100644
--- a/tests/handover/handover_test.c
+++ b/tests/handover/handover_test.c
@@ -174,8 +174,9 @@
 	abis_rsl_rcvmsg(msg);
 }
 
-static struct gsm_bts *create_bts(int arfcn)
+static struct gsm_bts *create_bts()
 {
+	static int arfcn = 870;
 	struct gsm_bts *bts;
 	struct e1inp_sign_link *rsl_link;
 	int i;
@@ -187,7 +188,7 @@
 	}
 
 	bts->location_area_code = 23;
-	bts->c0->arfcn = arfcn;
+	bts->c0->arfcn = arfcn++;
 
 	bts->codec.efr = 1;
 	bts->codec.hr = 1;
@@ -1495,12 +1496,11 @@
 
 	while (*test_case) {
 		if (!strcmp(*test_case, "create-bts")) {
-			static int arfcn = 870;
 			int n = atoi(test_case[1]);
 			fprintf(stderr, "- Creating %d BTS (one TRX each, "
 				"TS(1-4) are TCH/F, TS(5-6) are TCH/H)\n", n);
 			for (i = 0; i < n; i++)
-				bts[bts_num + i] = create_bts(arfcn++);
+				bts[bts_num + i] = create_bts();
 			for (i = 0; i < n; i++) {
 				if (gsm_generate_si(bts[bts_num + i], SYSINFO_TYPE_2) <= 0)
 					fprintf(stderr, "Error generating SI2\n");

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-bsc/+/21189
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-bsc
Gerrit-Branch: master
Gerrit-Change-Id: I6eb11e9f98c827cfcd819990db38b6848bf18b27
Gerrit-Change-Number: 21189
Gerrit-PatchSet: 1
Gerrit-Owner: neels <nhofmeyr at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20201117/47de3786/attachment.htm>


More information about the gerrit-log mailing list