From f8df4cb339425261a7f1bc96c70fa6c99018cf20 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Sat, 10 Mar 2018 15:15:08 +0100 Subject: L1CTL/bts: Fix tons of compiler warnings by splitting rx+tx templates Change-Id: I9c8be0856516a6a168795c792f76d14c08c3dabb --- library/GSM_RR_Types.ttcn | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) (limited to 'library/GSM_RR_Types.ttcn') diff --git a/library/GSM_RR_Types.ttcn b/library/GSM_RR_Types.ttcn index b1e6809c..2ceb1f81 100644 --- a/library/GSM_RR_Types.ttcn +++ b/library/GSM_RR_Types.ttcn @@ -114,7 +114,12 @@ module GSM_RR_Types { BIT2 zero_one } with { variant "" }; - template L2PseudoLength t_L2Pseudolength(template uint6_t len) := { + template L2PseudoLength tr_L2Pseudolength(template uint6_t len) := { + l2_plen := len, + zero_one := '01'B + }; + + template (value) L2PseudoLength ts_L2Pseudolength(uint6_t len) := { l2_plen := len, zero_one := '01'B }; @@ -127,12 +132,20 @@ module GSM_RR_Types { } with { variant "" }; template RrHeader t_RrHeader(RrMessageType msg_type, template uint6_t len) := { - l2_plen := t_L2Pseudolength(len), + l2_plen := tr_L2Pseudolength(len), + skip_indicator := 0, + rr_protocol_discriminator := 6, + message_type := msg_type + }; + + template (value) RrHeader ts_RrHeader(RrMessageType msg_type, uint6_t len) := { + l2_plen := ts_L2Pseudolength(len), skip_indicator := 0, rr_protocol_discriminator := 6, message_type := msg_type }; + type record RrL3Header { uint4_t skip_indicator, uint4_t rr_protocol_discriminator, -- cgit v1.2.3