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
[Epic-ID: ODUHIGH-488][Task-ID: ODUHIGH-501] WG8 Alignment | Ue reset req and rsp
[o-du/l2.git]
/
src
/
5gnrmac
/
mac_cfg_hdl.c
diff --git
a/src/5gnrmac/mac_cfg_hdl.c
b/src/5gnrmac/mac_cfg_hdl.c
index
69591c4
..
1af9b0b
100644
(file)
--- a/
src/5gnrmac/mac_cfg_hdl.c
+++ b/
src/5gnrmac/mac_cfg_hdl.c
@@
-500,7
+500,7
@@
void fapiMacConfigRsp(uint16_t cellId)
* RFAILED - failure
*
* ****************************************************************/
* RFAILED - failure
*
* ****************************************************************/
-uint8_t MacSendCellDeleteRsp(C
ellDeleteStatus result
, uint8_t cellId)
+uint8_t MacSendCellDeleteRsp(C
auseOfResult status
, uint8_t cellId)
{
MacCellDeleteRsp *deleteRsp=NULLP;
Pst rspPst;
{
MacCellDeleteRsp *deleteRsp=NULLP;
Pst rspPst;
@@
-516,7
+516,7
@@
uint8_t MacSendCellDeleteRsp(CellDeleteStatus result, uint8_t cellId)
memset(deleteRsp, 0, sizeof(MacCellDeleteRsp));
deleteRsp->cellId = cellId;
memset(deleteRsp, 0, sizeof(MacCellDeleteRsp));
deleteRsp->cellId = cellId;
- deleteRsp->
result = result
;
+ deleteRsp->
status = status
;
/* Fill Post structure and send CELL delete response*/
memset(&rspPst, 0, sizeof(Pst));
/* Fill Post structure and send CELL delete response*/
memset(&rspPst, 0, sizeof(Pst));
@@
-545,7
+545,7
@@
uint8_t MacProcSchCellDeleteRsp(Pst *pst, SchCellDeleteRsp *schCellDelRsp)
{
uint8_t ret = ROK, sliceIdx = 0, plmnIdx = 0;
uint16_t cellIdx=0;
{
uint8_t ret = ROK, sliceIdx = 0, plmnIdx = 0;
uint16_t cellIdx=0;
- C
ellDeleteStatus status
;
+ C
auseOfResult cause
;
#ifdef CALL_FLOW_DEBUG_LOG
DU_LOG("\nCall Flow: ENTSCH -> ENTMAC : EVENT_CELL_DELETE_RSP_TO_MAC\n");
#ifdef CALL_FLOW_DEBUG_LOG
DU_LOG("\nCall Flow: ENTSCH -> ENTMAC : EVENT_CELL_DELETE_RSP_TO_MAC\n");
@@
-562,7
+562,7
@@
uint8_t MacProcSchCellDeleteRsp(Pst *pst, SchCellDeleteRsp *schCellDelRsp)
{
if(macCb.macCell[cellIdx]->cellId == schCellDelRsp->cellId)
{
{
if(macCb.macCell[cellIdx]->cellId == schCellDelRsp->cellId)
{
-
status = SUCCESSFUL_RSP
;
+
cause = SUCCESSFUL
;
for(plmnIdx = 0; plmnIdx < MAX_PLMN; plmnIdx++)
{
if(macCb.macCell[cellIdx]->macCellCfg.cellCfg.plmnInfoList[plmnIdx].snssai)
for(plmnIdx = 0; plmnIdx < MAX_PLMN; plmnIdx++)
{
if(macCb.macCell[cellIdx]->macCellCfg.cellCfg.plmnInfoList[plmnIdx].snssai)
@@
-582,24
+582,24
@@
uint8_t MacProcSchCellDeleteRsp(Pst *pst, SchCellDeleteRsp *schCellDelRsp)
else
{
DU_LOG("ERROR --> MAC : MacProcSchCellDeleteRsp(): CellId[%d] does not exists", schCellDelRsp->cellId);
else
{
DU_LOG("ERROR --> MAC : MacProcSchCellDeleteRsp(): CellId[%d] does not exists", schCellDelRsp->cellId);
-
status = CELL_
ID_INVALID;
+
cause = CELL
ID_INVALID;
ret = RFAILED;
}
}
else
{
DU_LOG("ERROR --> MAC : MacProcSchCellDeleteRsp(): CellId[%d] does not exists", schCellDelRsp->cellId);
ret = RFAILED;
}
}
else
{
DU_LOG("ERROR --> MAC : MacProcSchCellDeleteRsp(): CellId[%d] does not exists", schCellDelRsp->cellId);
-
status = CELL_
ID_INVALID;
+
cause = CELL
ID_INVALID;
ret = RFAILED;
}
}
else
{
DU_LOG("ERROR --> MAC : MacProcSchCellDeleteRsp(): CellId[%d] does not exists", schCellDelRsp->cellId);
ret = RFAILED;
}
}
else
{
DU_LOG("ERROR --> MAC : MacProcSchCellDeleteRsp(): CellId[%d] does not exists", schCellDelRsp->cellId);
-
status = CELL_
ID_INVALID;
+
cause = CELL
ID_INVALID;
ret = RFAILED;
}
ret = RFAILED;
}
- if(MacSendCellDeleteRsp(
status
, schCellDelRsp->cellId) != ROK)
+ if(MacSendCellDeleteRsp(
cause
, schCellDelRsp->cellId) != ROK)
{
DU_LOG("\nERROR --> MAC: MacProcSchCellDeleteRsp(): Failed to send CELL delete response");
ret = RFAILED;
{
DU_LOG("\nERROR --> MAC: MacProcSchCellDeleteRsp(): Failed to send CELL delete response");
ret = RFAILED;
@@
-693,7
+693,7
@@
uint8_t MacProcCellDeleteReq(Pst *pst, MacCellDeleteReq *cellDelete)
if(ret == RFAILED)
{
DU_LOG("\nERROR --> MAC : MacProcCellDeleteReq(): Sending failure response to DU");
if(ret == RFAILED)
{
DU_LOG("\nERROR --> MAC : MacProcCellDeleteReq(): Sending failure response to DU");
- if(MacSendCellDeleteRsp(CELL
_
ID_INVALID, cellDelete->cellId) != ROK)
+ if(MacSendCellDeleteRsp(CELLID_INVALID, cellDelete->cellId) != ROK)
{
DU_LOG("\nERROR --> MAC : MacProcCellDeleteReq(): failed to send cell delete rsp for cellID[%d]",\
cellDelete->cellId);
{
DU_LOG("\nERROR --> MAC : MacProcCellDeleteReq(): failed to send cell delete rsp for cellID[%d]",\
cellDelete->cellId);