summaryrefslogtreecommitdiffstats
path: root/bts/BTS_Tests.ttcn
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2018-03-10 19:00:24 +0100
committerHarald Welte <laforge@gnumonks.org>2018-03-12 16:04:41 +0100
commit5398d5e6f74d5becce2cd70b9e1f1adc863907b8 (patch)
treec87d5da37a6d52f2969e2ec563722f9fa97541a4 /bts/BTS_Tests.ttcn
parentfa45e9ed8c715c00888682c16535f1d3da63f92b (diff)
bts: Make f_TC_meas_res_periodic work with real BTS
In a real BTS + OsmocomBB-L1, we cannot control fake ToA/RSSI, but we simply assume the signal is strong/good. Change-Id: I55a79f9e23118d2bb28f27cbcc7ab28712570ef1
Diffstat (limited to 'bts/BTS_Tests.ttcn')
-rw-r--r--bts/BTS_Tests.ttcn15
1 files changed, 10 insertions, 5 deletions
diff --git a/bts/BTS_Tests.ttcn b/bts/BTS_Tests.ttcn
index e97c6d9..7b6fc2f 100644
--- a/bts/BTS_Tests.ttcn
+++ b/bts/BTS_Tests.ttcn
@@ -921,12 +921,17 @@ function f_TC_meas_res_periodic(charstring id) runs on ConnHdlr {
f_l1_tune(L1CTL);
RSL.clear;
- g_pars.l1_pars.meas_ul.full.rxlev := dbm2rxlev(-100);
- g_pars.l1_pars.meas_ul.sub.rxlev := g_pars.l1_pars.meas_ul.full.rxlev;
- f_trxc_fake_rssi(100);
+ if (mp_bb_trxc_port != -1) {
+ g_pars.l1_pars.meas_ul.full.rxlev := dbm2rxlev(-100);
+ f_trxc_fake_rssi(100);
- g_pars.l1_pars.timing_offset_256syms := 512; /* 2 symbols */
- f_trx_fake_toffs256(g_pars.l1_pars.timing_offset_256syms);
+ g_pars.l1_pars.timing_offset_256syms := 512; /* 2 symbols */
+ f_trx_fake_toffs256(g_pars.l1_pars.timing_offset_256syms);
+ } else {
+ g_pars.l1_pars.timing_offset_256syms := 0; /* FIXME */
+ g_pars.l1_pars.meas_ul.full.rxlev := dbm2rxlev(-55); /* FIXME */
+ }
+ g_pars.l1_pars.meas_ul.sub.rxlev := g_pars.l1_pars.meas_ul.full.rxlev;
f_est_dchan();