summaryrefslogtreecommitdiffstats
path: root/bts/BTS_Tests.ttcn
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2018-03-10 18:59:03 +0100
committerHarald Welte <laforge@gnumonks.org>2018-03-12 16:04:39 +0100
commitfa45e9ed8c715c00888682c16535f1d3da63f92b (patch)
tree7eb050e9aec03798028164e7dff7e6a15952cf61 /bts/BTS_Tests.ttcn
parentd5684396e5806bbc2a693c2e9c7ffef5a1119d91 (diff)
bts: Ignore first MEAS REP as it often contains bogus values
The first measurement report typically has bad performance as it contains measurements taken before the MS actually started to transmit on it. Let's make sure we only validate all but the first MEAS REP Change-Id: I5edfdca0c2b5c63073dca7f12f9c0d447e37995c
Diffstat (limited to 'bts/BTS_Tests.ttcn')
-rw-r--r--bts/BTS_Tests.ttcn14
1 files changed, 12 insertions, 2 deletions
diff --git a/bts/BTS_Tests.ttcn b/bts/BTS_Tests.ttcn
index a50d3f6..e97c6d9 100644
--- a/bts/BTS_Tests.ttcn
+++ b/bts/BTS_Tests.ttcn
@@ -108,6 +108,7 @@ type component ConnHdlr extends RSL_DchanHdlr {
var ConnHdlrPars g_pars;
var uint8_t g_next_meas_res_nr := 0;
+ var boolean g_first_meas_res := true;
}
function f_init_rsl(charstring id) runs on test_CT {
@@ -858,8 +859,15 @@ altstep as_meas_res() runs on ConnHdlr {
repeat;
}
[] RSL.receive(tr_RSL_MEAS_RES(g_chan_nr, g_next_meas_res_nr)) -> value rsl {
- setverdict(fail, "Received unspecific MEAS RES ", rsl);
- self.stop;
+ /* increment counter of next to-be-expected meas rep */
+ g_next_meas_res_nr := (g_next_meas_res_nr + 1) mod 256;
+ if (g_first_meas_res) {
+ g_first_meas_res := false;
+ repeat;
+ } else {
+ setverdict(fail, "Received unspecific MEAS RES ", rsl);
+ self.stop;
+ }
}
[] RSL.receive(tr_RSL_MEAS_RES(?)) -> value rsl {
setverdict(fail, "Received unexpected MEAS RES ", rsl);
@@ -904,6 +912,8 @@ private function f_est_dchan() runs on ConnHdlr {
ia_um := f_L1CTL_WAIT_IMM_ASS(L1CTL, ra, fn);
/* enable dedicated mode */
f_L1CTL_DM_EST_REQ_IA(L1CTL, ia_um);
+
+ g_first_meas_res := true;
}
/* establish DChan, verify existance + contents of measurement reports */