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
JIRA ID:[ODUHIGH-259, ODUHIGH-260]
[o-du/l2.git]
/
src
/
5gnrmac
/
mac_msg_hdl.c
diff --git
a/src/5gnrmac/mac_msg_hdl.c
b/src/5gnrmac/mac_msg_hdl.c
index
8658ac6
..
aef583b
100644
(file)
--- a/
src/5gnrmac/mac_msg_hdl.c
+++ b/
src/5gnrmac/mac_msg_hdl.c
@@
-415,54
+415,62
@@
uint8_t sendSchedRptToRlc(DlSchedInfo dlInfo, SlotIndInfo slotInfo)
*
* @details
*
*
* @details
*
- * Function : MacProcCellStart
Req
+ * Function : MacProcCellStart
*
* Functionality:
* Handles cell start reuqest from DU APP
*
* @params[in] Post structure pointer
*
* Functionality:
* Handles cell start reuqest from DU APP
*
* @params[in] Post structure pointer
- * Cell
Start Request info pointer
+ * Cell
Id
* @return ROK - success
* RFAILED - failure
*
* ****************************************************************/
* @return ROK - success
* RFAILED - failure
*
* ****************************************************************/
-uint8_t MacProcCellStart
Req(Pst *pst, MacCellStartInfo *cellStartInfo
)
+uint8_t MacProcCellStart
(Pst *pst, OduCellId *cellId
)
{
DU_LOG("\nMAC : Handling cell start request");
{
DU_LOG("\nMAC : Handling cell start request");
- sendToLowerMac(START_REQUEST, 0, cellStartInfo);
+ gSlotCount = 0;
+ sendToLowerMac(START_REQUEST, 0, cellId);
- MAC_FREE_SHRABL_BUF(pst->region, pst->pool, cell
StartInfo
, \
- sizeof(
MacCellStartInfo
));
+ MAC_FREE_SHRABL_BUF(pst->region, pst->pool, cell
Id
, \
+ sizeof(
OduCellId
));
return ROK;
}
/*******************************************************************
*
return ROK;
}
/*******************************************************************
*
- * @brief Handles cell stop
request
from DU APP
+ * @brief Handles cell stop from DU APP
*
* @details
*
*
* @details
*
- * Function : MacProcCellSt
artReq
+ * Function : MacProcCellSt
op
*
* Functionality:
*
* Functionality:
- * Handles cell stop
request
from DU APP
+ * Handles cell stop from DU APP
*
* @params[in] Post structure pointer
*
* @params[in] Post structure pointer
- *
Mac Cell stop information
+ *
Cell Id
* @return ROK - success
* RFAILED - failure
*
* ****************************************************************/
* @return ROK - success
* RFAILED - failure
*
* ****************************************************************/
-uint8_t MacProcCellStop
Req(Pst *pst, MacCellStopInfo *cellStopInfo
)
+uint8_t MacProcCellStop
(Pst *pst, OduCellId *cellId
)
{
#ifdef INTEL_FAPI
{
#ifdef INTEL_FAPI
+ uint16_t cellIdx;
+ SlotIndInfo slotInfo;
+
DU_LOG("\nMAC : Sending cell stop request to Lower Mac");
DU_LOG("\nMAC : Sending cell stop request to Lower Mac");
- sendToLowerMac(FAPI_STOP_REQUEST, 0, cellStopInfo);
+ GET_CELL_IDX(cellId->cellId, cellIdx);
+ slotInfo.cellId = cellId->cellId;
+ slotInfo.sfn = macCb.macCell[cellIdx]->currTime.sfn;
+ slotInfo.slot = macCb.macCell[cellIdx]->currTime.slot;
+ sendToLowerMac(FAPI_STOP_REQUEST, 0, &slotInfo);
#endif
#endif
- MAC_FREE_SHRABL_BUF(pst->region, pst->pool, cell
StopInfo
, \
- sizeof(
MacCellStopInfo
));
+ MAC_FREE_SHRABL_BUF(pst->region, pst->pool, cell
Id
, \
+ sizeof(
OduCellId
));
return ROK;
}
return ROK;
}