Commit 4a518335 authored by luis_pereira87's avatar luis_pereira87

Prevent Msg3 to be scheduled in downlink slot when nrofUplinkSymbols = 0 and DDDSU

parent 315caca9
...@@ -894,12 +894,14 @@ void nr_get_Msg3alloc(module_id_t module_id, ...@@ -894,12 +894,14 @@ void nr_get_Msg3alloc(module_id_t module_id,
uint8_t k2 = 0; uint8_t k2 = 0;
if (frame_type == TDD) { if (frame_type == TDD) {
int msg3_slot = get_first_ul_slot(tdd->nrofDownlinkSlots, tdd->nrofDownlinkSymbols, tdd->nrofUplinkSymbols); int msg3_slot = get_first_ul_slot(tdd->nrofDownlinkSlots, tdd->nrofDownlinkSymbols, tdd->nrofUplinkSymbols);
if (tdd->nrofUplinkSymbols != 0) {
if (tdd->nrofUplinkSymbols < 3) if (tdd->nrofUplinkSymbols < 3)
msg3_slot++; // we can't trasmit msg3 in mixed slot if there are less than 3 symbols msg3_slot++; // we can't trasmit msg3 in mixed slot if there are less than 3 symbols
else { else {
Msg3maxsymb = tdd->nrofUplinkSymbols; Msg3maxsymb = tdd->nrofUplinkSymbols;
Msg3start = 14 - tdd->nrofUplinkSymbols; Msg3start = 14 - tdd->nrofUplinkSymbols;
} }
}
const int nb_periods_per_frame = get_nb_periods_per_frame(tdd->dl_UL_TransmissionPeriodicity); const int nb_periods_per_frame = get_nb_periods_per_frame(tdd->dl_UL_TransmissionPeriodicity);
const int nb_slots_per_period = ((1<<mu)*10)/nb_periods_per_frame; const int nb_slots_per_period = ((1<<mu)*10)/nb_periods_per_frame;
for (int i=0; i<pusch_TimeDomainAllocationList->list.count; i++) { for (int i=0; i<pusch_TimeDomainAllocationList->list.count; i++) {
......
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