Change in osmo-ttcn3-hacks[master]: library/GSM_RR_Types: make ts_MEAS_REP more user-friendly

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/.

fixeria gerrit-no-reply at lists.osmocom.org
Sat Nov 14 15:02:57 UTC 2020


fixeria has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/21150 )


Change subject: library/GSM_RR_Types: make ts_MEAS_REP more user-friendly
......................................................................

library/GSM_RR_Types: make ts_MEAS_REP more user-friendly

Change-Id: Ica1ea41ebba5c518d515a211e77ca6651c4173d6
---
M bts/BTS_Tests.ttcn
M library/GSM_RR_Types.ttcn
2 files changed, 7 insertions(+), 4 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/50/21150/1

diff --git a/bts/BTS_Tests.ttcn b/bts/BTS_Tests.ttcn
index 4be8d2b..cf468cf 100644
--- a/bts/BTS_Tests.ttcn
+++ b/bts/BTS_Tests.ttcn
@@ -1812,7 +1812,7 @@
 	var L1ctlDlMessage l1_dl;
 	[] L1CTL.receive(tr_L1CTL_DATA_IND(g_chan_nr, tr_RslLinkID_SACCH(?))) -> value l1_dl {
 		log("SACCH received: ", l1_dl.payload.data_ind.payload);
-		var GsmRrL3Message meas_rep := valueof(ts_MEAS_REP(true, mp_rxlev_exp, mp_rxlev_exp, 0, 0, omit));
+		var GsmRrL3Message meas_rep := valueof(ts_MEAS_REP(true, mp_rxlev_exp, mp_rxlev_exp));
 		var LapdmFrameAB lb := valueof(ts_LAPDm_AB(0, false, false, enc_GsmRrL3Message(meas_rep)));
 		log("LAPDm: ", lb);
 
diff --git a/library/GSM_RR_Types.ttcn b/library/GSM_RR_Types.ttcn
index b4aff10..8cb824d 100644
--- a/library/GSM_RR_Types.ttcn
+++ b/library/GSM_RR_Types.ttcn
@@ -1099,9 +1099,12 @@
 		}
 	};
 
-	template (value) GsmRrL3Message ts_MEAS_REP(boolean valid, uint6_t rxl_f, uint6_t rxl_s,
-						  uint3_t rxq_f, uint3_t rxq_s,
-						  template (omit) NcellReports reps) := {
+	template (value) GsmRrL3Message ts_MEAS_REP(boolean valid,
+						    template (value) uint6_t rxl_f,
+						    template (value) uint6_t rxl_s,
+						    template (value) uint3_t rxq_f := 0,
+						    template (value) uint3_t rxq_s := 0,
+						    template (omit) NcellReports reps := omit) := {
 		header := t_RrL3Header(MEASUREMENT_REPORT),
 		payload := {
 			meas_rep := {

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/21150
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: Ica1ea41ebba5c518d515a211e77ca6651c4173d6
Gerrit-Change-Number: 21150
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <vyanitskiy at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20201114/1b948185/attachment.htm>


More information about the gerrit-log mailing list