Commit 83db3446 authored by aligungr's avatar aligungr

Paging procedure implementation

parent c1e093e8
...@@ -230,7 +230,6 @@ void NasMm::localReleaseConnection() ...@@ -230,7 +230,6 @@ void NasMm::localReleaseConnection()
void NasMm::handlePaging(const std::vector<GutiMobileIdentity> &tmsiIds) void NasMm::handlePaging(const std::vector<GutiMobileIdentity> &tmsiIds)
{ {
// Check received TMSI identities
if (m_usim->m_storedGuti.type == nas::EIdentityType::NO_IDENTITY) if (m_usim->m_storedGuti.type == nas::EIdentityType::NO_IDENTITY)
return; return;
bool tmsiMatches = false; bool tmsiMatches = false;
...@@ -248,9 +247,21 @@ void NasMm::handlePaging(const std::vector<GutiMobileIdentity> &tmsiIds) ...@@ -248,9 +247,21 @@ void NasMm::handlePaging(const std::vector<GutiMobileIdentity> &tmsiIds)
if (!tmsiMatches) if (!tmsiMatches)
return; return;
// Handle Paging message
m_logger->debug("Paging received"); m_logger->debug("Paging received");
// TODO
m_timers->t3346.stop();
if (m_mmState == EMmState::MM_REGISTERED_INITIATED || m_mmState == EMmState::MM_DEREGISTERED_INITIATED ||
m_mmState == EMmState::MM_SERVICE_REQUEST_INITIATED)
{
m_logger->debug("Paging ignored");
return;
}
if (m_cmState == ECmState::CM_CONNECTED)
sendMobilityRegistration(ERegUpdateCause::PAGING_OR_NOTIFICATION);
else
sendServiceRequest(EServiceReqCause::IDLE_PAGING);
} }
} // namespace nr::ue } // namespace nr::ue
\ No newline at end of file
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