Commit 28510561 authored by aligungr's avatar aligungr

Registration updating improvement

parent 2ab93e5b
...@@ -88,13 +88,13 @@ class NasMm ...@@ -88,13 +88,13 @@ class NasMm
private: /* Registration */ private: /* Registration */
void sendInitialRegistration(bool isEmergencyReg, bool dueToDereg); void sendInitialRegistration(bool isEmergencyReg, bool dueToDereg);
void sendUpdatingRegistration(ERegUpdateCause updateCause); void sendMobilityRegistration(ERegUpdateCause updateCause);
void receiveRegistrationAccept(const nas::RegistrationAccept &msg); void receiveRegistrationAccept(const nas::RegistrationAccept &msg);
void receiveInitialRegistrationAccept(const nas::RegistrationAccept &msg); void receiveInitialRegistrationAccept(const nas::RegistrationAccept &msg);
void receiveUpdatingRegistrationAccept(const nas::RegistrationAccept &msg); void receiveMobilityRegistrationAccept(const nas::RegistrationAccept &msg);
void receiveRegistrationReject(const nas::RegistrationReject &msg); void receiveRegistrationReject(const nas::RegistrationReject &msg);
void receiveInitialRegistrationReject(const nas::RegistrationReject &msg); void receiveInitialRegistrationReject(const nas::RegistrationReject &msg);
void receiveUpdatingRegistrationReject(const nas::RegistrationReject &msg); void receiveMobilityRegistrationReject(const nas::RegistrationReject &msg);
void handleCommonAbnormalRegFailure(nas::ERegistrationType regType); void handleCommonAbnormalRegFailure(nas::ERegistrationType regType);
private: /* Authentication */ private: /* Authentication */
......
...@@ -101,7 +101,7 @@ void NasMm::sendInitialRegistration(bool isEmergencyReg, bool dueToDereg) ...@@ -101,7 +101,7 @@ void NasMm::sendInitialRegistration(bool isEmergencyReg, bool dueToDereg)
m_timers->t3511.stop(); m_timers->t3511.stop();
} }
void NasMm::sendUpdatingRegistration(ERegUpdateCause updateCause) void NasMm::sendMobilityRegistration(ERegUpdateCause updateCause)
{ {
if (m_rmState == ERmState::RM_DEREGISTERED) if (m_rmState == ERmState::RM_DEREGISTERED)
{ {
...@@ -192,7 +192,7 @@ void NasMm::receiveRegistrationAccept(const nas::RegistrationAccept &msg) ...@@ -192,7 +192,7 @@ void NasMm::receiveRegistrationAccept(const nas::RegistrationAccept &msg)
regType == nas::ERegistrationType::EMERGENCY_REGISTRATION) regType == nas::ERegistrationType::EMERGENCY_REGISTRATION)
receiveInitialRegistrationAccept(msg); receiveInitialRegistrationAccept(msg);
else else
receiveUpdatingRegistrationAccept(msg); receiveMobilityRegistrationAccept(msg);
} }
void NasMm::receiveInitialRegistrationAccept(const nas::RegistrationAccept &msg) void NasMm::receiveInitialRegistrationAccept(const nas::RegistrationAccept &msg)
...@@ -302,7 +302,7 @@ void NasMm::receiveInitialRegistrationAccept(const nas::RegistrationAccept &msg) ...@@ -302,7 +302,7 @@ void NasMm::receiveInitialRegistrationAccept(const nas::RegistrationAccept &msg)
m_logger->info("%s is successful", nas::utils::EnumToString(regType)); m_logger->info("%s is successful", nas::utils::EnumToString(regType));
} }
void NasMm::receiveUpdatingRegistrationAccept(const nas::RegistrationAccept &msg) void NasMm::receiveMobilityRegistrationAccept(const nas::RegistrationAccept &msg)
{ {
// "The UE, upon receiving a REGISTRATION ACCEPT message, shall delete its old TAI list and store the received TAI // "The UE, upon receiving a REGISTRATION ACCEPT message, shall delete its old TAI list and store the received TAI
// list. If there is no TAI list received, the UE shall consider the old TAI list as valid." // list. If there is no TAI list received, the UE shall consider the old TAI list as valid."
...@@ -421,7 +421,7 @@ void NasMm::receiveRegistrationReject(const nas::RegistrationReject &msg) ...@@ -421,7 +421,7 @@ void NasMm::receiveRegistrationReject(const nas::RegistrationReject &msg)
regType == nas::ERegistrationType::EMERGENCY_REGISTRATION) regType == nas::ERegistrationType::EMERGENCY_REGISTRATION)
receiveInitialRegistrationReject(msg); receiveInitialRegistrationReject(msg);
else else
receiveUpdatingRegistrationReject(msg); receiveMobilityRegistrationReject(msg);
} }
void NasMm::receiveInitialRegistrationReject(const nas::RegistrationReject &msg) void NasMm::receiveInitialRegistrationReject(const nas::RegistrationReject &msg)
...@@ -575,7 +575,7 @@ void NasMm::receiveInitialRegistrationReject(const nas::RegistrationReject &msg) ...@@ -575,7 +575,7 @@ void NasMm::receiveInitialRegistrationReject(const nas::RegistrationReject &msg)
} }
} }
void NasMm::receiveUpdatingRegistrationReject(const nas::RegistrationReject &msg) void NasMm::receiveMobilityRegistrationReject(const nas::RegistrationReject &msg)
{ {
// TODO: // TODO:
......
...@@ -59,7 +59,7 @@ void NasMm::onTimerExpire(nas::NasTimer &timer) ...@@ -59,7 +59,7 @@ void NasMm::onTimerExpire(nas::NasTimer &timer)
if (m_mmState == EMmState::MM_REGISTERED && m_cmState == ECmState::CM_CONNECTED) if (m_mmState == EMmState::MM_REGISTERED && m_cmState == ECmState::CM_CONNECTED)
{ {
logExpired(); logExpired();
sendUpdatingRegistration(ERegUpdateCause::PERIODIC_REGISTRATION); sendMobilityRegistration(ERegUpdateCause::PERIODIC_REGISTRATION);
} }
break; break;
} }
......
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