Commit e1afcdaf authored by aligungr's avatar aligungr

5G-S-TMSI encoding fix in Initial UE Message

parent ea3ea230
......@@ -38,7 +38,7 @@ int64_t GutiMobileIdentity::toTmsiValue() const
GutiMobileIdentity GutiMobileIdentity::FromSTmsi(int64_t sTmsi)
{
GutiMobileIdentity res;
res.tmsi = octet4{static_cast<uint32_t>(sTmsi & 0xFFFFFFLL)};
res.tmsi = octet4{static_cast<uint32_t>(sTmsi & 0xFFFFFFFFLL)};
res.amfPointer = static_cast<int>(((sTmsi >> 32LL) & 0b111111LL));
res.amfSetId = static_cast<int>(((sTmsi >> 38LL) & 0b1111111111LL));
return res;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment