Commit de9b4599 authored by Romain Beurdouche's avatar Romain Beurdouche

feat(phy-test): disable CQI and RSRP errors when running in phy-test mode

parent c599e172
...@@ -166,7 +166,9 @@ uint16_t get_pm_index(const gNB_MAC_INST *nrmac, ...@@ -166,7 +166,9 @@ uint16_t get_pm_index(const gNB_MAC_INST *nrmac,
uint8_t get_mcs_from_cqi(int mcs_table, int cqi_table, int cqi_idx) uint8_t get_mcs_from_cqi(int mcs_table, int cqi_table, int cqi_idx)
{ {
if (cqi_idx <= 0) { if (cqi_idx <= 0) {
LOG_E(NR_MAC, "invalid cqi_idx %d, default to MCS 9\n", cqi_idx); if (get_softmodem_params()->phy_test <= 0) {
LOG_E(NR_MAC, "invalid cqi_idx %d, default to MCS 9\n", cqi_idx);
}
return 9; return 9;
} }
......
...@@ -536,7 +536,9 @@ static void tci_handling(NR_UE_info_t *UE, frame_t frame, slot_t slot) ...@@ -536,7 +536,9 @@ static void tci_handling(NR_UE_info_t *UE, frame_t frame, slot_t slot)
int rsrp_index = sched_ctrl->CSI_report.ssb_cri_report.RSRP; int rsrp_index = sched_ctrl->CSI_report.ssb_cri_report.RSRP;
bool valid = get_measured_rsrp(rsrp_index, &strongest_ssb_rsrp); bool valid = get_measured_rsrp(rsrp_index, &strongest_ssb_rsrp);
if (!valid) { if (!valid) {
LOG_E(NR_MAC, "UE %04x: reported RSRP index %d invalid\n", UE->rnti, rsrp_index); if (get_softmodem_params()->phy_test <= 0) {
LOG_E(NR_MAC, "UE %04x: reported RSRP index %d invalid\n", UE->rnti, rsrp_index);
}
return; return;
} }
ssb_rsrp[idx * nb_of_csi_ssb_report] = strongest_ssb_rsrp; ssb_rsrp[idx * nb_of_csi_ssb_report] = strongest_ssb_rsrp;
...@@ -739,7 +741,9 @@ static void evaluate_rsrp_report(NR_UE_info_t *UE, ...@@ -739,7 +741,9 @@ static void evaluate_rsrp_report(NR_UE_info_t *UE,
int rsrp_index = sched_ctrl->CSI_report.ssb_cri_report.RSRP; int rsrp_index = sched_ctrl->CSI_report.ssb_cri_report.RSRP;
bool valid = get_measured_rsrp(rsrp_index, &strongest_ssb_rsrp); bool valid = get_measured_rsrp(rsrp_index, &strongest_ssb_rsrp);
if (!valid) { if (!valid) {
LOG_E(NR_MAC, "UE %04x: reported RSRP index %d invalid\n", UE->rnti, rsrp_index); if (get_softmodem_params()->phy_test <= 0) {
LOG_E(NR_MAC, "UE %04x: reported RSRP index %d invalid\n", UE->rnti, rsrp_index);
}
return; return;
} }
NR_mac_stats_t *stats = &UE->mac_stats; NR_mac_stats_t *stats = &UE->mac_stats;
......
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