Change in osmo-ttcn3-hacks[master]: library/L1CTL_PortType: f_L1CTL_DM_EST_REQ_IA(): handle hopping params

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

laforge gerrit-no-reply at lists.osmocom.org
Fri May 29 19:40:49 UTC 2020


laforge has submitted this change. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/18529 )

Change subject: library/L1CTL_PortType: f_L1CTL_DM_EST_REQ_IA(): handle hopping params
......................................................................

library/L1CTL_PortType: f_L1CTL_DM_EST_REQ_IA(): handle hopping params

Change-Id: I8c14fee3ec8f7a799469c681b5afe79ab74a5dfc
Related: OS#4546
---
M library/L1CTL_PortType.ttcn
1 file changed, 21 insertions(+), 4 deletions(-)

Approvals:
  Jenkins Builder: Verified
  laforge: Looks good to me, approved



diff --git a/library/L1CTL_PortType.ttcn b/library/L1CTL_PortType.ttcn
index cc2ff93..94f807a 100644
--- a/library/L1CTL_PortType.ttcn
+++ b/library/L1CTL_PortType.ttcn
@@ -203,10 +203,27 @@
 	}
 
 	/* 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 */

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/18529
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: I8c14fee3ec8f7a799469c681b5afe79ab74a5dfc
Gerrit-Change-Number: 18529
Gerrit-PatchSet: 4
Gerrit-Owner: fixeria <axilirator at gmail.com>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <axilirator at gmail.com>
Gerrit-Reviewer: laforge <laforge at osmocom.org>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200529/c79a9602/attachment.htm>


More information about the gerrit-log mailing list