Commit 1b5c01d8 authored by aligungr's avatar aligungr

RLS improvements

parent d1b6856c
......@@ -15,7 +15,7 @@ static constexpr const size_t MAX_PDU_COUNT = 128;
namespace nr::ue
{
RlsControlTask::RlsControlTask(TaskBase *base, uint64_t sti) : m_udpTask{}, m_pduMap{}, m_sti{sti}
RlsControlTask::RlsControlTask(TaskBase *base, uint64_t sti) : m_udpTask{}, m_pduMap{}, m_sti{sti}, m_pendingAck{}
{
m_logger = base->logBase->makeUniqueLogger(base->config->getLoggerPrefix() + "rls-ctl");
}
......@@ -83,9 +83,7 @@ void RlsControlTask::handleRlsMessage(int cellId, rls::RlsMessage &msg)
{
auto &m = (rls::RlsPduTransmission &)msg;
if (m.pduId != 0)
{
// TODO: Send ACK
}
m_pendingAck.push_back(m.pduId);
if (m.pduType == rls::EPduType::DATA)
{
......
......@@ -10,6 +10,9 @@
#include "udp_task.hpp"
#include <unordered_map>
#include <vector>
#include <lib/rrc/rrc.hpp>
#include <ue/nts.hpp>
#include <ue/types.hpp>
......@@ -33,6 +36,7 @@ class RlsControlTask : public NtsTask
RlsUdpTask *m_udpTask;
std::unordered_map<uint32_t, PduInfo> m_pduMap;
uint64_t m_sti;
std::vector<uint32_t> m_pendingAck;
public:
explicit RlsControlTask(TaskBase *base, uint64_t sti);
......
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