use frame_type in frame_structure instead of bool

This commit is contained in:
francescomani
2025-02-12 11:24:56 +01:00
parent b439816409
commit d0ba1a30e3
9 changed files with 20 additions and 20 deletions
+1 -1
View File
@@ -1262,7 +1262,7 @@ static void set_SR_periodandoffset(NR_SchedulingRequestResourceConfig_t *schedul
{
const frame_structure_t *fs = &RC.nrmac[0]->frame_structure;
int sr_slot = 1; // in FDD SR in slot 1
if (fs->is_tdd)
if (fs->frame_type == TDD)
sr_slot = get_first_ul_slot(fs, true);
schedulingRequestResourceConfig->periodicityAndOffset = calloc(1,sizeof(*schedulingRequestResourceConfig->periodicityAndOffset));