O-RAN E Maintenance Release contribution for ODULOW
[o-du/phy.git] / fapi_5g / source / api / fapi2mac / p5 / nr5g_fapi_proc_ul_iq_samples_resp.c
index 94ebb4a..fba54b4 100644 (file)
@@ -54,21 +54,16 @@ uint8_t nr5g_fapi_ul_iq_samples_response(
     }
 
     if (NULL == p_iapi_resp) {
-        NR5G_FAPI_LOG(ERROR_LOG, ("[UL_IQ_SAMPLES.response] Invalid iapi "
+        NR5G_FAPI_LOG(ERROR_LOG, ("[UL_IQ_SAMPLES.response] Invalid IAPI "
                 "ULIQ_Samples response message"));
         return FAILURE;
     }
 
     phy_id = p_iapi_resp->sSFN_Slot.nCarrierIdx;
     p_phy_instance = &p_phy_ctx->phy_instance[phy_id];
-    if (p_phy_instance->phy_id != phy_id) {
-        NR5G_FAPI_LOG(ERROR_LOG, (" [UL_IQ_SAMPLES.response] Invalid "
-                "phy instance"));
-        return FAILURE;
-    }
     // Create FAPI message header
     if (p_phy_instance->state == FAPI_STATE_IDLE) {
-        nr5g_fapi_message_header_per_phy(phy_id);
+        nr5g_fapi_message_header_per_phy(phy_id, false);
     }
 
     p_list_elem =
@@ -86,9 +81,9 @@ uint8_t nr5g_fapi_ul_iq_samples_response(
         (uint16_t) sizeof(fapi_vendor_ext_ul_iq_samples_res_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);
 
-    NR5G_FAPI_LOG(INFO_LOG, ("[UL_IQ_SAMPLES.response]%d]", phy_id));
+    NR5G_FAPI_LOG(INFO_LOG, ("[UL_IQ_SAMPLES.response][%d]", phy_id));
 
     return SUCCESS;
 }