PCU_Tests: make use of GprsMS in TC_ta_idle_dl_tbf_ass()
Change-Id: Ife9cea132f47c528702e653ac061fa3851090a24
diff --git a/pcu/PCU_Tests.ttcn b/pcu/PCU_Tests.ttcn
index 5ab208b..1d35a55 100644
--- a/pcu/PCU_Tests.ttcn
+++ b/pcu/PCU_Tests.ttcn
@@ -501,8 +501,7 @@
* IUT that causes it to send an unreasonable Timing Advance value > 0 despite
* no active TBF exists at the moment of establishment (idle mode). */
testcase TC_ta_idle_dl_tbf_ass() runs on RAW_PCU_Test_CT {
- var OCT4 tlli := f_rnd_octstring(4);
- var GsmRrMessage rr_imm_ass;
+ var GprsMS ms := valueof(t_GprsMS_def);
/* Initialize NS/BSSGP side */
f_init_bssgp();
@@ -512,17 +511,17 @@
/* Establish BSSGP connection to the PCU */
f_bssgp_establish();
- f_bssgp_client_llgmm_assign(TLLI_UNUSED, tlli);
+ f_bssgp_client_llgmm_assign(TLLI_UNUSED, ms.tlli);
/* SGSN sends some DL data, PCU will initiate Packet Downlink
* Assignment on CCCH (PCH). We don't care about the payload. */
- BSSGP[0].send(ts_BSSGP_DL_UD(tlli, f_rnd_octstring(10)));
- rr_imm_ass := f_pcuif_rx_imm_ass(PCU_IF_SAPI_PCH, tr_IMM_TBF_ASS(dl := true));
+ BSSGP[0].send(ts_BSSGP_DL_UD(ms.tlli, f_rnd_octstring(10)));
+ f_ms_exp_dl_tbf_ass_ccch(ms, PCU_IF_SAPI_PCH);
/* Make sure that Timing Advance is 0 (the actual value is not known yet).
* As per 3GPP S 44.018, section 3.5.3.1.2, the network *shall* initiate
* the procedures defined in 3GPP TS 44.060 or use the polling mechanism. */
- if (rr_imm_ass.payload.imm_ass.timing_advance != 0) {
+ if (ms.dl_tbf.rr_imm_ass.payload.imm_ass.timing_advance != 0) {
setverdict(fail, "Timing Advance value doesn't match");
}