fix long bsr handling

master
Francisco Paisana 5 years ago
parent af58597647
commit 7ab4b5f723

@ -91,7 +91,6 @@ public:
void config_lcid(uint32_t lcg_id, const sched_interface::ue_bearer_cfg_t& bearer_cfg); void config_lcid(uint32_t lcg_id, const sched_interface::ue_bearer_cfg_t& bearer_cfg);
void ul_bsr(uint8_t lcg_id, uint32_t bsr); void ul_bsr(uint8_t lcg_id, uint32_t bsr);
void ul_buffer_add(uint8_t lcid, uint32_t bytes); void ul_buffer_add(uint8_t lcid, uint32_t bytes);
// void ul_recv(uint8_t lcg_id, uint32_t len);
void dl_buffer_state(uint8_t lcid, uint32_t tx_queue, uint32_t retx_queue); void dl_buffer_state(uint8_t lcid, uint32_t tx_queue, uint32_t retx_queue);
int alloc_rlc_pdu(sched_interface::dl_sched_pdu_t* lcid, int rem_bytes); int alloc_rlc_pdu(sched_interface::dl_sched_pdu_t* lcid, int rem_bytes);

@ -372,7 +372,9 @@ bool ue::process_ce(srslte::sch_subh* subh)
break; break;
case srslte::ul_sch_lcid::LONG_BSR: case srslte::ul_sch_lcid::LONG_BSR:
subh->get_bsr(buff_size); subh->get_bsr(buff_size);
for (idx = 0; idx < sched_interface::MAX_LC_GROUP; ++idx) {
sched->ul_bsr(rnti, idx, buff_size[idx]); sched->ul_bsr(rnti, idx, buff_size[idx]);
}
is_bsr = true; is_bsr = true;
Info("CE: Received Long BSR rnti=0x%x, value=%d,%d,%d,%d\n", Info("CE: Received Long BSR rnti=0x%x, value=%d,%d,%d,%d\n",
rnti, rnti,

Loading…
Cancel
Save