lynxis lazus has uploaded this change for review.

View Change

L3_Templates: RAU Request: add support for MS Network Capability

The MS Network Capability is important to determine the UMTS auth capability
as well the R99 support.

Change-Id: Id750c84ae1673ac33c98cecea035805e8cb92bcb
---
M library/L3_Templates.ttcn
1 file changed, 18 insertions(+), 1 deletion(-)

git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/16/38916/1
diff --git a/library/L3_Templates.ttcn b/library/L3_Templates.ttcn
index be15f57..fd68fcd 100644
--- a/library/L3_Templates.ttcn
+++ b/library/L3_Templates.ttcn
@@ -171,6 +171,22 @@
}
}

+function ts_GMM_MsNetCapTLV(template (omit) MSNetworkCapabilityV ms_network_cap) return template (omit) MSNetworkCapabilityTLV {
+ var template (omit) MSNetworkCapabilityTLV ret;
+ if (istemplatekind(ms_network_cap, "omit")) {
+ return omit;
+ } else {
+ ret := {
+ elementIdentifier := '31'O,
+ mSNetworkCapabilityLV := {
+ lengthIndicator := 0, /* overwritten */
+ msNetworkCapabilityV := ms_network_cap
+ }
+ }
+ return ret;
+ }
+}
+
/* send template for Mobile Identity (TMSI) */
function ts_MI_TMSI_TLV(template (omit) OCT4 tmsi) return template (omit) MobileIdentityTLV {
var template (omit) MobileIdentityTLV ret;
@@ -2621,6 +2637,7 @@
template (omit) P_TMSI_TypeTV p_tmsi_type := omit,
template (omit) MobileIdentityTLV add_p_tmsi := omit,
template (omit) RoutingAreaIdentification2TLV add_rai := omit,
+ template (omit) MSNetworkCapabilityV ms_network_cap := omit
) := {
discriminator := '0000'B, /* overwritten */
tiOrSkip := {
@@ -2639,7 +2656,7 @@
drxParameter := omit,
tmsiStatus := omit,
ptmsi := ts_MI_TMSI_TLV(p_tmsi),
- mSNetworkCapability := omit,
+ mSNetworkCapability := ts_GMM_MsNetCapTLV(ms_network_cap),
pdpContextStatus := omit, /* TODO */
pC_LCSCapability := omit,
mBMS_ContextStatus := omit,

To view, visit change 38916. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-MessageType: newchange
Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: Id750c84ae1673ac33c98cecea035805e8cb92bcb
Gerrit-Change-Number: 38916
Gerrit-PatchSet: 1
Gerrit-Owner: lynxis lazus <lynxis@fe80.eu>