Commit a4db2369 authored by aligungr's avatar aligungr

MM refactor

parent 59221cdd
...@@ -62,4 +62,9 @@ void NasMm::handleNasEvent(const NwUeNasToNas &msg) ...@@ -62,4 +62,9 @@ void NasMm::handleNasEvent(const NwUeNasToNas &msg)
} }
} }
void NasMm::deliverUlTransport(const nas::UlNasTransport &msg)
{
sendNasMessage(msg);
}
} // namespace nr::ue } // namespace nr::ue
...@@ -74,10 +74,8 @@ class NasMm ...@@ -74,10 +74,8 @@ class NasMm
void onSwitchCmState(ECmState oldState, ECmState newState); void onSwitchCmState(ECmState oldState, ECmState newState);
void onSwitchUState(E5UState oldState, E5UState newState); void onSwitchUState(E5UState oldState, E5UState newState);
public: /* Transport */
void sendNasMessage(const nas::PlainMmMessage &msg);
private: /* Transport */ private: /* Transport */
void sendNasMessage(const nas::PlainMmMessage &msg);
void receiveNasMessage(const nas::NasMessage &msg); void receiveNasMessage(const nas::NasMessage &msg);
void receiveMmMessage(const nas::PlainMmMessage &msg); void receiveMmMessage(const nas::PlainMmMessage &msg);
void receiveDlNasTransport(const nas::DlNasTransport &msg); void receiveDlNasTransport(const nas::DlNasTransport &msg);
...@@ -163,6 +161,7 @@ class NasMm ...@@ -163,6 +161,7 @@ class NasMm
public: /* Interface */ public: /* Interface */
void handleRrcEvent(const NwUeRrcToNas &msg); void handleRrcEvent(const NwUeRrcToNas &msg);
void handleNasEvent(const NwUeNasToNas &msg); void handleNasEvent(const NwUeNasToNas &msg);
void deliverUlTransport(const nas::UlNasTransport &msg);
}; };
} // namespace nr::ue } // namespace nr::ue
\ No newline at end of file
...@@ -31,7 +31,7 @@ void NasSm::sendSmMessage(int psi, const nas::SmMessage &msg) ...@@ -31,7 +31,7 @@ void NasSm::sendSmMessage(int psi, const nas::SmMessage &msg)
if (session.apn.has_value()) if (session.apn.has_value())
m.dnn = nas::utils::DnnFromApn(*session.apn); m.dnn = nas::utils::DnnFromApn(*session.apn);
m_mm->sendNasMessage(m); m_mm->deliverUlTransport(m);
} }
void NasSm::receiveSmMessage(const nas::SmMessage &msg) void NasSm::receiveSmMessage(const nas::SmMessage &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