|
|
@ -79,13 +79,8 @@ bool mac::init(const mac_args_t& args_,
|
|
|
|
|
|
|
|
|
|
|
|
reset();
|
|
|
|
reset();
|
|
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
|
|
|
// Pre-alloc UE objects for first attaching users
|
|
|
|
// Pre-alloc UE objects for first attaching users
|
|
|
|
prealloc_ue(10);
|
|
|
|
prealloc_ue(10);
|
|
|
|
}catch(const std::bad_alloc& e){
|
|
|
|
|
|
|
|
perror("Error allocating data during the ue prealloc");
|
|
|
|
|
|
|
|
return false;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
detected_rachs.resize(cells.size());
|
|
|
|
detected_rachs.resize(cells.size());
|
|
|
|
|
|
|
|
|
|
|
@ -904,7 +899,6 @@ int mac::get_ul_sched(uint32_t tti_tx_ul, ul_sched_list_t& ul_sched_res_list)
|
|
|
|
phy_ul_sched_res->nof_grants = 0;
|
|
|
|
phy_ul_sched_res->nof_grants = 0;
|
|
|
|
int n = 0;
|
|
|
|
int n = 0;
|
|
|
|
for (uint32_t i = 0; i < sched_result.nof_dci_elems; i++) {
|
|
|
|
for (uint32_t i = 0; i < sched_result.nof_dci_elems; i++) {
|
|
|
|
|
|
|
|
|
|
|
|
if (sched_result.pusch[i].tbs > 0) {
|
|
|
|
if (sched_result.pusch[i].tbs > 0) {
|
|
|
|
// Get UE
|
|
|
|
// Get UE
|
|
|
|
uint16_t rnti = sched_result.pusch[i].dci.rnti;
|
|
|
|
uint16_t rnti = sched_result.pusch[i].dci.rnti;
|
|
|
|