Commit 2564a832 authored by aligungr's avatar aligungr

Performance improvements

parent 411a6d53
......@@ -94,6 +94,11 @@ void NasLayer::performCycle()
m_mm->performMmCycle();
}
void NasLayer::handleRrcConnectionSetup()
{
m_mm->handleRrcConnectionSetup();
}
void NasLayer::handleRrcConnectionRelease()
{
m_mm->handleRrcConnectionRelease();
......
......@@ -35,6 +35,7 @@ class NasLayer
public:
void performCycle();
void handleSapMessage(std::unique_ptr<NtsMessage> msg);
void handleRrcConnectionSetup();
void handleRrcConnectionRelease();
void handlePaging(const std::vector<GutiMobileIdentity> &tmsiIds);
void handleRrcFallbackIndication();
......
......@@ -20,10 +20,6 @@ void NasMm::handleRrcEvent(const NmUeRrcToNas &msg)
switch (msg.present)
{
case NmUeRrcToNas::RRC_CONNECTION_SETUP: {
handleRrcConnectionSetup();
break;
}
case NmUeRrcToNas::NAS_DELIVERY: {
OctetView buffer{msg.nasPdu};
auto nasMessage = nas::DecodeNasMessage(buffer);
......
......@@ -61,7 +61,6 @@ struct NmUeRrcToNas : NtsMessage
enum PR
{
NAS_DELIVERY,
RRC_CONNECTION_SETUP,
RRC_ESTABLISHMENT_FAILURE,
RADIO_LINK_FAILURE,
ACTIVE_CELL_CHANGED,
......
......@@ -131,7 +131,7 @@ void UeRrcLayer::receiveRrcSetup(int cellId, const ASN_RRC_RRCSetup &msg)
m_logger->info("RRC connection established");
switchState(ERrcState::RRC_CONNECTED);
m_base->l3Task->push(std::make_unique<NmUeRrcToNas>(NmUeRrcToNas::RRC_CONNECTION_SETUP));
m_base->l3Task->nas().handleRrcConnectionSetup();
}
void UeRrcLayer::receiveRrcReject(int cellId, const ASN_RRC_RRCReject &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