Commit bf351954 authored by aligungr's avatar aligungr

UE SRA dev.

parent ee60a817
...@@ -171,11 +171,11 @@ void GnbMrTask::receiveUplinkPayload(int ue, rls::EPayloadType type, OctetString ...@@ -171,11 +171,11 @@ void GnbMrTask::receiveUplinkPayload(int ue, rls::EPayloadType type, OctetString
{ {
if (type == rls::EPayloadType::RRC) if (type == rls::EPayloadType::RRC)
{ {
auto *nw = new NwGnbMrToRrc(NwGnbMrToRrc::RRC_PDU_DELIVERY); //auto *nw = new NwGnbMrToRrc(NwGnbMrToRrc::RRC_PDU_DELIVERY);
nw->ueId = ue; //nw->ueId = ue;
nw->channel = static_cast<rrc::RrcChannel>(payload.getI(0)); //nw->channel = static_cast<rrc::RrcChannel>(payload.getI(0));
nw->pdu = payload.subCopy(1); //nw->pdu = payload.subCopy(1);
m_base->rrcTask->push(nw); //m_base->rrcTask->push(nw);
} }
else if (type == rls::EPayloadType::DATA) else if (type == rls::EPayloadType::DATA)
{ {
......
...@@ -28,18 +28,12 @@ struct NwGnbMrToRrc : NtsMessage ...@@ -28,18 +28,12 @@ struct NwGnbMrToRrc : NtsMessage
{ {
enum PR enum PR
{ {
RRC_PDU_DELIVERY,
RADIO_LINK_FAILURE, RADIO_LINK_FAILURE,
} present; } present;
// RRC_PDU_DELIVERY
// RADIO_LINK_FAILURE // RADIO_LINK_FAILURE
int ueId{}; int ueId{};
// RRC_PDU_DELIVERY
rrc::RrcChannel channel{};
OctetString pdu{};
explicit NwGnbMrToRrc(PR present) : NtsMessage(NtsMessageType::GNB_MR_TO_RRC), present(present) explicit NwGnbMrToRrc(PR present) : NtsMessage(NtsMessageType::GNB_MR_TO_RRC), present(present)
{ {
} }
......
...@@ -42,10 +42,6 @@ void GnbRrcTask::onLoop() ...@@ -42,10 +42,6 @@ void GnbRrcTask::onLoop()
auto *w = dynamic_cast<NwGnbMrToRrc *>(msg); auto *w = dynamic_cast<NwGnbMrToRrc *>(msg);
switch (w->present) switch (w->present)
{ {
case NwGnbMrToRrc::RRC_PDU_DELIVERY: {
handleUplinkRrc(w->ueId, w->channel, w->pdu);
break;
}
case NwGnbMrToRrc::RADIO_LINK_FAILURE: { case NwGnbMrToRrc::RADIO_LINK_FAILURE: {
handleRadioLinkFailure(w->ueId); handleRadioLinkFailure(w->ueId);
break; break;
...@@ -53,6 +49,17 @@ void GnbRrcTask::onLoop() ...@@ -53,6 +49,17 @@ void GnbRrcTask::onLoop()
} }
break; break;
} }
case NtsMessageType::GNB_SRA_TO_RRC: {
auto *w = dynamic_cast<NwGnbSraToRrc *>(msg);
switch (w->present)
{
case NwGnbSraToRrc::RRC_PDU_DELIVERY: {
handleUplinkRrc(w->ueId, w->channel, w->pdu);
break;
}
}
break;
}
case NtsMessageType::GNB_NGAP_TO_RRC: { case NtsMessageType::GNB_NGAP_TO_RRC: {
auto *w = dynamic_cast<NwGnbNgapToRrc *>(msg); auto *w = dynamic_cast<NwGnbNgapToRrc *>(msg);
switch (w->present) switch (w->present)
......
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