Commit 899b3440 authored by Vaibhav Shrivastava's avatar Vaibhav Shrivastava Committed by jperaldi

SIB4 Fix

parent 8ff745d3
...@@ -353,7 +353,7 @@ typedef struct InterFreqCarrierFreqInfo_s { ...@@ -353,7 +353,7 @@ typedef struct InterFreqCarrierFreqInfo_s {
typedef struct IntraFreqNeighCellInfo_s { typedef struct IntraFreqNeighCellInfo_s {
long physCellId; long physCellId;
LTE_Q_OffsetRange_t q_OffsetCell; long q_OffsetCell;
}IntraFreqNeighCellInfo_t; }IntraFreqNeighCellInfo_t;
// eNB: ENB_APP -> RRC messages // eNB: ENB_APP -> RRC messages
......
...@@ -2360,20 +2360,19 @@ uint8_t do_SIB4(uint8_t Mod_id, ...@@ -2360,20 +2360,19 @@ uint8_t do_SIB4(uint8_t Mod_id,
memset(sib4_part,0,sizeof(struct LTE_SystemInformation_r8_IEs__sib_TypeAndInfo__Member)); memset(sib4_part,0,sizeof(struct LTE_SystemInformation_r8_IEs__sib_TypeAndInfo__Member));
sib4_part->present = LTE_SystemInformation_r8_IEs__sib_TypeAndInfo__Member_PR_sib4; sib4_part->present = LTE_SystemInformation_r8_IEs__sib_TypeAndInfo__Member_PR_sib4;
*sib4 = &sib4_part->choice.sib4; *sib4 = &sib4_part->choice.sib4;
(*sib4)->intraFreqNeighCellList = CALLOC(configuration->intraFreqNeighCellListCount,sizeof(struct LTE_IntraFreqNeighCellList));
LTE_IntraFreqNeighCellInfo_t *IntraFreqNeighCellInfo; LTE_IntraFreqNeighCellInfo_t *IntraFreqNeighCellInfo;
if(true == configuration->intraFreqNeighCellListPresent) { if(true == configuration->intraFreqNeighCellListPresent) {
for(int i = 0; i < configuration->intraFreqNeighCellListCount; i++){ for(int i = 0; i < configuration->intraFreqNeighCellListCount; i++){
IntraFreqNeighCellInfo = CALLOC(1,sizeof(struct LTE_IntraFreqNeighCellInfo)); IntraFreqNeighCellInfo = CALLOC(1,sizeof(struct LTE_IntraFreqNeighCellInfo));
IntraFreqNeighCellInfo->physCellId = configuration->intraFreqNeighCellList[CC_id][i].physCellId; IntraFreqNeighCellInfo->physCellId = configuration->intraFreqNeighCellList[CC_id][i].physCellId;
IntraFreqNeighCellInfo->q_OffsetCell = configuration->intraFreqNeighCellList[CC_id][i].q_OffsetCell; IntraFreqNeighCellInfo->q_OffsetCell = configuration->intraFreqNeighCellList[CC_id][i].q_OffsetCell;
ASN_SEQUENCE_ADD(&(*sib4)->intraFreqNeighCellList,IntraFreqNeighCellInfo); ASN_SEQUENCE_ADD(&(*sib4)->intraFreqNeighCellList->list,IntraFreqNeighCellInfo);
} }
} }
(*sib4)->intraFreqBlackCellList = NULL;
(*sib4)->csg_PhysCellIdRange = NULL;
(*sib4)->lateNonCriticalExtension = NULL; (*sib4)->lateNonCriticalExtension = NULL;
(*sib4)->ext1 = NULL; (*sib4)->ext1 = NULL;
......
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