Commit 856a8bb4 authored by imad's avatar imad

SR Fn Modify for 2 UEs

parent c50d9051
...@@ -761,10 +761,10 @@ void nr_sr_reporting(int Mod_idP, frame_t SFN, sub_frame_t slot) ...@@ -761,10 +761,10 @@ void nr_sr_reporting(int Mod_idP, frame_t SFN, sub_frame_t slot)
{ {
NR_ServingCellConfigCommon_t *scc = RC.nrmac[Mod_idP]->common_channels->ServingCellConfigCommon; NR_ServingCellConfigCommon_t *scc = RC.nrmac[Mod_idP]->common_channels->ServingCellConfigCommon;
const int n_slots_frame = nr_slots_per_frame[*scc->ssbSubcarrierSpacing]; const int n_slots_frame = nr_slots_per_frame[*scc->ssbSubcarrierSpacing];
const int UE_id = 0;
NR_UE_info_t *UE_info = &RC.nrmac[Mod_idP]->UE_info; NR_UE_info_t *UE_info = &RC.nrmac[Mod_idP]->UE_info;
if (!UE_info->active[UE_id]) NR_list_t *UE_list = &UE_info->list;
return; for (int UE_id = UE_list->head; UE_id >= 0; UE_id = UE_list->next[UE_id]) {
if (UE_info->active[UE_id]) {
NR_PUCCH_ResourceSet_t *pucchresset; NR_PUCCH_ResourceSet_t *pucchresset;
NR_sched_pucch_t *curr_pucch; NR_sched_pucch_t *curr_pucch;
NR_SchedulingRequestResourceConfig_t *SchedulingRequestResourceConfig; NR_SchedulingRequestResourceConfig_t *SchedulingRequestResourceConfig;
...@@ -829,7 +829,9 @@ void nr_sr_reporting(int Mod_idP, frame_t SFN, sub_frame_t slot) ...@@ -829,7 +829,9 @@ void nr_sr_reporting(int Mod_idP, frame_t SFN, sub_frame_t slot)
i, i,
curr_pucch->resource_indicator); curr_pucch->resource_indicator);
} }
}
} }
}
} }
void periodicity__SRR (NR_SchedulingRequestResourceConfig_t *SchedulingReqRec, int *period, int *offset){ void periodicity__SRR (NR_SchedulingRequestResourceConfig_t *SchedulingReqRec, int *period, int *offset){
......
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