summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@espeweb.net>2021-02-05 12:37:42 +0100
committerPau Espin Pedrol <pespin@espeweb.net>2021-02-08 12:32:07 +0100
commitdbc71270df0b92fbb5fc44cccd23119e842adcc4 (patch)
tree140a7a072aa8cb7d200030fbe3e85d28046aba56
parentdb317650b45b0b8afb693e59a6dc27a402af9f37 (diff)
pcu: Fix inadequate restriction on the referenced template parameter
Fixes: warning: Inadequate restriction on the referenced template parameter `tfi', this may cause a dynamic test case error at runtime Same for other parameters. Change-Id: If2cadbc7087ac0f99537b9916ef0c23363c9242c
-rw-r--r--library/RLCMAC_Templates.ttcn29
1 files changed, 19 insertions, 10 deletions
diff --git a/library/RLCMAC_Templates.ttcn b/library/RLCMAC_Templates.ttcn
index 981061c9..6b5fb9ff 100644
--- a/library/RLCMAC_Templates.ttcn
+++ b/library/RLCMAC_Templates.ttcn
@@ -422,9 +422,12 @@ module RLCMAC_Templates {
}
/* Template for uplink Data block */
- template RlcmacUlBlock t_RLCMAC_UL_DATA(template CodingScheme cs, template uint5_t tfi,
- template uint4_t cv, template uint7_t bsn,
- template LlcBlocks blocks := {}, template boolean stall := false) := {
+ template (value) RlcmacUlBlock t_RLCMAC_UL_DATA(template (value) CodingScheme cs,
+ template (value) uint5_t tfi,
+ template (value) uint4_t cv,
+ template (value) uint7_t bsn,
+ template (value) LlcBlocks blocks := {},
+ template (value) boolean stall := false) := {
data := {
cs := cs,
mac_hdr := {
@@ -444,10 +447,13 @@ module RLCMAC_Templates {
blocks := blocks
}
}
- template RlcmacUlBlock t_RLCMAC_UL_DATA_TLLI(template CodingScheme cs, template uint5_t tfi,
- template uint4_t cv, template uint7_t bsn,
- template LlcBlocks blocks := {}, template boolean stall := false,
- template GprsTlli tlli) := {
+ template (value) RlcmacUlBlock t_RLCMAC_UL_DATA_TLLI(template (value) CodingScheme cs,
+ template (value) uint5_t tfi,
+ template (value) uint4_t cv,
+ template (value) uint7_t bsn,
+ template (value) LlcBlocks blocks := {},
+ template (value) boolean stall := false,
+ template (value) GprsTlli tlli) := {
data := {
cs := cs,
mac_hdr := {
@@ -469,9 +475,12 @@ module RLCMAC_Templates {
}
/* Template for uplink Data block */
- template RlcmacUlBlock t_RLCMAC_UL_EGPRS_DATA(CodingScheme mcs,
- template uint5_t tfi, template uint4_t cv,
- template uint11_t bsn1, template uint8_t bsn2_offset := 0, template EgprsLlcBlocks blocks := {}) := {
+ template (value) RlcmacUlBlock t_RLCMAC_UL_EGPRS_DATA(CodingScheme mcs,
+ template (value) uint5_t tfi,
+ template (value) uint4_t cv,
+ template (value) uint11_t bsn1,
+ template (value) uint8_t bsn2_offset := 0,
+ template (value) EgprsLlcBlocks blocks := {}) := {
data_egprs := {
mcs := mcs,
mac_hdr := {