Rewrite get_first_ul_slot to use pattern configuration stored in frame_structure
* the function is returning the index of the first full UL slot in tdd_slot_bitmap or the first UL slot (including mixed) if the "mixed" flag is provided
This commit is contained in:
committed by
Guido Casati
parent
bebbc857a0
commit
00f1d52f92
@@ -684,11 +684,6 @@ int get_slot_idx_in_period(const int slot, const frame_structure_t *fs)
|
||||
return slot % fs->numb_slots_period;
|
||||
}
|
||||
|
||||
int get_first_ul_slot(int nrofDownlinkSlots, int nrofDownlinkSymbols, int nrofUplinkSymbols)
|
||||
{
|
||||
return (nrofDownlinkSlots + (nrofDownlinkSymbols != 0 && nrofUplinkSymbols == 0));
|
||||
}
|
||||
|
||||
int get_dmrs_port(int nl, uint16_t dmrs_ports)
|
||||
{
|
||||
|
||||
|
||||
Reference in New Issue
Block a user