Commit 62ee8399 authored by Tien Thinh NGUYEN's avatar Tien Thinh NGUYEN

Fix issue for 5GS Registration Result

parent 560c1dfb
...@@ -32,7 +32,7 @@ _5GS_Registration_Result::_5GS_Registration_Result() : Type4NasIe() { ...@@ -32,7 +32,7 @@ _5GS_Registration_Result::_5GS_Registration_Result() : Type4NasIe() {
nssaa_performed_ = false; nssaa_performed_ = false;
sms_allowed_ = false; sms_allowed_ = false;
value_ = 0; value_ = 0;
SetLengthIndicator(k5gsRegistrationResultLength); SetLengthIndicator(k5gsRegistrationResultContentLength);
SetIeName(k5gsRegistrationResultIeName); SetIeName(k5gsRegistrationResultIeName);
} }
...@@ -43,7 +43,7 @@ _5GS_Registration_Result::_5GS_Registration_Result(uint8_t iei) ...@@ -43,7 +43,7 @@ _5GS_Registration_Result::_5GS_Registration_Result(uint8_t iei)
nssaa_performed_ = false; nssaa_performed_ = false;
sms_allowed_ = false; sms_allowed_ = false;
value_ = 0; value_ = 0;
SetLengthIndicator(k5gsRegistrationResultLength); SetLengthIndicator(k5gsRegistrationResultContentLength);
SetIeName(k5gsRegistrationResultIeName); SetIeName(k5gsRegistrationResultIeName);
} }
...@@ -55,7 +55,7 @@ _5GS_Registration_Result::_5GS_Registration_Result( ...@@ -55,7 +55,7 @@ _5GS_Registration_Result::_5GS_Registration_Result(
nssaa_performed_ = nssaa; nssaa_performed_ = nssaa;
sms_allowed_ = sms; sms_allowed_ = sms;
value_ = value & 0x07; value_ = value & 0x07;
SetLengthIndicator(k5gsRegistrationResultLength); SetLengthIndicator(k5gsRegistrationResultContentLength);
SetIeName(k5gsRegistrationResultIeName); SetIeName(k5gsRegistrationResultIeName);
} }
...@@ -67,7 +67,7 @@ _5GS_Registration_Result::_5GS_Registration_Result( ...@@ -67,7 +67,7 @@ _5GS_Registration_Result::_5GS_Registration_Result(
nssaa_performed_ = nssaa; nssaa_performed_ = nssaa;
sms_allowed_ = sms; sms_allowed_ = sms;
value_ = value & 0x07; value_ = value & 0x07;
SetLengthIndicator(k5gsRegistrationResultLength); SetLengthIndicator(k5gsRegistrationResultContentLength);
SetIeName(k5gsRegistrationResultIeName); SetIeName(k5gsRegistrationResultIeName);
} }
......
...@@ -25,8 +25,9 @@ ...@@ -25,8 +25,9 @@
#include "Type4NasIe.hpp" #include "Type4NasIe.hpp"
#include <stdint.h> #include <stdint.h>
constexpr uint8_t k5gsRegistrationResultLength = 3; constexpr uint8_t k5gsRegistrationResultLength = 3;
constexpr auto k5gsRegistrationResultIeName = "5GS Registration Result"; constexpr uint8_t k5gsRegistrationResultContentLength = 1;
constexpr auto k5gsRegistrationResultIeName = "5GS Registration Result";
namespace nas { namespace nas {
......
...@@ -19,13 +19,6 @@ ...@@ -19,13 +19,6 @@
* contact@openairinterface.org * contact@openairinterface.org
*/ */
/*! \file
\brief
\author Keliang DU, BUPT
\date 2020
\email: contact@openairinterface.org
*/
#include "RegistrationAccept.hpp" #include "RegistrationAccept.hpp"
#include "3gpp_24.501.hpp" #include "3gpp_24.501.hpp"
......
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