* INTC Contribution to the O-RAN F Release for O-DU Low
[o-du/phy.git] / fapi_5g / source / api / fapi2mac / p5 / nr5g_fapi_proc_start_resp.c
index ad0b291..2e7e399 100644 (file)
@@ -1,6 +1,6 @@
 /******************************************************************************
 *
-*   Copyright (c) 2019 Intel.
+*   Copyright (c) 2021 Intel.
 *
 *   Licensed under the Apache License, Version 2.0 (the "License");
 *   you may not use this file except in compliance with the License.
@@ -23,7 +23,6 @@
  **/
 
 #include "nr5g_fapi_framework.h"
-#include "gnb_l1_l2_api.h"
 #include "nr5g_fapi_fapi2mac_api.h"
 #include "nr5g_fapi_fapi2mac_p5_proc.h"
 
@@ -43,7 +42,9 @@ uint8_t nr5g_fapi_start_resp(
     PSTARTRESPONSEStruct p_iapi_resp)
 {
     uint8_t phy_id;
+#ifdef DEBUG_MODE
     fapi_vendor_ext_start_response_t *p_fapi_resp;
+#endif
     fapi_error_ind_t *p_fapi_error_ind;
     p_fapi_api_queue_elem_t p_list_elem;
     p_nr5g_fapi_phy_instance_t p_phy_instance = NULL;
@@ -90,7 +91,7 @@ uint8_t nr5g_fapi_start_resp(
             (uint16_t) sizeof(fapi_vendor_ext_start_response_t);
 
         /* Add element to send list */
-        nr5g_fapi_fapi2mac_add_api_to_list(phy_id, p_list_elem);
+        nr5g_fapi_fapi2mac_add_api_to_list(phy_id, p_list_elem, false);
         p_stats->fapi_stats.fapi_vext_start_res++;
         NR5G_FAPI_LOG(INFO_LOG, ("[START.response][%d]", phy_id));
 #endif
@@ -114,7 +115,7 @@ uint8_t nr5g_fapi_start_resp(
         p_fapi_error_ind->error_code = p_iapi_resp->nStatus;
 
         /* Add element to send list */
-        nr5g_fapi_fapi2mac_add_api_to_list(phy_id, p_list_elem);
+        nr5g_fapi_fapi2mac_add_api_to_list(phy_id, p_list_elem, false);
         p_stats->fapi_stats.fapi_error_ind++;
         NR5G_FAPI_LOG(INFO_LOG, ("[ERROR.Indication][%d]", phy_id));
     } else {