RLCMAC: Fix unbound spb value in decoded egprs data blocks
That field is only present in Header Type 3 blocks.
Change-Id: Ie05576d7d7c18933dd9abcdc055cbfe1e4e54756
diff --git a/library/RLCMAC_Types.ttcn b/library/RLCMAC_Types.ttcn
index 3110a66..fe47231 100644
--- a/library/RLCMAC_Types.ttcn
+++ b/library/RLCMAC_Types.ttcn
@@ -238,9 +238,9 @@
uint11_t bsn1,
uint8_t bsn2_offset,
uint2_t pr, /* power reduction */
- uint2_t spb,
+ uint2_t spb optional,
uint4_t cps
- } with { variant "" };
+ } with { variant (spb) "PRESENCE(header_type=RLCMAC_HDR_TYPE_3)" };
/* Manual C++ Decoder: */
type record RlcmacDlEgprsDataBlock {
CodingScheme mcs, /* Provided by C++ Decoder */
@@ -295,9 +295,10 @@
uint4_t cps,
boolean pfi_ind,
BIT1 rsb,
- BIT2 spb
+ BIT2 spb optional
} with {
variant (pfi_ind) "FIELDLENGTH(1)"
+ variant (spb) "PRESENCE(header_type=RLCMAC_HDR_TYPE_3)"
};
/* Manual C++ Decoder: 10.3a.2.1 EGPRS Uplink RLC data block */
type record RlcmacUlEgprsDataBlock {