bugfix: call T tracer only after setting values
This commit is contained in:
@@ -1690,6 +1690,14 @@ static void nr_generate_Msg2(module_id_t module_idP,
|
|||||||
|
|
||||||
LOG_A(NR_MAC, "%d.%d Send RAR to RA-RNTI %04x\n", frameP, slotP, ra->RA_rnti);
|
LOG_A(NR_MAC, "%d.%d Send RAR to RA-RNTI %04x\n", frameP, slotP, ra->RA_rnti);
|
||||||
|
|
||||||
|
tx_req->PDU_index = pduindex;
|
||||||
|
tx_req->num_TLV = 1;
|
||||||
|
tx_req->TLVs[0].length = pdsch_pdu_rel15->TBSize[0];
|
||||||
|
tx_req->PDU_length = compute_PDU_length(tx_req->num_TLV, pdsch_pdu_rel15->TBSize[0]);
|
||||||
|
TX_req->SFN = frameP;
|
||||||
|
TX_req->Number_of_PDUs++;
|
||||||
|
TX_req->Slot = slotP;
|
||||||
|
|
||||||
T(T_GNB_MAC_DL_RAR_PDU_WITH_DATA,
|
T(T_GNB_MAC_DL_RAR_PDU_WITH_DATA,
|
||||||
T_INT(module_idP),
|
T_INT(module_idP),
|
||||||
T_INT(CC_id),
|
T_INT(CC_id),
|
||||||
@@ -1699,14 +1707,6 @@ static void nr_generate_Msg2(module_id_t module_idP,
|
|||||||
T_INT(0),
|
T_INT(0),
|
||||||
T_BUFFER(&tx_req->TLVs[0].value.direct[0], tx_req->TLVs[0].length));
|
T_BUFFER(&tx_req->TLVs[0].value.direct[0], tx_req->TLVs[0].length));
|
||||||
|
|
||||||
tx_req->PDU_index = pduindex;
|
|
||||||
tx_req->num_TLV = 1;
|
|
||||||
tx_req->TLVs[0].length = pdsch_pdu_rel15->TBSize[0];
|
|
||||||
tx_req->PDU_length = compute_PDU_length(tx_req->num_TLV, pdsch_pdu_rel15->TBSize[0]);
|
|
||||||
TX_req->SFN = frameP;
|
|
||||||
TX_req->Number_of_PDUs++;
|
|
||||||
TX_req->Slot = slotP;
|
|
||||||
|
|
||||||
// Mark the corresponding symbols RBs as used
|
// Mark the corresponding symbols RBs as used
|
||||||
fill_pdcch_vrb_map(nr_mac, CC_id, &ra->sched_pdcch, CCEIndex, aggregation_level, beam.idx);
|
fill_pdcch_vrb_map(nr_mac, CC_id, &ra->sched_pdcch, CCEIndex, aggregation_level, beam.idx);
|
||||||
for (int rb = 0; rb < rbSize; rb++) {
|
for (int rb = 0; rb < rbSize; rb++) {
|
||||||
|
|||||||
Reference in New Issue
Block a user