mac_nr,ue: don't decode RAR PDU that couldn't be decoded

ignore RAR PDU when PDSCH wasn't OK
This commit is contained in:
Andre Puschmann 2021-07-13 00:32:55 +02:00
parent c7d29f4af1
commit 9d6d437ba5
1 changed files with 3 additions and 1 deletions

View File

@ -297,7 +297,9 @@ void mac_nr::tb_decoded(const uint32_t cc_idx, const mac_nr_grant_dl_t& grant, t
write_pcap(cc_idx, grant, result);
if (proc_ra.has_rar_rnti() && grant.rnti == proc_ra.get_rar_rnti()) {
if (result.ack && result.payload != nullptr) {
proc_ra.handle_rar_pdu(result);
}
} else {
// Assert HARQ entity
if (dl_harq.at(cc_idx) == nullptr) {