Commit c04b65cc authored by aligungr's avatar aligungr

Registration reject improvement

parent 05e05844
...@@ -283,4 +283,9 @@ void NasMm::onTimerExpire(nas::NasTimer &timer) ...@@ -283,4 +283,9 @@ void NasMm::onTimerExpire(nas::NasTimer &timer)
} }
} }
void NasMm::setN1Capability(bool enabled)
{
// TODO
}
} // namespace nr::ue } // namespace nr::ue
...@@ -85,6 +85,7 @@ class NasMm ...@@ -85,6 +85,7 @@ class NasMm
void onSwitchRmState(ERmState oldState, ERmState newState); void onSwitchRmState(ERmState oldState, ERmState newState);
void onSwitchCmState(ECmState oldState, ECmState newState); void onSwitchCmState(ECmState oldState, ECmState newState);
void onSwitchUState(E5UState oldState, E5UState newState); void onSwitchUState(E5UState oldState, E5UState newState);
void setN1Capability(bool enabled);
/* Transport */ /* Transport */
void sendMmStatus(nas::EMmCause cause); void sendMmStatus(nas::EMmCause cause);
......
...@@ -181,7 +181,7 @@ void NasMm::receiveRegistrationReject(const nas::RegistrationReject &msg) ...@@ -181,7 +181,7 @@ void NasMm::receiveRegistrationReject(const nas::RegistrationReject &msg)
if (cause == nas::EMmCause::N1_MODE_NOT_ALLOWED) if (cause == nas::EMmCause::N1_MODE_NOT_ALLOWED)
{ {
switchMmState(EMmState::MM_NULL, EMmSubState::MM_NULL_NA); switchMmState(EMmState::MM_NULL, EMmSubState::MM_NULL_NA);
// TODO: disable n1 mode capability (See 4.9) setN1Capability(false);
} }
if (cause == nas::EMmCause::PLMN_NOT_ALLOWED || cause == nas::EMmCause::SERVING_NETWORK_NOT_AUTHORIZED) if (cause == nas::EMmCause::PLMN_NOT_ALLOWED || cause == nas::EMmCause::SERVING_NETWORK_NOT_AUTHORIZED)
......
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