summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVadim Yanitskiy <vyanitskiy@sysmocom.de>2020-11-28 22:42:27 +0100
committerfixeria <vyanitskiy@sysmocom.de>2021-04-16 23:04:44 +0000
commit7dad608cdcc48cb7c14c9fa15cccc45ade34d623 (patch)
tree02c517e015e481e87bf8646e1767d9e6049a3433
parentcb57c1b1373a5b15b6c0f885ecef6887d1210d03 (diff)
BTS_Tests: as_l1_sacch(): make MEAS_VALID flag configurable
-rw-r--r--bts/BTS_Tests.ttcn4
1 files changed, 3 insertions, 1 deletions
diff --git a/bts/BTS_Tests.ttcn b/bts/BTS_Tests.ttcn
index 7816836c..8ae8eb22 100644
--- a/bts/BTS_Tests.ttcn
+++ b/bts/BTS_Tests.ttcn
@@ -777,6 +777,7 @@ friend template ConnHdlrPars t_Pars(template RslChannelNr chan_nr,
l1_pars := {
dtx_enabled := false,
toa256_enabled := false,
+ meas_valid := true,
meas_ul := {
full := {
rxlev := mp_ul_rxlev_exp,
@@ -1857,7 +1858,7 @@ private altstep as_l1_sacch() runs on ConnHdlr {
[] L1CTL.receive(tr_L1CTL_DATA_IND(g_chan_nr, tr_RslLinkID_SACCH(?))) -> value l1_dl {
log("SACCH received: ", l1_dl.payload.data_ind.payload);
- lb := ts_LAPDm_AB(0, ts_MEAS_REP(true, /* TODO: make it configurable too */
+ lb := ts_LAPDm_AB(0, ts_MEAS_REP(g_pars.l1_pars.meas_valid,
g_pars.l1_pars.meas_ul.full.rxlev,
g_pars.l1_pars.meas_ul.sub.rxlev,
g_pars.l1_pars.meas_ul.full.rxqual,
@@ -1939,6 +1940,7 @@ private type record MeasElemFS {
private type record ConnL1Pars {
boolean dtx_enabled,
boolean toa256_enabled,
+ boolean meas_valid,
MeasElemFS meas_ul,
int16_t timing_offset_256syms,
uint4_t bs_power_level,