L3_Templates: Fix ts_MI_TMSI_TLV / ts_MI_IMSI_LV / ts_MI_IMEI_LV

It seems not all encoder paths properly set typeOfIdentity, so
let's make sure we set it correctly.

Change-Id: Ie35dcf7fec901b786eb2127c1a23f5c161c5778c
This commit is contained in:
Harald Welte 2018-02-16 18:15:22 +01:00
parent b0386dfd30
commit 519db89960
1 changed files with 3 additions and 3 deletions

View File

@ -66,7 +66,7 @@ template MobileIdentityLV ts_MI_TMSI_LV(OCT4 tmsi) := {
/* send template fro Mobile Identity (TMSI) */
template MobileIdentityTLV ts_MI_TMSI_TLV(OCT4 tmsi) := {
elementIdentifier := '0000000'B, /* overwritten */
elementIdentifier := '0100011'B,
spare1 := '0'B,
mobileIdentityLV := ts_MI_TMSI_LV(tmsi)
}
@ -120,7 +120,7 @@ private function f_enc_IMEI_SV(hexstring digits) return IMEI_SV {
template (value) MobileIdentityLV ts_MI_IMSI_LV(hexstring imsi_digits) := {
lengthIndicator := 0, /* overwritten */
mobileIdentityV := {
typeOfIdentity := '000'B, /* overwritten */
typeOfIdentity := '001'B,
oddEvenInd_identity := {
imsi := f_enc_IMSI_L3(imsi_digits)
}
@ -131,7 +131,7 @@ template (value) MobileIdentityLV ts_MI_IMSI_LV(hexstring imsi_digits) := {
template (value) MobileIdentityLV ts_MI_IMEI_LV(hexstring imei_digits) := {
lengthIndicator := 0, /* overwritten */
mobileIdentityV := {
typeOfIdentity := '000'B, /* overwritten */
typeOfIdentity := '010'B,
oddEvenInd_identity := {
imei := f_enc_IMEI_L3(imei_digits)
}