LOG_D(MAC,"In %s:[%d.%d]: [UE %d][RAPROC] invoking MAC for received RAR (current preamble %d)\n",__FUNCTION__,frame,slot,mod_id,preamble_index);
LOG_I(MAC,"In %s:[%d.%d]: [UE %d][RAPROC] invoking MAC for received RAR (current preamble %d)\n",__FUNCTION__,frame,slot,mod_id,preamble_index);
if(mac->crnti==ra->t_crnti)
{
LOG_I(MAC,"Discarding the received RAR.\n");
return-1;
}
while(1){
n_subheaders++;
if(rarh->T==1){
...
...
@@ -2201,7 +2206,7 @@ int nr_ue_process_rar(nr_downlink_indication_t *dl_info, NR_UL_TIME_ALIGNMENT_t
LOG_D(MAC,"[UE %d][RAPROC] Got BI RAR subPDU %d\n",mod_id,ra->RA_backoff_indicator);
}
if(rarh->RAPID==preamble_index){
LOG_I(MAC,"[UE %d][RAPROC][%d.%d] Found RAR with the intended RAPID %d\n",mod_id,frame,slot,rarh->RAPID);
LOG_I(MAC,"[UE %d][RAPROC][%d.%d] Found RAR with the intended RAPID %d, CRNTI %x, t_crnti = %x\n",mod_id,frame,slot,rarh->RAPID,mac->crnti,ra->t_crnti);
LOG_I(MAC,"[gNB %d][RAPROC] Frame %d, Subframe %d : CC_id %d RA is active, Msg3 in (%d,%d)\n",module_idP,frameP,slotP,CC_id,ra->Msg3_frame,ra->Msg3_slot);
LOG_I(MAC,"[gNB %d][RAPROC] Frame %d, Subframe %d : CC_id %d RA is active, Msg3 in (%d,%d), crnti %x\n",module_idP,frameP,slotP,CC_id,ra->Msg3_frame,ra->Msg3_slot,ra->rnti);
rar->TCRNTI_1=(uint8_t)(ra->rnti>>8);// 8 MSBs of rnti
rar->TCRNTI_2=(uint8_t)(ra->rnti&0xff);// 8 LSBs of rnti
LOG_I(MAC,"[gNB] Generate RAR MAC PDU frame %d slot %d preamble index %u TA command %d with rnti = %x <---------------NOTICE in nr_fill_rar() \n",ra->Msg2_frame,ra->Msg2_slot,ra->preamble_index,ra->timing_offset,ra->rnti);