Commit 97e344f4 authored by aligungr's avatar aligungr

SRA dev.

parent 474f5156
......@@ -28,9 +28,11 @@ struct NwGnbSraToRrc : NtsMessage
enum PR
{
RRC_PDU_DELIVERY,
SIGNAL_LOST
} present;
// RRC_PDU_DELIVERY
// SIGNAL_LOST
int ueId{};
// RRC_PDU_DELIVERY
......
......@@ -37,17 +37,6 @@ void GnbRrcTask::onLoop()
switch (msg->msgType)
{
//case NtsMessageType::GNB_MR_TO_RRC: {
// auto *w = dynamic_cast<NwGnbMrToRrc *>(msg);
// switch (w->present)
// {
// case NwGnbMrToRrc::RADIO_LINK_FAILURE: {
// handleRadioLinkFailure(w->ueId);
// break;
// }
// }
// break;
//}
case NtsMessageType::GNB_SRA_TO_RRC: {
auto *w = dynamic_cast<NwGnbSraToRrc *>(msg);
switch (w->present)
......@@ -56,6 +45,10 @@ void GnbRrcTask::onLoop()
handleUplinkRrc(w->ueId, w->channel, w->pdu);
break;
}
case NwGnbSraToRrc::SIGNAL_LOST: {
handleRadioLinkFailure(w->ueId);
break;
}
}
break;
}
......
......@@ -7,6 +7,7 @@
//
#include "task.hpp"
#include <gnb/rrc/task.hpp>
#include <set>
#include <utils/common.hpp>
......@@ -62,6 +63,10 @@ void GnbSraTask::onPeriodicLostControl()
{
m_ueCtx.erase(ueId);
m_logger->debug("Signal lost detected for UE[%d]", ueId);
auto *w = new NwGnbSraToRrc(NwGnbSraToRrc::SIGNAL_LOST);
w->ueId = ueId;
m_base->rrcTask->push(w);
}
}
......
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