aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Willmann <dwillmann@sysmocom.de>2022-08-24 09:58:07 +0200
committerDaniel Willmann <dwillmann@sysmocom.de>2022-08-24 13:57:52 +0200
commit28209ecdac518315a7cfe801801567d87e26f8b7 (patch)
tree8af068a02a1125033c6ff8a945baf04df995ee2f
parentc79679a2decf9700bc6ff77d8120bc72e9e0caad (diff)
hnbap: Use protocolExtensions := * in tr and omit in ts templates
-rw-r--r--hnbgw/HNBGW_Tests.ttcn2
-rw-r--r--library/hnbap/HNBAP_Templates.ttcn62
2 files changed, 62 insertions, 2 deletions
diff --git a/hnbgw/HNBGW_Tests.ttcn b/hnbgw/HNBGW_Tests.ttcn
index d3d3a36f..b440292b 100644
--- a/hnbgw/HNBGW_Tests.ttcn
+++ b/hnbgw/HNBGW_Tests.ttcn
@@ -638,7 +638,7 @@ function f_hnbap_register(integer hnb_idx := 0, integer cell_id := 0, boolean ex
{
timer T := 2.0;
- HNBAP[hnb_idx].send(tr_HNBAP_HNBRegisterRequest(char2oct("TTCN3 HNodeB"),
+ HNBAP[hnb_idx].send(ts_HNBAP_HNBRegisterRequest(char2oct("TTCN3 HNodeB"),
'00F110'O,
int2bit(1 + cell_id, 28),
int2oct(2, 2),
diff --git a/library/hnbap/HNBAP_Templates.ttcn b/library/hnbap/HNBAP_Templates.ttcn
index 0e62291b..89edf76e 100644
--- a/library/hnbap/HNBAP_Templates.ttcn
+++ b/library/hnbap/HNBAP_Templates.ttcn
@@ -83,6 +83,66 @@ tr_HNBAP_HNBRegisterRequest(template (present) octetstring hNB_Identity_Info :=
value_ := { sAC := sac }
}
},
+ protocolExtensions := *
+ }
+ }
+ }
+}
+
+template (value) HNBAP_PDU
+ts_HNBAP_HNBRegisterRequest(template (value) octetstring hNB_Identity_Info,
+ template (value) OCT3 plmnid,
+ template (value) BIT28 cell_identity,
+ template (value) OCT2 lac,
+ template (value) OCT1 rac,
+ template (value) OCT2 sac) := {
+ initiatingMessage := {
+ procedureCode := id_HNBRegister,
+ criticality := reject,
+ value_ := {
+ hNBRegisterRequest := {
+ protocolIEs := {
+ {
+ id := HNBAP_Constants.id_HNB_Identity,
+ criticality := reject,
+ value_ := {
+ hNB_Identity := {
+ hNB_Identity_Info := hNB_Identity_Info,
+ iE_Extensions := omit
+ }
+ }
+ }, {
+ id := 8,
+ criticality := reject,
+ value_ := {
+ hNB_Location_Information := {
+ macroCoverageInfo := omit,
+ geographicalCoordinates := omit,
+ iE_Extensions := omit
+ }
+ }
+ }, {
+ id := 9,
+ criticality := reject,
+ value_ := { pLMNidentity := plmnid }
+ }, {
+ id := 11,
+ criticality := reject,
+ value_ := { cellIdentity := cell_identity }
+ }, {
+ id := 6,
+ criticality := reject,
+ value_ := { lAC := lac }
+ }, {
+ id := 7,
+ criticality := reject,
+ value_ := { rAC := rac }
+ }, {
+ id := 10,
+ criticality := reject,
+ value_ := { sAC := sac }
+ }
+ },
protocolExtensions := omit
}
}
@@ -105,7 +165,7 @@ tr_HNBAP_HNBRegisterAccept(template (present) uint16_t rnc_id := ?) := {
value_ := { RNC_ID := rnc_id }
}
},
- protocolExtensions := omit /* TODO: Mux Port Number (optional) 9.2.29 */
+ protocolExtensions := * /* TODO: Mux Port Number (optional) 9.2.29 */
}
}
}