[Epic-ID: ODUHIGH-516][Task-ID: ODUHIGH-532] RIC Subscription Delete Req/Rsp API...
[o-du/l2.git] / src / 5gnrmac / mac_msg_router.c
index 1ed8fb3..88c0689 100755 (executable)
@@ -187,6 +187,21 @@ void MacHdlDuappEvents(Pst *pst, Buffer *mBuf)
             break;
          }
 
+      case EVENT_MAC_STATISTICS_REQ:
+         {
+            /* Process Statistics Request */
+            unpackMacStatsReq(MacProcStatsReq, pst, mBuf);
+            break;
+         }
+      
+      case EVENT_MAC_STATS_DELETE_REQ:
+         {
+            /* Process Statistics Delete Request */
+            unpackMacStatsDeleteReq(MacProcStatsDeleteReq, pst, mBuf);
+            break;
+         }
+
+
       default:
          RG_FREE_MSG(mBuf);
          break;
@@ -337,6 +352,12 @@ void callFlowMacActvTsk(Pst *pst)
                case EVENT_MAC_SLICE_RECFG_REQ:
                   strcpy(message,"EVENT_MAC_SLICE_RECFG_REQ");
                   break;
+               case EVENT_MAC_STATISTICS_REQ:
+                  strcpy(message,"EVENT_MAC_STATISTICS_REQ");
+                  break;
+               case EVENT_MAC_STATS_DELETE_REQ:
+                  strcpy(message,"EVENT_MAC_STATS_DELETE_REQ");
+                  break;
                default:
                   strcpy(message,"Invalid Event");
                   break;
@@ -466,6 +487,21 @@ void callFlowMacActvTsk(Pst *pst)
                         strcpy(message,"EVENT_DL_REL_HQ_PROC");
                         break;
                      }
+                  case EVENT_STATISTICS_RSP_TO_MAC:
+                     {
+                        strcpy(message,"EVENT_STATISTICS_RSP_TO_MAC");
+                        break;
+                     }
+                  case EVENT_STATISTICS_IND_TO_MAC:
+                     {
+                        strcpy(message,"EVENT_STATISTICS_IND_TO_MAC");
+                        break;
+                     }
+                  case EVENT_STATISTICS_DELETE_RSP_TO_MAC:
+                     {
+                        strcpy(message,"EVENT_STATISTICS_DELETE_RSP_TO_MAC");
+                        break;
+                     }
                   default:
                      strcpy(message,"Invalid Event");
                      break;
@@ -610,6 +646,21 @@ uint8_t MacMessageRouter(Pst *pst, void *msg)
             MacSchReleaseDlHarqProc(pst, (SchRlsHqInfo *)msg);
             break;
          }
+      case EVENT_STATISTICS_RSP_TO_MAC:
+         {
+            MacProcSchStatsRsp(pst, (SchStatsRsp *)msg);
+            break;
+         }
+      case EVENT_STATISTICS_IND_TO_MAC:
+         {
+            MacProcSchStatsInd(pst, (SchStatsInd *)msg);
+            break;
+         }
+      case EVENT_STATISTICS_DELETE_RSP_TO_MAC:
+         {
+            MacProcSchStatsDeleteRsp(pst, (SchStatsDeleteRsp *)msg);
+            break;
+         }
       default:
          {
             return RFAILED;