From 18edbc0f156244e4b149d0d19c71484f6ac3141d Mon Sep 17 00:00:00 2001 From: Robert Schmidt Date: Wed, 3 Dec 2025 12:31:53 +0100 Subject: [PATCH] Fix UL throughput counter in periodic PNF logs Function pointer send_p7_msg() returns a bool, so correctly set the type, and interpret it correspondingly. --- nfapi/open-nFAPI/pnf/src/pnf_p7_interface.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nfapi/open-nFAPI/pnf/src/pnf_p7_interface.c b/nfapi/open-nFAPI/pnf/src/pnf_p7_interface.c index af02ef7a4e..d2006170f0 100644 --- a/nfapi/open-nFAPI/pnf/src/pnf_p7_interface.c +++ b/nfapi/open-nFAPI/pnf/src/pnf_p7_interface.c @@ -268,8 +268,8 @@ int nfapi_pnf_p7_nr_rx_data_ind(nfapi_pnf_p7_config_t* config, nfapi_nr_rx_data_ pnf_p7_t* _this = (pnf_p7_t*)(config); AssertFatal(_this->_public.send_p7_msg, "Function pointer must be configured|"); - int ret = _this->_public.send_p7_msg(_this, (nfapi_nr_p7_message_header_t*)ind, sizeof(nfapi_nr_rx_data_indication_t)); - if (ret == 0) { + bool ret = _this->_public.send_p7_msg(_this, (nfapi_nr_p7_message_header_t*)ind, sizeof(nfapi_nr_rx_data_indication_t)); + if (ret) { for (int i = 0; i < ind->number_of_pdus; ++i) _this->nr_stats.ul.bytes += ind->pdu_list[i].pdu_length; }