/*! \fn nr_locate_BsrIndexByBufferSize (int *table, int size, int value)
\brief locate the BSR level in the table as defined in 38.321. This function requires that he values in table to be monotonic, either increasing or decreasing. The returned value is not less than 0, nor greater than n-1, where n is the size of table.
...
...
@@ -260,14 +260,19 @@ int nr_get_sf_periodicBSRTimer(uint8_t bucketSize);
LOG_D(MAC,"In %s: selected RA preamble index %d for contention-free random access procedure for SSB with Id %d\n",__FUNCTION__,ra->ra_PreambleIndex,cfra_ssb_resource_idx);
LOG_D(MAC,"Selected RA preamble index %d for contention-free random access procedure for SSB with Id %d\n",
ra->ra_PreambleIndex,
cfra_ssb_resource_idx);
}
}else{
/* TODO: This controls the tx_power of UE and the ramping procedure of RA of UE. Later we
@@ -575,7 +575,6 @@ static int nr_ue_process_dci_dl_10(module_id_t module_id,
* 28 DAI_: For format1_1: 4 if more than one serving cell are configured in the DL and the higher layer parameter HARQ-ACK-codebook=dynamic, where the 2 MSB bits are the counter DAI and the 2 LSB bits are the total DAI
LOG_D(MAC,"In %s [%d.%d]: processing PDU %d (with length %d) of %d total number of PDUs...\n",__FUNCTION__,frameP,slot,pdu_id,pdu_len,dl_info->rx_ind->number_pdus);
LOG_D(MAC,"[%d.%d]: processing PDU %d (with length %d) of %d total number of PDUs...\n",
@@ -4073,7 +4090,12 @@ static void nr_ue_process_rar(nr_downlink_indication_t *dl_info, int pdu_id)
break;
}
if(rarh->E==0){
LOG_W(NR_MAC,"[UE %d][RAPROC][%d.%d] Received RAR preamble (%d) doesn't match the intended RAPID (%d)\n",mod_id,frame,slot,rarh->RAPID,preamble_index);
LOG_W(NR_MAC,"[UE %d][RAPROC][%d.%d] Received RAR preamble (%d) doesn't match the intended RAPID (%d)\n",
mac->ue_id,
frame,
slot,
rarh->RAPID,
preamble_index);
break;
}else{
rarh+=sizeof(NR_MAC_RAR)+1;
...
...
@@ -4081,8 +4103,21 @@ static void nr_ue_process_rar(nr_downlink_indication_t *dl_info, int pdu_id)
}
#ifdef DEBUG_RAR
LOG_D(MAC,"[DEBUG_RAR] (%d,%d) number of RAR subheader %d; number of RAR pyloads %d\n",frame,slot,n_subheaders,n_subPDUs);
LOG_D(MAC,"[DEBUG_RAR] Received RAR (%02x|%02x.%02x.%02x.%02x.%02x.%02x) for preamble %d/%d\n",*(uint8_t*)rarh,rar[0],rar[1],rar[2],rar[3],rar[4],rar[5],rarh->RAPID,preamble_index);
LOG_D(MAC,"[DEBUG_RAR] (%d,%d) number of RAR subheader %d; number of RAR pyloads %d\n",
frame,
slot,
n_subheaders,
n_subPDUs);
LOG_D(MAC,"[DEBUG_RAR] Received RAR (%02x|%02x.%02x.%02x.%02x.%02x.%02x) for preamble %d/%d\n",
*(uint8_t*)rarh,
rar[0],
rar[1],
rar[2],
rar[3],
rar[4],
rar[5],
rarh->RAPID,
preamble_index);
#endif
if(ra->RA_RAPID_found){
...
...
@@ -4162,11 +4197,10 @@ static void nr_ue_process_rar(nr_downlink_indication_t *dl_info, int pdu_id)