mac_nr: don't push MAC CE LCIDs to RLC when unpacking DL MAC PDU

this should fix log warnings then demux was trying to feed MAC CEs
to RLC:

10:50:54.845116 [MAC ] [I] [ 1153] Handling subPDU 1/2: rnti=0x0 lcid=61, sdu_len=1
10:50:54.845117 [RLC ] [E] Radio bearer id must be in [0:11] - 61
10:50:54.845118 [RLC ] [W] LCID 61 doesn't exist. Dropping PDU.
10:50:54.845119 [MAC ] [I] [ 1153] Handling subPDU 2/2: rnti=0x0 lcid=63, sdu_len=33
10:50:54.845119 [RLC ] [E] Radio bearer id must be in [0:11] - 63
master
Andre Puschmann 4 years ago
parent 6dd8c21073
commit 7188603f2e

@ -360,7 +360,23 @@ void mac_nr::handle_pdu(srsran::unique_byte_buffer_t pdu)
subpdu.get_c_rnti(),
subpdu.get_lcid(),
subpdu.get_sdu_length());
rlc->write_pdu(subpdu.get_lcid(), subpdu.get_sdu(), subpdu.get_sdu_length());
// Handle Timing Advance CE
switch (subpdu.get_lcid()) {
case srsran::mac_sch_subpdu_nr::nr_lcid_sch_t::DRX_CMD:
logger.info("DRX CE not implemented.");
break;
case srsran::mac_sch_subpdu_nr::nr_lcid_sch_t::TA_CMD:
logger.info("Timing Advance CE not implemented.");
break;
case srsran::mac_sch_subpdu_nr::nr_lcid_sch_t::CON_RES_ID:
logger.info("Contention Resolution CE not implemented.");
break;
default:
if (subpdu.is_sdu()) {
rlc->write_pdu(subpdu.get_lcid(), subpdu.get_sdu(), subpdu.get_sdu_length());
}
}
}
}

Loading…
Cancel
Save