Fixed sdu initialization: this was causing assertion failure at UE side

This commit is contained in:
cig
2020-01-15 15:56:21 +01:00
parent 9f0be015a9
commit 17090f22c1
@@ -389,8 +389,8 @@ void nr_schedule_uss_dlsch_phytest(module_id_t module_idP,
//Sending SDUs with size 1
//Initialize elements of sdu_lcids and sdu_lengths
sdu_lcids[0] = 0x05; // DRB
sdu_lengths[0] = TBS_bytes-3;
header_length_total += 2;
sdu_lengths[0] = TBS_bytes - ta_len - 3;
header_length_total += 2 + (sdu_lengths[0] >= 128);
sdu_length_total += sdu_lengths[0];
num_sdus +=1;
} // else IS_SOFTMODEM_NOS1