Commit 4fa23821 authored by aligungr's avatar aligungr

UE RRC paging handling

parent 2a4de4ba
...@@ -185,7 +185,18 @@ void UeRrcTask::receiveRrcMessage(ASN_RRC_DL_DCCH_Message *msg) ...@@ -185,7 +185,18 @@ void UeRrcTask::receiveRrcMessage(ASN_RRC_DL_DCCH_Message *msg)
void UeRrcTask::receiveRrcMessage(ASN_RRC_PCCH_Message *msg) void UeRrcTask::receiveRrcMessage(ASN_RRC_PCCH_Message *msg)
{ {
// TODO if (msg->message.present != ASN_RRC_PCCH_MessageType_PR_c1)
return;
auto &c1 = msg->message.choice.c1;
switch (c1->present)
{
case ASN_RRC_PCCH_MessageType__c1_PR_paging:
receivePaging(*c1->choice.paging);
break;
default:
break;
}
} }
} // namespace nr::ue } // namespace nr::ue
...@@ -131,4 +131,10 @@ void UeRrcTask::receiveRrcRelease(const ASN_RRC_RRCRelease &msg) ...@@ -131,4 +131,10 @@ void UeRrcTask::receiveRrcRelease(const ASN_RRC_RRCRelease &msg)
m_base->nasTask->push(new NwUeRrcToNas(NwUeRrcToNas::RRC_CONNECTION_RELEASE)); m_base->nasTask->push(new NwUeRrcToNas(NwUeRrcToNas::RRC_CONNECTION_RELEASE));
} }
void UeRrcTask::receivePaging(const ASN_RRC_Paging &msg)
{
// TODO
m_logger->err("Paging received");
}
} // namespace nr::ue } // namespace nr::ue
\ No newline at end of file
...@@ -35,6 +35,7 @@ extern "C" ...@@ -35,6 +35,7 @@ extern "C"
struct ASN_RRC_RRCSetup; struct ASN_RRC_RRCSetup;
struct ASN_RRC_RRCReject; struct ASN_RRC_RRCReject;
struct ASN_RRC_RRCRelease; struct ASN_RRC_RRCRelease;
struct ASN_RRC_Paging;
} }
namespace nr::ue namespace nr::ue
...@@ -73,6 +74,7 @@ class UeRrcTask : public NtsTask ...@@ -73,6 +74,7 @@ class UeRrcTask : public NtsTask
void receiveRrcReject(const ASN_RRC_RRCReject &msg); void receiveRrcReject(const ASN_RRC_RRCReject &msg);
void receiveRrcRelease(const ASN_RRC_RRCRelease &msg); void receiveRrcRelease(const ASN_RRC_RRCRelease &msg);
void receiveDownlinkInformationTransfer(const ASN_RRC_DLInformationTransfer &msg); void receiveDownlinkInformationTransfer(const ASN_RRC_DLInformationTransfer &msg);
void receivePaging(const ASN_RRC_Paging &msg);
void handleRadioLinkFailure(); void handleRadioLinkFailure();
......
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