Commit 88daf73e authored by tomita.y's avatar tomita.y

Checking SDU length of DCCH in MAC.

parent 6289fa4e
......@@ -942,6 +942,7 @@ schedule_ue_spec(module_id_t module_idP, int slice_idxP,
T_INT(sdu_lengths[0]));
LOG_D(MAC, "[eNB %d][DCCH] CC_id %d Got %d bytes from RLC\n",
module_idP, CC_id, sdu_lengths[0]);
if(sdu_lengths[0] > 0){
sdu_length_total = sdu_lengths[0];
sdu_lcids[0] = DCCH;
UE_list->eNB_UE_stats[CC_id][UE_id].lcid_sdu[0] = DCCH;
......@@ -951,6 +952,7 @@ schedule_ue_spec(module_id_t module_idP, int slice_idxP,
header_length_last = 1 + 1 + (sdu_lengths[0] >= 128);
header_length_total += header_length_last;
num_sdus = 1;
}
#ifdef DEBUG_eNB_SCHEDULER
LOG_T(MAC,
"[eNB %d][DCCH] CC_id %d Got %d bytes :",
......
......@@ -1355,6 +1355,7 @@ schedule_ue_spec_fairRR(module_id_t module_idP,
LOG_D(MAC,
"[eNB %d][DCCH] CC_id %d frame %d subframe %d UE_id %d/%x Got %d bytes bytes_in_buffer %d from release_num %d\n",
module_idP, CC_id, frameP, subframeP, UE_id, rnti, sdu_lengths[0],rlc_status.bytes_in_buffer,rrc_release_info.num_UEs);
if(sdu_lengths[0] > 0){
sdu_length_total = sdu_lengths[0];
sdu_lcids[0] = DCCH;
UE_list->eNB_UE_stats[CC_id][UE_id].
......@@ -1363,6 +1364,10 @@ schedule_ue_spec_fairRR(module_id_t module_idP,
eNB_UE_stats[CC_id][UE_id].num_bytes_tx[DCCH]
+= sdu_lengths[0];
num_sdus = 1;
} else {
header_len_dcch = 0;
sdu_length_total = 0;
}
#ifdef DEBUG_eNB_SCHEDULER
LOG_T(MAC,
"[eNB %d][DCCH] CC_id %d Got %d bytes :",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment