diff options
authorPau Espin Pedrol <>2018-09-28 16:10:32 +0200
committerHarald Welte <>2018-10-04 06:38:41 +0000
commit99a7aca62da081e309cf816f4767a998abce3139 (patch)
parented359cb59f81ac8263ac5bf5eb4cb41d76222ddc (diff)
bts: Use f_L1CTL_PARAM to set expected ms power level for dummy MeasRep
If for whatever reason (eg. CPU scheduling saturation) the L1CTL cli (TTCN3) doesn't send Measurement Reports on time and no previous one is cached or has been erased by L1CTL_DM_REL_REQ, lower osmocombb layers will generate their own dummy Measurement Reports since SACCH must always be filled. Those dummy Measurement Reports are filled from parameters previosuly set using L1CTL_PARAM_REQ (implemented by f_L1CTL_PARAM() in TTCN3). Since that function is never called, we need to call it to set the expected MS power level values in case the cache is empty and we don't send expected values in case we don't send the Measurement Report through L1CTL on time. Change-Id: Ie1fd9cee3472c7aa6580f846d277f485d3401641
1 files changed, 1 insertions, 0 deletions
diff --git a/bts/BTS_Tests.ttcn b/bts/BTS_Tests.ttcn
index b5bcc5b..fe59fd3 100644
--- a/bts/BTS_Tests.ttcn
+++ b/bts/BTS_Tests.ttcn
@@ -1366,6 +1366,7 @@ private function f_est_dchan(boolean encr_enable := false) runs on ConnHdlr {
var ImmediateAssignment imm_ass;
var integer ra := 23;
+ f_L1CTL_PARAM(L1CTL, g_pars.l1_pars.ms_actual_ta, g_pars.l1_pars.ms_power_level);
fn := f_L1CTL_RACH(L1CTL, ra);
/* This arrives on CCHAN, so we cannot test for receiving CHAN RQDhere */