Commit c8b02d5a authored by aligungr's avatar aligungr

RRC developments

parent 3ad54047
//
// This file is a part of UERANSIM open source project.
// Copyright (c) 2021 ALİ GÜNGÖR.
//
// The software and all associated files are licensed under GPL-3.0
// and subject to the terms and conditions defined in LICENSE file.
//
#include "storage.hpp"
namespace nas
{
}
\ No newline at end of file
//
// This file is a part of UERANSIM open source project.
// Copyright (c) 2021 ALİ GÜNGÖR.
//
// The software and all associated files are licensed under GPL-3.0
// and subject to the terms and conditions defined in LICENSE file.
//
namespace nas
{
}
\ No newline at end of file
......@@ -65,9 +65,13 @@ void NasMm::sendDeregistration(EDeregCause deregCause)
// TODO: Bu ikisinin burada olması gerektiğinden emin değilim
if (deregCause == EDeregCause::SWITCH_OFF)
{
onSwitchOff();
m_base->appTask->push(new NwUeNasToApp(NwUeNasToApp::PERFORM_SWITCH_OFF));
}
else if (deregCause == EDeregCause::USIM_REMOVAL)
{
onSimRemoval();
m_logger->info("SIM card has been invalidated");
m_usim->invalidate();
}
......
......@@ -82,6 +82,8 @@ class NasMm
void onSwitchRmState(ERmState oldState, ERmState newState);
void onSwitchCmState(ECmState oldState, ECmState newState);
void onSwitchUState(E5UState oldState, E5UState newState);
void onSimRemoval();
void onSwitchOff();
private: /* Messaging */
void sendNasMessage(const nas::PlainMmMessage &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