From 204d1b832f1091809fbb232878524b5236e12391 Mon Sep 17 00:00:00 2001 From: Vadim Yanitskiy Date: Wed, 27 May 2020 19:40:01 +0700 Subject: [PATCH] library/L1CTL_PortType: f_L1CTL_DM_EST_REQ_IA(): handle hopping params Change-Id: I8c14fee3ec8f7a799469c681b5afe79ab74a5dfc Related: OS#4546 --- library/L1CTL_PortType.ttcn | 25 +++++++++++++++++++++---- 1 file changed, 21 insertions(+), 4 deletions(-) diff --git a/library/L1CTL_PortType.ttcn b/library/L1CTL_PortType.ttcn index cc2ff9327..94f807aa7 100644 --- a/library/L1CTL_PortType.ttcn +++ b/library/L1CTL_PortType.ttcn @@ -203,10 +203,27 @@ module L1CTL_PortType { } /* Send DM_EST_REQ from parameters derived from IMM ASS */ - function f_L1CTL_DM_EST_REQ_IA(L1CTL_PT pt, ImmediateAssignment imm_ass) { - pt.send(ts_L1CTL_DM_EST_REQ_H0(imm_ass.chan_desc.chan_nr, - imm_ass.chan_desc.tsc, - imm_ass.chan_desc.arfcn)); + function f_L1CTL_DM_EST_REQ_IA(L1CTL_PT pt, ImmediateAssignment imm_ass, L1ctlMA ma := {}) { + /* FIXME: handle Packet Channel Description */ + if (imm_ass.ded_or_tbf.tbf == true) { + setverdict(fail, "TBF assignment is not handled by ", __SCOPE__); + mtc.stop; + } + + /* Single channel or frequency hopping? */ + if (not imm_ass.chan_desc.h) { + pt.send(ts_L1CTL_DM_EST_REQ_H0(imm_ass.chan_desc.chan_nr, + imm_ass.chan_desc.tsc, + imm_ass.chan_desc.arfcn)); + } else { + /* TODO: we probably want to apply a bitmask from imm_ass.mobile_allocation + * on the list of channels, if it's present. Use all channels for now. */ + pt.send(ts_L1CTL_DM_EST_REQ_H1(imm_ass.chan_desc.chan_nr, + imm_ass.chan_desc.tsc, + imm_ass.chan_desc.maio_hsn.hsn, + imm_ass.chan_desc.maio_hsn.maio, + ma)); + } } /* Send DM_REL_REQ from parameters derived from IMM ASS */