fix mac tb building in scheduler

master
Francisco Paisana 4 years ago
parent cb7f620254
commit af58597647

@ -94,7 +94,7 @@ public:
// void ul_recv(uint8_t lcg_id, uint32_t len); // 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);
bool 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);
bool is_bearer_active(uint32_t lcid) const; bool is_bearer_active(uint32_t lcid) const;
bool is_bearer_ul(uint32_t lcid) const; bool is_bearer_ul(uint32_t lcid) const;

@ -1415,7 +1415,7 @@ void lch_manager::dl_buffer_state(uint8_t lcid, uint32_t tx_queue, uint32_t retx
} }
/* Allocates first available RLC PDU */ /* Allocates first available RLC PDU */
bool lch_manager::alloc_rlc_pdu(sched_interface::dl_sched_pdu_t* rlc_pdu, int rem_bytes) int lch_manager::alloc_rlc_pdu(sched_interface::dl_sched_pdu_t* rlc_pdu, int rem_bytes)
{ {
// TODO: Implement lcid priority (now lowest index is lowest priority) // TODO: Implement lcid priority (now lowest index is lowest priority)
int alloc_bytes = 0; int alloc_bytes = 0;
@ -1431,7 +1431,7 @@ bool lch_manager::alloc_rlc_pdu(sched_interface::dl_sched_pdu_t* rlc_pdu, int re
rlc_pdu->lcid = i - 1; rlc_pdu->lcid = i - 1;
Debug("SCHED: Allocated lcid=%d, nbytes=%d, tbs_bytes=%d\n", rlc_pdu->lcid, rlc_pdu->nbytes, rem_bytes); Debug("SCHED: Allocated lcid=%d, nbytes=%d, tbs_bytes=%d\n", rlc_pdu->lcid, rlc_pdu->nbytes, rem_bytes);
} }
return alloc_bytes > 0; return alloc_bytes;
} }
int lch_manager::alloc_retx_bytes(uint8_t lcid, uint32_t rem_bytes) int lch_manager::alloc_retx_bytes(uint8_t lcid, uint32_t rem_bytes)

Loading…
Cancel
Save