From 6cf2ab2a15a90872b1bec4a86f3bad0234c082ed Mon Sep 17 00:00:00 2001 From: Romain Beurdouche Date: Thu, 15 Feb 2024 11:10:48 +0100 Subject: [PATCH] feat(phy-test): disable CQI and RSRP evaluation when running in phy-test mode In phy-test, the scheduler has a hardcoded UE allocation; if CQI and RSRP are not evaluated, there is no change in the scheduler function. Also, this avoids misleading error messages if no UE is connected. --- openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_uci.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_uci.c b/openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_uci.c index e949d84dca..ad7286e8c1 100644 --- a/openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_uci.c +++ b/openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_uci.c @@ -1109,7 +1109,8 @@ void handle_nr_uci_pucch_2_3_4(module_id_t mod_id, } free(uci_234->harq.harq_payload); } - if ((uci_234->pduBitmap >> 2) & 0x01) { + /* phy-test has hardcoded allocation, so no use to handle CSI reports */ + if ((uci_234->pduBitmap >> 2) & 0x01 && !get_softmodem_params()->phy_test) { //API to parse the csi report and store it into sched_ctrl extract_pucch_csi_report(csi_MeasConfig, uci_234, frame, slot, UE, nrmac->common_channels->ServingCellConfigCommon); //TCI handling function