diff --git a/openair1/PHY/NR_TRANSPORT/nr_dci.c b/openair1/PHY/NR_TRANSPORT/nr_dci.c index 949f8807f2..36616b6e21 100644 --- a/openair1/PHY/NR_TRANSPORT/nr_dci.c +++ b/openair1/PHY/NR_TRANSPORT/nr_dci.c @@ -204,16 +204,19 @@ uint8_t nr_generate_dci_top(NR_gNB_PDCCH pdcch_vars, /// DCI payload processing //channel coding #ifdef DEBUG_POLAR_PARAMS + dci_alloc.dci_pdu[1]=10; uint8_t *encoderInput = malloc(sizeof(uint8_t) * dci_alloc.size); printf("\n[TY]DCI PDU: [0]->0x%08x \t [1]->0x%08x \t [2]->0x%08x \t [3]->0x%08x\n", dci_alloc.dci_pdu[0], dci_alloc.dci_pdu[1], dci_alloc.dci_pdu[2], dci_alloc.dci_pdu[3]); - printf("\ndci_alloc.dci_pdu\n[0]=%d [1]=%d [2]=%d [3]=%d\n",dci_alloc.dci_pdu[0],dci_alloc.dci_pdu[1],dci_alloc.dci_pdu[2],dci_alloc.dci_pdu[3]); nr_bit2byte(dci_alloc.dci_pdu, dci_alloc.size, encoderInput); - printf("\ndci_alloc.dci_pdu\n[0]=%d [1]=%d [2]=%d [3]=%d\n",dci_alloc.dci_pdu[0],dci_alloc.dci_pdu[1],dci_alloc.dci_pdu[2],dci_alloc.dci_pdu[3]); for (int i=0;i0x%08x \t [1]->0x%08x \t [2]->0x%08x \t [3]->0x%08x\n", + dci_alloc.dci_pdu[0], dci_alloc.dci_pdu[1], dci_alloc.dci_pdu[2], dci_alloc.dci_pdu[3]); return (0); + nr_polar_init(&nrPolar_params, NR_POLAR_DCI_MESSAGE_TYPE, dci_alloc.size, pdcch_params.aggregation_level); t_nrPolar_paramsPtr currentPtr = nr_polar_params(nrPolar_params, NR_POLAR_DCI_MESSAGE_TYPE, diff --git a/openair1/PHY/NR_TRANSPORT/nr_dci_tools.c b/openair1/PHY/NR_TRANSPORT/nr_dci_tools.c index 6e0b019cfe..e3504ea64e 100644 --- a/openair1/PHY/NR_TRANSPORT/nr_dci_tools.c +++ b/openair1/PHY/NR_TRANSPORT/nr_dci_tools.c @@ -130,11 +130,11 @@ void nr_fill_dci_and_dlsch(PHY_VARS_gNB *gNB, switch(params_rel15->rnti_type) { case NFAPI_NR_RNTI_RA: #ifdef DEBUG_NFAPI_NR_RNTI_RA -printf("frequency_domain_assignment = %05d = %#08x\n" - " time_domain_assignment = %05d = %#08x\n" - " vrb_to_prb_mapping = %05d = %#08x\n" - " MCS = %05d = %#08x\n" - " tb_scaling = %05d = %#08x\n", +printf("frequency_domain_assignment = %05d = %#010x\n" + " time_domain_assignment = %05d = %#010x\n" + " vrb_to_prb_mapping = %05d = %#010x\n" + " MCS = %05d = %#010x\n" + " tb_scaling = %05d = %#010x\n", pdu_rel15->frequency_domain_assignment,pdu_rel15->frequency_domain_assignment, pdu_rel15->time_domain_assignment,pdu_rel15->time_domain_assignment, pdu_rel15->vrb_to_prb_mapping,pdu_rel15->vrb_to_prb_mapping,