aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pcu/PCU_Tests.ttcn5
1 files changed, 4 insertions, 1 deletions
diff --git a/pcu/PCU_Tests.ttcn b/pcu/PCU_Tests.ttcn
index a4596bff..df2964cf 100644
--- a/pcu/PCU_Tests.ttcn
+++ b/pcu/PCU_Tests.ttcn
@@ -2162,8 +2162,11 @@ testcase TC_egprs_pkt_chan_req_reject_exhaustion() runs on RAW_PCU_Test_CT {
}
/* Randomly generate a set of hopping parameters for one timeslot */
-private function f_TC_pcuif_fh_params_gen(integer ma_len)
+private function f_TC_pcuif_fh_params_gen(integer max_ma_len)
return template (value) PCUIF_InfoTrxTs {
+ /* Pick a random MA length in range 2 .. max_ma_len */
+ var integer ma_len := 2 + f_rnd_int(max_ma_len - 2);
+
return ts_PCUIF_InfoTrxTsH1(tsc := f_rnd_int(7),
hsn := f_rnd_int(63),
maio := f_rnd_int(63),