Commit 58f9d747 authored by aligungr's avatar aligungr

Security mode command procedure improvement

parent b6208f69
...@@ -42,6 +42,8 @@ class NasMm ...@@ -42,6 +42,8 @@ class NasMm
std::unique_ptr<nas::ServiceRequest> m_lastServiceRequest{}; std::unique_ptr<nas::ServiceRequest> m_lastServiceRequest{};
// Most recent de-registration request // Most recent de-registration request
std::unique_ptr<nas::DeRegistrationRequestUeOriginating> m_lastDeregistrationRequest{}; std::unique_ptr<nas::DeRegistrationRequestUeOriginating> m_lastDeregistrationRequest{};
// Indicates that last registration request was sent without a NAS security context
bool m_lastRegWithoutNsc{};
// Indicates the last de-registration cause // Indicates the last de-registration cause
EDeregCause m_lastDeregCause{}; EDeregCause m_lastDeregCause{};
// Indicates the last service request cause // Indicates the last service request cause
......
...@@ -97,6 +97,7 @@ void NasMm::sendInitialRegistration(EInitialRegCause regCause) ...@@ -97,6 +97,7 @@ void NasMm::sendInitialRegistration(EInitialRegCause regCause)
// Send the message // Send the message
sendNasMessage(*request); sendNasMessage(*request);
m_lastRegistrationRequest = std::move(request); m_lastRegistrationRequest = std::move(request);
m_lastRegWithoutNsc = m_usim->m_currentNsCtx == nullptr;
// Process timers // Process timers
m_timers->t3510.start(); m_timers->t3510.start();
...@@ -187,6 +188,7 @@ void NasMm::sendMobilityRegistration(ERegUpdateCause updateCause) ...@@ -187,6 +188,7 @@ void NasMm::sendMobilityRegistration(ERegUpdateCause updateCause)
// Send the message // Send the message
sendNasMessage(*request); sendNasMessage(*request);
m_lastRegistrationRequest = std::move(request); m_lastRegistrationRequest = std::move(request);
m_lastRegWithoutNsc = m_usim->m_currentNsCtx == nullptr;
// Process timers // Process timers
m_timers->t3510.start(); m_timers->t3510.start();
......
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