Replaced old SSI function with new macros jira id - ODUHIGH-212
[o-du/l2.git] / src / 5gnrmac / lwr_mac_upr_inf.c
index f250b51..13b41a0 100644 (file)
@@ -117,16 +117,16 @@ uint8_t packRachInd(Pst *pst, RachInd *rachInd)
 uint8_t packLcSlotInd (Pst *pst, SlotIndInfo *slotInd)
 {
    Buffer *mBuf = NULLP;
-   if (SGetMsg(pst->region, pst->pool, &mBuf) != ROK)
+   if (ODU_GET_MSG(pst->region, pst->pool, &mBuf) != ROK)
    {
       return RFAILED;
    }
 
    /* pack SFN and slot value */
-   CMCHKPK(SPkU16,slotInd->sfn, mBuf);
-   CMCHKPK(SPkU16,slotInd->slot, mBuf);
+   CMCHKPK(oduUnpackUInt16,slotInd->sfn, mBuf);
+   CMCHKPK(oduUnpackUInt16,slotInd->slot, mBuf);
 
-   return SPstTsk(pst,mBuf);
+   return ODU_POST_TASK(pst,mBuf);
 }
 
 /*******************************************************************
@@ -179,6 +179,33 @@ uint8_t packStopInd(Pst *pst, uint16_t cellId)
    }
 }
 
+/*******************************************************************
+ *
+ * @brief Packs and Sends UCI Ind to MAC
+ *
+ * @details
+ *
+ *    Function : packMacUciInd
+ *
+ *    Functionality:
+ *         Packs and Sends Uci Ind to MAC
+ *
+ * @params[in] Post structure pointer
+ * @return ROK     - success
+ *         RFAILED - failure
+ *
+ * ****************************************************************/
+uint8_t packMacUciInd(Pst *pst, UciInd *uciInd)
+{
+   if((pst->selector == ODU_SELECTOR_LC) || (pst->selector == ODU_SELECTOR_LWLC))
+   {
+      return ROK;
+   }
+   else
+   {
+      return RFAILED;
+   }
+}
 /**********************************************************************
   End of file
  **********************************************************************/