diff options
author | Neels Hofmeyr <neels@hofmeyr.de> | 2020-11-12 22:51:11 +0100 |
---|---|---|
committer | Neels Hofmeyr <neels@hofmeyr.de> | 2020-11-17 03:32:17 +0100 |
commit | 2f58de5b30dc130fe9940bd4025c6dbab0f5d839 (patch) | |
tree | 1c9bb7633a3f4ad6fd99e3a69bb5a11ab3a91121 /tests/handover/handover_test.c | |
parent | 72d64e722777b00e04ece14d468422d5d5d0b44f (diff) |
handover_test prep: move arfcn into create_bts()
Preparation for Ic645cea671aa4798804666b8886f11bab5351e11 to allow arbitrary
timeslot configurations in the tests.
Change-Id: I6eb11e9f98c827cfcd819990db38b6848bf18b27
Diffstat (limited to 'tests/handover/handover_test.c')
-rw-r--r-- | tests/handover/handover_test.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/handover/handover_test.c b/tests/handover/handover_test.c index bb72e1b7f..b911b98b9 100644 --- a/tests/handover/handover_test.c +++ b/tests/handover/handover_test.c @@ -174,8 +174,9 @@ static void gen_meas_rep(struct gsm_lchan *lchan) 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 @@ static struct gsm_bts *create_bts(int arfcn) } 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 @@ int main(int argc, char **argv) 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"); |