remove confusing warning for non existing RNTI

This commit is contained in:
francescomani
2023-06-01 10:43:31 +02:00
parent 0e64165093
commit 721dfd1961
2 changed files with 4 additions and 1 deletions
@@ -2059,6 +2059,10 @@ static void nr_generate_Msg4(module_id_t module_idP,
static void nr_check_Msg4_Ack(module_id_t module_id, int CC_id, frame_t frame, sub_frame_t slot, NR_RA_t *ra)
{
NR_UE_info_t *UE = find_nr_UE(&RC.nrmac[module_id]->UE_info, ra->rnti);
if (!UE) {
LOG_E(NR_MAC, "Cannot check Msg4 ACK/NACK, rnti %04x not in the table\n", ra->rnti);
return;
}
const int current_harq_pid = ra->harq_pid;
NR_UE_sched_ctrl_t *sched_ctrl = &UE->UE_sched_ctrl;