summaryrefslogtreecommitdiffstats
path: root/bts/BTS_Tests.ttcn
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2018-02-26 17:52:50 +0100
committerHarald Welte <laforge@gnumonks.org>2018-02-27 22:32:54 +0100
commit57fe8232db3fc6647596423873ae209f8aa06aba (patch)
tree245b29613270c0401d7680c329b394da62d2bbff /bts/BTS_Tests.ttcn
parentc3a3f4526822b0b2304a058e6a7e49e5bd741ff4 (diff)
bts: Instruct trxcon for TA=2 at every testcase start
as fake_trx keeps running during the entire test suite run, and the protocol being UDP based, it doesn't know when BTS_Test will re-start and hence the old TA/FAKE_TIMING value will remain until it is set. Let's explicitly set a FAKE_TIMING of two bits at start-up of each test case during f_init() Change-Id: I9f07768346e0d68a4dbe36780e36b799d27a7f06
Diffstat (limited to 'bts/BTS_Tests.ttcn')
-rw-r--r--bts/BTS_Tests.ttcn5
1 files changed, 4 insertions, 1 deletions
diff --git a/bts/BTS_Tests.ttcn b/bts/BTS_Tests.ttcn
index 8800139..45fcb06 100644
--- a/bts/BTS_Tests.ttcn
+++ b/bts/BTS_Tests.ttcn
@@ -212,6 +212,10 @@ function f_init(charstring id := "BTS-Test") runs on test_CT {
/* SI2 + SI4 are required for SI testing as they are mandatory defaults */
f_rsl_bcch_fill(RSL_SYSTEM_INFO_2, ts_SI2_default);
f_rsl_bcch_fill(RSL_SYSTEM_INFO_4, ts_SI4_default);
+
+ /* start with a default moderate timing offset equalling TA=2 */
+ f_main_trxc_connect();
+ BB_TRXC.send(ts_TRXC_Send(g_bb_trxc_conn_id, ts_TRXC_FAKE_TIMING(2*256)));
}
/* Attach L1CTL to master test_CT (classic tests, non-handler mode) */
@@ -599,7 +603,6 @@ testcase TC_rach_max_ta() runs on test_CT {
f_init(testcasename());
f_init_l1ctl();
f_l1_tune(L1CTL);
- f_main_trxc_connect();
f_sleep(1.0);
/* default max-ta is 63 (full range of GSM timing advance */