enb,ue_nr: unpack LBSR and pass content to sched

master
Andre Puschmann 3 years ago
parent e5556fcc32
commit f96b315f81

@ -115,11 +115,12 @@ int ue_nr::process_pdu(srsran::unique_byte_buffer_t pdu)
} }
} break; } break;
case srsran::mac_sch_subpdu_nr::nr_lcid_sch_t::LONG_BSR: case srsran::mac_sch_subpdu_nr::nr_lcid_sch_t::LONG_BSR:
logger.info("LONG_BSR CE not implemented."); case srsran::mac_sch_subpdu_nr::nr_lcid_sch_t::LONG_TRUNC_BSR: {
break; srsran::mac_sch_subpdu_nr::lbsr_t lbsr = subpdu.get_lbsr();
case srsran::mac_sch_subpdu_nr::nr_lcid_sch_t::LONG_TRUNC_BSR: for (auto& lb : lbsr.list) {
logger.info("LONG_TRUNC_BSR CE not implemented."); sched->ul_bsr(rnti, lb.lcg_id, buff_size_field_to_bytes(lb.buffer_size, srsran::LONG_BSR));
break; }
} break;
default: default:
if (subpdu.is_sdu()) { if (subpdu.is_sdu()) {
rrc->set_activity_user(rnti); rrc->set_activity_user(rnti);

Loading…
Cancel
Save