Commit 97e344f4 authored by aligungr's avatar aligungr

SRA dev.

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