|
|
|
@ -602,7 +602,7 @@ void mac::build_mch_sched(uint32_t tbs)
|
|
|
|
|
total_bytes_to_tx += mch.mtch_sched[i].lcid_buffer_size;
|
|
|
|
|
mch.mtch_sched[i].stop = 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
int last_mtch_stop = 0;
|
|
|
|
|
|
|
|
|
|
if(total_bytes_to_tx >= total_space_avail_bytes){
|
|
|
|
@ -620,6 +620,9 @@ void mac::build_mch_sched(uint32_t tbs)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
printf("buffer size is %d\n",total_bytes_to_tx);
|
|
|
|
|
printf("shed size is %d\n",total_space_avail_bytes);
|
|
|
|
|
printf("stop value is %d\n",mch.mtch_sched[0].stop);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
int mac::get_mch_sched(bool is_mcch, dl_sched_t *dl_sched_res)
|
|
|
|
@ -662,6 +665,7 @@ int mac::get_mch_sched(bool is_mcch, dl_sched_t *dl_sched_res)
|
|
|
|
|
}
|
|
|
|
|
if(mch.current_sf_allocation_num <= mtch_stop) {
|
|
|
|
|
int requested_bytes = (mcs_data.tbs/8 > mch.mtch_sched[mtch_index].lcid_buffer_size)?mch.mtch_sched[mtch_index].lcid_buffer_size:mcs_data.tbs/8;
|
|
|
|
|
requested_bytes = requested_bytes - 2;
|
|
|
|
|
int bytes_received = ue_db[SRSLTE_MRNTI]->read_pdu(current_lcid, mtch_payload_buffer, requested_bytes);
|
|
|
|
|
mch.pdu[0].lcid = current_lcid;
|
|
|
|
|
mch.pdu[0].nbytes = bytes_received;
|
|
|
|
|