Commit e76593f7 authored by Francesco Mani's avatar Francesco Mani

bugfixes

parent ce846e6f
...@@ -1960,6 +1960,8 @@ uint16_t nr_dci_size(NR_ServingCellConfigCommon_t *scc, ...@@ -1960,6 +1960,8 @@ uint16_t nr_dci_size(NR_ServingCellConfigCommon_t *scc,
dci_pdu->frequency_hopping_flag.nbits = 1; dci_pdu->frequency_hopping_flag.nbits = 1;
size += 1; size += 1;
} }
else
dci_pdu->frequency_hopping_flag.nbits = 0;
// 1st DAI // 1st DAI
if (secondaryCellGroup->physicalCellGroupConfig->pdsch_HARQ_ACK_Codebook==NR_PhysicalCellGroupConfig__pdsch_HARQ_ACK_Codebook_dynamic) if (secondaryCellGroup->physicalCellGroupConfig->pdsch_HARQ_ACK_Codebook==NR_PhysicalCellGroupConfig__pdsch_HARQ_ACK_Codebook_dynamic)
dci_pdu->dai[0].nbits = 2; dci_pdu->dai[0].nbits = 2;
......
...@@ -497,7 +497,7 @@ void config_uldci(NR_BWP_Uplink_t *ubwp, ...@@ -497,7 +497,7 @@ void config_uldci(NR_BWP_Uplink_t *ubwp,
dci_pdu_rel15->rv = pusch_pdu->pusch_data.rv_index; dci_pdu_rel15->rv = pusch_pdu->pusch_data.rv_index;
dci_pdu_rel15->harq_pid = pusch_pdu->pusch_data.harq_process_id; dci_pdu_rel15->harq_pid = pusch_pdu->pusch_data.harq_process_id;
dci_pdu_rel15->frequency_hopping_flag.val = pusch_pdu->frequency_hopping; dci_pdu_rel15->frequency_hopping_flag.val = pusch_pdu->frequency_hopping;
//dci_pdu_rel15->dai[0].val = ???; //TODO dci_pdu_rel15->dai[0].val = 0; //TODO
// bwp indicator // bwp indicator
if (n_ubwp < 4) if (n_ubwp < 4)
dci_pdu_rel15->bwp_indicator.val = bwp_id; dci_pdu_rel15->bwp_indicator.val = bwp_id;
...@@ -878,7 +878,10 @@ void schedule_fapi_ul_pdu(int Mod_idP, ...@@ -878,7 +878,10 @@ void schedule_fapi_ul_pdu(int Mod_idP,
if (pusch_Config->resourceAllocation==NR_PUSCH_Config__resourceAllocation_resourceAllocationType1) { if (pusch_Config->resourceAllocation==NR_PUSCH_Config__resourceAllocation_resourceAllocationType1) {
pusch_pdu->resource_alloc = 1; //type 1 pusch_pdu->resource_alloc = 1; //type 1
pusch_pdu->rb_start = 0; pusch_pdu->rb_start = 0;
if (get_softmodem_params()->phy_test==1)
pusch_pdu->rb_size = 50; pusch_pdu->rb_size = 50;
else
pusch_pdu->rb_size = 5;
} }
else else
AssertFatal(1==0,"Only frequency resource allocation type 1 is currently supported\n"); AssertFatal(1==0,"Only frequency resource allocation type 1 is currently supported\n");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment