Harald Welte has submitted this change and it was merged.

Change subject: RSL_Types: Add tr_RSL_MEAS_RES_OSMO()
......................................................................


RSL_Types: Add tr_RSL_MEAS_RES_OSMO()

This is a template that goes beyond the 3GPP specs, as it expects
presence of certain optional IEs which we know are always present
in the OsmoBTS case.

Change-Id: Ibf37565ab4fe70515b598a2757953628aa780241
---
M library/RSL_Types.ttcn
1 file changed, 22 insertions(+), 0 deletions(-)

Approvals:
  Harald Welte: Looks good to me, approved
  Jenkins Builder: Verified



diff --git a/library/RSL_Types.ttcn b/library/RSL_Types.ttcn
index c9fcfab..2cd5bd5 100644
--- a/library/RSL_Types.ttcn
+++ b/library/RSL_Types.ttcn
@@ -1039,6 +1039,28 @@
                }
        }
 
+       /* Osmocom specific template, require lots of optional fields to be 
present */
+       template RSL_Message tr_RSL_MEAS_RES_OSMO(template RslChannelNr chan_nr,
+                                            template uint8_t meas_res_nr := ?,
+                                            template RSL_IE_UplinkMeas ul_meas 
:= ?,
+                                            template RSL_IE_BS_Power bs_power 
:= ?,
+                                            template RSL_IE_L1Info l1_info := 
?,
+                                            template octetstring l3_info := ?,
+                                            template uint8_t ms_to := ?) := {
+               msg_disc := ts_RSL_MsgDisc(RSL_MDISC_DCHAN, false),
+               msg_type := RSL_MT_MEAS_RES,
+               ies := {
+                       tr_RSL_IE(RSL_IE_Body:{chan_nr := chan_nr}),
+                       tr_RSL_IE(RSL_IE_Body:{meas_res_nr := meas_res_nr}),
+                       tr_RSL_IE(RSL_IE_Body:{uplink_meas := ul_meas}),
+                       tr_RSL_IE(RSL_IE_Body:{bs_power := bs_power}),
+                       tr_RSL_IE(RSL_IE_Body:{l1_info := l1_info}),
+                       tr_RSL_IE(RSL_IE_Body:{l3_info := 
tr_RSL_L16V(l3_info)}),
+                       tr_RSL_IE(RSL_IE_Body:{ms_timing_offset := ms_to})
+               }
+       }
+
+
        /* 8.4.10 BTS -> BSC */
        template RSL_Message ts_RSL_MODE_MODIFY_ACK(RslChannelNr chan_nr) := {
                msg_disc := ts_RSL_MsgDisc(RSL_MDISC_DCHAN, false),

-- 
To view, visit https://gerrit.osmocom.org/6867
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ibf37565ab4fe70515b598a2757953628aa780241
Gerrit-PatchSet: 1
Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Owner: Harald Welte <lafo...@gnumonks.org>
Gerrit-Reviewer: Harald Welte <lafo...@gnumonks.org>
Gerrit-Reviewer: Jenkins Builder

Reply via email to