Resolved seg fault in UE in absence of prs_config file
This commit is contained in:
+9
-2
@@ -161,7 +161,14 @@ void RCconfig_nrUE_prs(void *cfg)
|
|||||||
paramlist_def_t gParamList = {CONFIG_STRING_PRS_LIST,NULL,0};
|
paramlist_def_t gParamList = {CONFIG_STRING_PRS_LIST,NULL,0};
|
||||||
paramdef_t gParams[] = PRS_GLOBAL_PARAMS_DESC;
|
paramdef_t gParams[] = PRS_GLOBAL_PARAMS_DESC;
|
||||||
config_getlist( &gParamList,gParams,sizeof(gParams)/sizeof(paramdef_t), NULL);
|
config_getlist( &gParamList,gParams,sizeof(gParams)/sizeof(paramdef_t), NULL);
|
||||||
ue->prs_active_gNBs = *(gParamList.paramarray[j][PRS_ACTIVE_GNBS_IDX].uptr);
|
if (gParamList.numelt > 0)
|
||||||
|
{
|
||||||
|
ue->prs_active_gNBs = *(gParamList.paramarray[j][PRS_ACTIVE_GNBS_IDX].uptr);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
LOG_I(PHY,"%s configuration NOT found..!! Skipping configuring UE for the PRS reception\n", CONFIG_STRING_PRS_CONFIG);
|
||||||
|
}
|
||||||
|
|
||||||
paramlist_def_t PRS_ParamList = {{0},NULL,0};
|
paramlist_def_t PRS_ParamList = {{0},NULL,0};
|
||||||
for(int i = 0; i < ue->prs_active_gNBs; i++)
|
for(int i = 0; i < ue->prs_active_gNBs; i++)
|
||||||
@@ -247,7 +254,7 @@ void RCconfig_nrUE_prs(void *cfg)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
LOG_I(NR_PHY,"No %s configuration found\n", PRS_ParamList.listname);
|
LOG_I(PHY,"No %s configuration found\n", PRS_ParamList.listname);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -269,26 +269,6 @@ MACRLCs = (
|
|||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
prs_config = (
|
|
||||||
{
|
|
||||||
NumPRSResources = 1;
|
|
||||||
PRSResourceSetPeriod = [20, 2];
|
|
||||||
SymbolStart = [7, 7];
|
|
||||||
NumPRSSymbols = [6, 6];
|
|
||||||
NumRB = 106;
|
|
||||||
RBOffset = 0;
|
|
||||||
CombSize = 4;
|
|
||||||
REOffset = [0, 1];
|
|
||||||
PRSResourceOffset = [0, 0];
|
|
||||||
PRSResourceRepetition = 2;
|
|
||||||
PRSResourceTimeGap = 1;
|
|
||||||
NPRS_ID = [10, 5];
|
|
||||||
MutingPattern1 = [];
|
|
||||||
MutingPattern2 = [];
|
|
||||||
MutingBitRepetition = 1;
|
|
||||||
}
|
|
||||||
);
|
|
||||||
|
|
||||||
L1s = (
|
L1s = (
|
||||||
{
|
{
|
||||||
num_cc = 1;
|
num_cc = 1;
|
||||||
|
|||||||
@@ -1,47 +0,0 @@
|
|||||||
PRSs =
|
|
||||||
(
|
|
||||||
{
|
|
||||||
Active_gNBs = 1;
|
|
||||||
prs_config0 = (
|
|
||||||
{
|
|
||||||
gNB_id = 0;
|
|
||||||
NumPRSResources = 1;
|
|
||||||
PRSResourceSetPeriod = [20, 2];
|
|
||||||
SymbolStart = [7, 7];
|
|
||||||
NumPRSSymbols = [6, 6];
|
|
||||||
NumRB = 106;
|
|
||||||
RBOffset = 0;
|
|
||||||
CombSize = 4;
|
|
||||||
REOffset = [0, 1];
|
|
||||||
PRSResourceOffset = [0, 0];
|
|
||||||
PRSResourceRepetition = 2;
|
|
||||||
PRSResourceTimeGap = 1;
|
|
||||||
NPRS_ID = [10, 5];
|
|
||||||
MutingPattern1 = [];
|
|
||||||
MutingPattern2 = [];
|
|
||||||
MutingBitRepetition = 1;
|
|
||||||
}
|
|
||||||
);
|
|
||||||
|
|
||||||
prs_config1 = (
|
|
||||||
{
|
|
||||||
gNB_id = 1;
|
|
||||||
NumPRSResources = 1;
|
|
||||||
PRSResourceSetPeriod = [20, 5];
|
|
||||||
SymbolStart = [8];
|
|
||||||
NumPRSSymbols = [5];
|
|
||||||
NumRB = 106;
|
|
||||||
RBOffset = 0;
|
|
||||||
CombSize = 4;
|
|
||||||
REOffset = [1];
|
|
||||||
PRSResourceOffset = [1];
|
|
||||||
PRSResourceRepetition = 1;
|
|
||||||
PRSResourceTimeGap = 1;
|
|
||||||
NPRS_ID = [5];
|
|
||||||
MutingPattern1 = [];
|
|
||||||
MutingPattern2 = [];
|
|
||||||
MutingBitRepetition = 1;
|
|
||||||
}
|
|
||||||
);
|
|
||||||
}
|
|
||||||
);
|
|
||||||
Reference in New Issue
Block a user