diff options
author | Philipp Maier <pmaier@sysmocom.de> | 2020-10-23 21:48:27 +0200 |
---|---|---|
committer | Philipp Maier <pmaier@sysmocom.de> | 2020-10-26 17:53:57 +0100 |
commit | 07aa8927e1c8565696df593df010c263a1052f58 (patch) | |
tree | 708c255e0fa525ea0496af60b857f696d5be1f31 /tests | |
parent | 79294134dde6e0c78ac4de128acde977b7b7dbc1 (diff) |
measurement: fix expected number of measurements
The logic in measurement.c checks the amount of collected measurement
values. This is done for the total amount of measurements and the amount
of SUB blocks measurements.
The functions that return the expected number of measurement values
currently do not take into account that the mode of a TCH/F or TCH/H has
an effect on the number of expected SUB blocks. (In signalling channels
all blocks count as SUB). Also a TCH/H in signalling mode generates only
half the amount of measurements because the blocks in signalling mode
are sepreded over 6 bursts instead of 4. This also needs to be taken
into account.
Change-Id: I01c7b6cc908c647263ab88f6b6281c4732f88779
Related: OS#4799
Diffstat (limited to 'tests')
-rw-r--r-- | tests/meas/meas_test.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/meas/meas_test.c b/tests/meas/meas_test.c index 309a5221..174abbe6 100644 --- a/tests/meas/meas_test.c +++ b/tests/meas/meas_test.c @@ -84,6 +84,7 @@ static void test_meas_compute(const struct meas_testcase *mtc) lchan = &trx->ts[mtc->ts].lchan[0]; lchan->ts->pchan = mtc->pchan; + lchan->tch_mode = GSM48_CMODE_SPEECH_V1; reset_lchan_meas(lchan); /* feed uplink measurements into the code */ |