Commit caa925d5 authored by aligungr's avatar aligungr

L3 RRC/NAS developments

parent 8975bd85
...@@ -470,6 +470,8 @@ void NasMm::onSimRemoval() ...@@ -470,6 +470,8 @@ void NasMm::onSimRemoval()
m_storage->forbiddenTaiListRoaming->clear(); m_storage->forbiddenTaiListRoaming->clear();
m_storage->forbiddenTaiListRps->clear(); m_storage->forbiddenTaiListRps->clear();
switchMmState(EMmSubState::MM_DEREGISTERED_PS);
} }
} // namespace nr::ue } // namespace nr::ue
...@@ -27,6 +27,10 @@ bool NasMm::startECallInactivityIfNeeded() ...@@ -27,6 +27,10 @@ bool NasMm::startECallInactivityIfNeeded()
if (!m_usim->m_isECallOnly) if (!m_usim->m_isECallOnly)
return false; return false;
// "5.2.2.3.7 The UE camps on a suitable cell or an acceptable cell in a PLMN selected as specified in 3GPP ..."
if (!m_base->shCtx.hasActiveCell())
return false;
// The procedure shall be started when // The procedure shall be started when
// a) the UE is in any 5GMM-REGISTERED substate except substates 5GMM-REGISTERED.PLMN-SEARCH or // a) the UE is in any 5GMM-REGISTERED substate except substates 5GMM-REGISTERED.PLMN-SEARCH or
// 5GMM-REGISTERED.NO-CELL-AVAILABLE;" // 5GMM-REGISTERED.NO-CELL-AVAILABLE;"
......
...@@ -275,6 +275,12 @@ void NasMm::handlePaging(const std::vector<GutiMobileIdentity> &tmsiIds) ...@@ -275,6 +275,12 @@ void NasMm::handlePaging(const std::vector<GutiMobileIdentity> &tmsiIds)
if (!tmsiMatches) if (!tmsiMatches)
return; return;
if (m_mmSubState == EMmSubState::MM_DEREGISTERED_ECALL_INACTIVE)
{
m_logger->debug("Ignoring received Paging due to eCall inactive");
return;
}
m_timers->t3346.stop(); m_timers->t3346.stop();
if (m_mmState == EMmState::MM_REGISTERED_INITIATED || m_mmState == EMmState::MM_DEREGISTERED_INITIATED || if (m_mmState == EMmState::MM_REGISTERED_INITIATED || m_mmState == EMmState::MM_DEREGISTERED_INITIATED ||
......
...@@ -171,6 +171,7 @@ struct UeSharedContext ...@@ -171,6 +171,7 @@ struct UeSharedContext
Plmn getCurrentPlmn(); Plmn getCurrentPlmn();
Tai getCurrentTai(); Tai getCurrentTai();
bool hasActiveCell();
}; };
struct TaskBase struct TaskBase
......
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