also fixing PRACH issue in UE + config files
This commit is contained in:
@@ -203,13 +203,15 @@ void config_common_ue(NR_UE_MAC_INST_t *mac,
|
||||
lte_frame_type_t frame_type;
|
||||
uint16_t band;
|
||||
int32_t offset;
|
||||
frequency_range_t frequency_range;
|
||||
|
||||
get_band((uint64_t)(cfg->carrier_config.dl_frequency)*1000,
|
||||
&band,
|
||||
&offset,
|
||||
&frame_type);
|
||||
|
||||
|
||||
frequency_range = band<100?FR1:FR2;
|
||||
|
||||
// cell config
|
||||
|
||||
cfg->cell_config.phy_cell_id = *scc->physCellId;
|
||||
@@ -317,7 +319,7 @@ void config_common_ue(NR_UE_MAC_INST_t *mac,
|
||||
|
||||
cfg->prach_config.num_prach_fd_occasions_list[i].k1 = scc->uplinkConfigCommon->initialUplinkBWP->rach_ConfigCommon->choice.setup->rach_ConfigGeneric.msg1_FrequencyStart;
|
||||
cfg->prach_config.num_prach_fd_occasions_list[i].prach_zero_corr_conf = scc->uplinkConfigCommon->initialUplinkBWP->rach_ConfigCommon->choice.setup->rach_ConfigGeneric.zeroCorrelationZoneConfig;
|
||||
cfg->prach_config.num_prach_fd_occasions_list[i].num_root_sequences = compute_nr_root_seq(scc->uplinkConfigCommon->initialUplinkBWP->rach_ConfigCommon->choice.setup, nb_preambles, frame_type);
|
||||
cfg->prach_config.num_prach_fd_occasions_list[i].num_root_sequences = compute_nr_root_seq(scc->uplinkConfigCommon->initialUplinkBWP->rach_ConfigCommon->choice.setup, nb_preambles, frame_type,frequency_range);
|
||||
//cfg->prach_config.num_prach_fd_occasions_list[i].num_unused_root_sequences = ???
|
||||
}
|
||||
|
||||
|
||||
@@ -928,7 +928,7 @@ void fill_default_secondaryCellGroup(NR_ServingCellConfigCommon_t *servingcellco
|
||||
NR_PUCCH_Resource_t *pucchres2=calloc(1,sizeof(*pucchres2));
|
||||
NR_PUCCH_Resource_t *pucchres3=calloc(1,sizeof(*pucchres3));
|
||||
pucchres0->pucch_ResourceId=1;
|
||||
pucchres0->startingPRB=48;
|
||||
pucchres0->startingPRB=8;
|
||||
pucchres0->intraSlotFrequencyHopping=NULL;
|
||||
pucchres0->secondHopPRB=NULL;
|
||||
pucchres0->format.present= NR_PUCCH_Resource__format_PR_format0;
|
||||
@@ -939,7 +939,7 @@ void fill_default_secondaryCellGroup(NR_ServingCellConfigCommon_t *servingcellco
|
||||
ASN_SEQUENCE_ADD(&pucch_Config->resourceToAddModList->list,pucchres0);
|
||||
|
||||
pucchres1->pucch_ResourceId=2;
|
||||
pucchres1->startingPRB=48;
|
||||
pucchres1->startingPRB=8;
|
||||
pucchres1->intraSlotFrequencyHopping=NULL;
|
||||
pucchres1->secondHopPRB=NULL;
|
||||
pucchres1->format.present= NR_PUCCH_Resource__format_PR_format0;
|
||||
@@ -950,23 +950,23 @@ void fill_default_secondaryCellGroup(NR_ServingCellConfigCommon_t *servingcellco
|
||||
ASN_SEQUENCE_ADD(&pucch_Config->resourceToAddModList->list,pucchres1);
|
||||
|
||||
pucchres2->pucch_ResourceId=3;
|
||||
pucchres2->startingPRB=40;
|
||||
pucchres2->startingPRB=0;
|
||||
pucchres2->intraSlotFrequencyHopping=NULL;
|
||||
pucchres2->secondHopPRB=NULL;
|
||||
pucchres2->format.present= NR_PUCCH_Resource__format_PR_format2;
|
||||
pucchres2->format.choice.format2=calloc(1,sizeof(*pucchres2->format.choice.format2));
|
||||
pucchres2->format.choice.format2->nrofPRBs=4;
|
||||
pucchres2->format.choice.format2->nrofPRBs=8;
|
||||
pucchres2->format.choice.format2->nrofSymbols=1;
|
||||
pucchres2->format.choice.format2->startingSymbolIndex=13;
|
||||
ASN_SEQUENCE_ADD(&pucch_Config->resourceToAddModList->list,pucchres2);
|
||||
|
||||
pucchres3->pucch_ResourceId=4;
|
||||
pucchres3->startingPRB=40;
|
||||
pucchres3->startingPRB=0;
|
||||
pucchres3->intraSlotFrequencyHopping=NULL;
|
||||
pucchres3->secondHopPRB=NULL;
|
||||
pucchres3->format.present= NR_PUCCH_Resource__format_PR_format2;
|
||||
pucchres3->format.choice.format2=calloc(1,sizeof(*pucchres3->format.choice.format2));
|
||||
pucchres3->format.choice.format2->nrofPRBs=4;
|
||||
pucchres3->format.choice.format2->nrofPRBs=8;
|
||||
pucchres3->format.choice.format2->nrofSymbols=1;
|
||||
pucchres3->format.choice.format2->startingSymbolIndex=12;
|
||||
ASN_SEQUENCE_ADD(&pucch_Config->resourceToAddModList->list,pucchres3);
|
||||
|
||||
Reference in New Issue
Block a user