From 824424a85863d63642dd635dc0219e3adac85266 Mon Sep 17 00:00:00 2001 From: Andre Puschmann Date: Thu, 5 Aug 2021 17:00:23 +0200 Subject: [PATCH] slot_worker: fix length calculation for PUSCH PDUs --- srsenb/src/phy/nr/slot_worker.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/srsenb/src/phy/nr/slot_worker.cc b/srsenb/src/phy/nr/slot_worker.cc index 5b47b306c..2600940c0 100644 --- a/srsenb/src/phy/nr/slot_worker.cc +++ b/srsenb/src/phy/nr/slot_worker.cc @@ -212,7 +212,7 @@ bool slot_worker::work_ul() logger.error("Couldn't allocate PDU in %s().", __FUNCTION__); return false; } - pusch_info.pdu->N_bytes = pusch.sch.grant.tb[0].tbs; + pusch_info.pdu->N_bytes = pusch.sch.grant.tb[0].tbs / 8; pusch_info.pusch_data.tb[0].payload = pusch_info.pdu->data(); // Decode PUSCH