Commit 7dfe3b0c authored by aligungr's avatar aligungr

UE de-registration improvement

parent bafbb66a
......@@ -116,7 +116,10 @@ void UeCmdHandler::HandleCmdImpl(TaskBase &base, NwUeCliCommand &msg)
break;
}
case app::UeCliCommand::DE_REGISTER: {
msg.sendError("not implemented yet");
base.nasTask->mm->sendDeregistration(msg.cmd->isSwitchOff ? nas::ESwitchOff::SWITCH_OFF
: nas::ESwitchOff::NORMAL_DE_REGISTRATION,
msg.cmd->dueToDisable5g);
msg.sendResult("De-registration procedure triggered");
break;
}
}
......
......@@ -74,6 +74,9 @@ class NasMm
void sendNasMessage(const nas::PlainMmMessage &msg);
void receiveNasMessage(const nas::NasMessage &msg);
/* De-registration */
void sendDeregistration(nas::ESwitchOff switchOff, bool dueToDisable5g);
private:
/* Base */
void switchMmState(EMmState state, EMmSubState subState);
......@@ -121,7 +124,6 @@ class NasMm
void receiveConfigurationUpdate(const nas::ConfigurationUpdateCommand &msg);
/* De-registration */
void sendDeregistration(nas::ESwitchOff switchOff, bool dueToDisable5g);
void receiveDeregistrationAccept(const nas::DeRegistrationAcceptUeOriginating &msg);
void receiveDeregistrationRequest(const nas::DeRegistrationRequestUeTerminated &msg);
......
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