Code Review
/
o-du
/
l2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Merge "[Epic-ID: ODUHIGH-462][Task-ID: ODUHIGH-472] Implementation of drx timer ...
[o-du/l2.git]
/
src
/
du_app
/
du_sys_info_hdl.c
diff --git
a/src/du_app/du_sys_info_hdl.c
b/src/du_app/du_sys_info_hdl.c
index
6644079
..
b0ece73
100644
(file)
--- a/
src/du_app/du_sys_info_hdl.c
+++ b/
src/du_app/du_sys_info_hdl.c
@@
-203,12
+203,14
@@
uint8_t BuildMibPdu()
break;
}
break;
}
+#ifdef DEBUG_ASN_PRINT
/* Print encoded buffer */
for(int i=0; i< encBufSize; i++)
{
printf("%x\t",encBuf[i]);
}
printf("\n");
/* Print encoded buffer */
for(int i=0; i< encBufSize; i++)
{
printf("%x\t",encBuf[i]);
}
printf("\n");
+#endif
ret = ROK;
break;
ret = ROK;
break;
@@
-297,12
+299,14
@@
uint8_t BuildMibMsg()
break;
}
break;
}
+#ifdef DEBUG_ASN_PRINT
/* Print encoded buffer */
for(int i=0; i< encBufSize; i++)
{
printf("%x\t",encBuf[i]);
}
printf("\n");
/* Print encoded buffer */
for(int i=0; i< encBufSize; i++)
{
printf("%x\t",encBuf[i]);
}
printf("\n");
+#endif
/* Free allocated memory */
ret = ROK;
/* Free allocated memory */
ret = ROK;
@@
-333,7
+337,6
@@
uint8_t BuildMibMsg()
uint8_t BuildCellIdentity(CellIdentity_t *cellIdentity)
{
cellIdentity->size = ODU_VALUE_FIVE*sizeof(uint8_t);
uint8_t BuildCellIdentity(CellIdentity_t *cellIdentity)
{
cellIdentity->size = ODU_VALUE_FIVE*sizeof(uint8_t);
- cellIdentity->bits_unused = ODU_VALUE_FOUR;
DU_ALLOC(cellIdentity->buf, cellIdentity->size);
if(!cellIdentity->buf)
DU_ALLOC(cellIdentity->buf, cellIdentity->size);
if(!cellIdentity->buf)
@@
-341,8
+344,7
@@
uint8_t BuildCellIdentity(CellIdentity_t *cellIdentity)
DU_LOG("\nERROR --> DU APP: CellIdentity memory allocation failure");
return RFAILED;
}
DU_LOG("\nERROR --> DU APP: CellIdentity memory allocation failure");
return RFAILED;
}
- memset(cellIdentity->buf, 0, cellIdentity->size);
- cellIdentity->buf[4] = duCfgParam.sib1Params.cellIdentity;
+ fillBitString(cellIdentity, ODU_VALUE_FOUR, ODU_VALUE_FIVE, duCfgParam.sib1Params.cellIdentity);
return ROK;
}
return ROK;
}
@@
-2463,11
+2465,13
@@
uint8_t BuildSib1Msg()
"unknown");
break;
}
"unknown");
break;
}
+#ifdef DEBUG_ASN_PRINT
for(int i=0; i< encBufSize; i++)
{
printf("%x\t",encBuf[i]);
}
printf("\n");
for(int i=0; i< encBufSize; i++)
{
printf("%x\t",encBuf[i]);
}
printf("\n");
+#endif
ret = ROK;
break;
ret = ROK;
break;
@@
-2865,7
+2869,7
@@
void FreePuschCfgCommon(struct BWP_UplinkCommon__pusch_ConfigCommon *puschCfg)
/* P0 Nominal with grant */
DU_FREE(setup->p0_NominalWithGrant, sizeof(long));
/* P0 Nominal with grant */
DU_FREE(setup->p0_NominalWithGrant, sizeof(long));
- DU_
ALLOC
(puschCfg->choice.setup, sizeof(PUSCH_ConfigCommon_t));
+ DU_
FREE
(puschCfg->choice.setup, sizeof(PUSCH_ConfigCommon_t));
}
}/* BuildPuschCfgCommon */
}
}/* BuildPuschCfgCommon */