Commit fd2e832f authored by aligungr's avatar aligungr

UAC implementation

parent b237a9e1
...@@ -16,7 +16,12 @@ namespace nr::ue ...@@ -16,7 +16,12 @@ namespace nr::ue
void UeRrcTask::performUac(std::shared_ptr<LightSync<UacInput, UacOutput>> &uacCtl) void UeRrcTask::performUac(std::shared_ptr<LightSync<UacInput, UacOutput>> &uacCtl)
{ {
// TODO auto &input = uacCtl->input();
auto output = std::make_unique<UacOutput>();
output->allowed = true; // TODO
uacCtl->notifyProcessed(std::move(output));
} }
} // namespace nr::ue } // namespace nr::ue
...@@ -57,7 +57,8 @@ void UeRrcTask::handleNasSapMessage(NmUeNasToRrc &msg) ...@@ -57,7 +57,8 @@ void UeRrcTask::handleNasSapMessage(NmUeNasToRrc &msg)
break; break;
} }
case NmUeNasToRrc::PERFORM_UAC: { case NmUeNasToRrc::PERFORM_UAC: {
performUac(msg.uacCtl); if (!msg.uacCtl->isExpiredForProducer())
performUac(msg.uacCtl);
break; break;
} }
} }
......
...@@ -582,7 +582,7 @@ struct UacInput ...@@ -582,7 +582,7 @@ struct UacInput
struct UacOutput struct UacOutput
{ {
bool allowed{};
}; };
Json ToJson(const ECmState &state); Json ToJson(const ECmState &state);
......
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