diff --git a/openair2/LAYER2/NR_MAC_gNB/gNB_scheduler.c b/openair2/LAYER2/NR_MAC_gNB/gNB_scheduler.c index 5a4bb23865..9ebd54b831 100644 --- a/openair2/LAYER2/NR_MAC_gNB/gNB_scheduler.c +++ b/openair2/LAYER2/NR_MAC_gNB/gNB_scheduler.c @@ -324,7 +324,7 @@ void gNB_dlsch_ulsch_scheduler(module_id_t module_idP, // refresh UE list based on UEs dropped by PHY in previous subframe for (i = 0; i < MAX_MOBILES_PER_GNB; i++) { - if (UE_list->active[i]) { + if (0 /*UE_list->active[i]*/) { nfapi_nr_config_request_t *cfg = &RC.nrmac[module_idP]->config[CC_id]; @@ -440,13 +440,13 @@ void gNB_dlsch_ulsch_scheduler(module_id_t module_idP, schedule_nr_mib(module_idP, frameP, slotP); } - // Phytest scheduling/ option not activated because of pending bug + // Phytest scheduling - /*if (slotP==2) - nr_schedule_css_dlsch_phytest(module_idP, frameP, slotP);*/ + if (slotP==2) + nr_schedule_uss_ulsch_phytest(module_idP, frameP, slotP); if (slotP==1) - nr_schedule_uss_dlsch_phytest(module_idP, frameP, slotP); + nr_schedule_uss_dlsch_phytest(module_idP, frameP, slotP); /* // Allocate CCEs for good after scheduling is done diff --git a/openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_phytest.c b/openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_phytest.c index 8cfd6e7964..6d270bde0c 100644 --- a/openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_phytest.c +++ b/openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_phytest.c @@ -186,7 +186,6 @@ void nr_schedule_uss_dlsch_phytest(module_id_t module_idP, nfapi_nr_dl_config_request_pdu_t *dl_config_dci_pdu; nfapi_nr_dl_config_request_pdu_t *dl_config_dlsch_pdu; nfapi_tx_request_pdu_t *TX_req; - nfapi_nr_ul_tti_request_t *UL_tti_req; nfapi_nr_config_request_t *cfg = &nr_mac->config[0]; uint16_t rnti = 0x1234; @@ -311,8 +310,20 @@ void nr_schedule_uss_dlsch_phytest(module_id_t module_idP, nr_mac->TX_req[CC_id].sfn_sf = sfn_sf; nr_mac->TX_req[CC_id].tx_request_body.tl.tag = NFAPI_TX_REQUEST_BODY_TAG; nr_mac->TX_req[CC_id].header.message_id = NFAPI_TX_REQUEST; + } +} +void nr_schedule_uss_ulsch_phytest(module_id_t module_idP, + frame_t frameP, + sub_frame_t slotP) +{ + gNB_MAC_INST *nr_mac = RC.nrmac[module_idP]; + nfapi_nr_ul_tti_request_t *UL_tti_req; + uint16_t rnti = 0x1234; + + for (uint8_t CC_id=0; CC_idUL_tti_req[CC_id]; UL_tti_req->sfn = frameP;