mirror of
https://gitlab.eurecom.fr/oai/openairinterface5g.git
synced 2026-07-13 04:30:28 +00:00
Suppress unused argument warnings in PNF files
Signed-off-by: Rúben Soares Silva <rsilva@allbesmart.pt>
This commit is contained in:
@@ -214,6 +214,7 @@ void *pnf_p7_thread_start(void *ptr) {
|
||||
|
||||
int pnf_nr_param_request(nfapi_pnf_config_t *config, nfapi_nr_pnf_param_request_t *req)
|
||||
{
|
||||
UNUSED(req)
|
||||
printf("[PNF] pnf param request\n");
|
||||
nfapi_nr_pnf_param_response_t resp;
|
||||
memset(&resp, 0, sizeof(resp));
|
||||
@@ -264,6 +265,7 @@ int pnf_nr_param_request(nfapi_pnf_config_t *config, nfapi_nr_pnf_param_request_
|
||||
}
|
||||
|
||||
int pnf_param_request(nfapi_pnf_config_t *config, nfapi_pnf_param_request_t *req) {
|
||||
UNUSED(req)
|
||||
printf("[PNF] pnf param request\n");
|
||||
nfapi_pnf_param_response_t resp;
|
||||
memset(&resp, 0, sizeof(resp));
|
||||
@@ -464,6 +466,7 @@ void nfapi_nr_send_pnf_start_resp(nfapi_pnf_config_t *config, uint16_t phy_id) {
|
||||
}
|
||||
|
||||
int pnf_start_request(nfapi_pnf_config_t *config, nfapi_pnf_start_request_t *req) {
|
||||
UNUSED(req)
|
||||
printf("Received NFAPI_PNF_START_REQUEST\n");
|
||||
pnf_info *pnf = (pnf_info *)(config->user_data);
|
||||
// start all phys that have been configured
|
||||
@@ -482,6 +485,7 @@ int pnf_start_request(nfapi_pnf_config_t *config, nfapi_pnf_start_request_t *req
|
||||
}
|
||||
|
||||
int pnf_nr_start_request(nfapi_pnf_config_t *config, nfapi_nr_pnf_start_request_t *req) {
|
||||
UNUSED(req)
|
||||
printf("Received NFAPI_PNF_START_REQUEST\n");
|
||||
pnf_info *pnf = (pnf_info *)(config->user_data);
|
||||
// start all phys that have been configured
|
||||
@@ -500,6 +504,7 @@ int pnf_nr_start_request(nfapi_pnf_config_t *config, nfapi_nr_pnf_start_request_
|
||||
}
|
||||
|
||||
int pnf_stop_request(nfapi_pnf_config_t *config, nfapi_pnf_stop_request_t *req) {
|
||||
UNUSED(req)
|
||||
printf("[PNF] Received NFAPI_PNF_STOP_REQ\n");
|
||||
nfapi_pnf_stop_response_t resp;
|
||||
memset(&resp, 0, sizeof(resp));
|
||||
@@ -511,6 +516,7 @@ int pnf_stop_request(nfapi_pnf_config_t *config, nfapi_pnf_stop_request_t *req)
|
||||
}
|
||||
|
||||
int param_request(nfapi_pnf_config_t *config, nfapi_pnf_phy_config_t *phy, nfapi_param_request_t *req) {
|
||||
UNUSED(phy)
|
||||
printf("[PNF] Received NFAPI_PARAM_REQUEST phy_id:%d\n", req->header.phy_id);
|
||||
nfapi_param_response_t nfapi_resp;
|
||||
pnf_info *pnf = (pnf_info *)(config->user_data);
|
||||
@@ -533,6 +539,7 @@ int param_request(nfapi_pnf_config_t *config, nfapi_pnf_phy_config_t *phy, nfapi
|
||||
}
|
||||
|
||||
int nr_param_request(nfapi_pnf_config_t *config, nfapi_pnf_phy_config_t *phy, nfapi_nr_param_request_scf_t *req) {
|
||||
UNUSED(phy)
|
||||
printf("[PNF] Received NFAPI_PARAM_REQUEST phy_id:%d\n", req->header.phy_id);
|
||||
nfapi_nr_param_response_scf_t nfapi_resp;
|
||||
pnf_info *pnf = (pnf_info *)(config->user_data);
|
||||
@@ -752,6 +759,7 @@ int nr_param_request(nfapi_pnf_config_t *config, nfapi_pnf_phy_config_t *phy, nf
|
||||
|
||||
int config_request(nfapi_pnf_config_t *config, nfapi_pnf_phy_config_t *phy, nfapi_config_request_t *req)
|
||||
{
|
||||
UNUSED(phy)
|
||||
printf("[PNF] Received NFAPI_CONFIG_REQ phy_id:%d\n", req->header.phy_id);
|
||||
pnf_info *pnf = (pnf_info *)(config->user_data);
|
||||
uint8_t num_tlv = 0;
|
||||
@@ -953,6 +961,7 @@ int config_request(nfapi_pnf_config_t *config, nfapi_pnf_phy_config_t *phy, nfap
|
||||
|
||||
int nr_config_request(nfapi_pnf_config_t *config, nfapi_pnf_phy_config_t *phy, nfapi_nr_config_request_scf_t *req)
|
||||
{
|
||||
UNUSED(phy)
|
||||
printf("[PNF] Received NFAPI_CONFIG_REQ phy_id:%d\n", req->header.phy_id);
|
||||
pnf_info *pnf = (pnf_info *)(config->user_data);
|
||||
uint8_t num_tlv = 0;
|
||||
@@ -1091,6 +1100,7 @@ void pnf_nr_phy_deallocate_p7_vendor_ext(void *header)
|
||||
|
||||
|
||||
int pnf_phy_hi_dci0_req(nfapi_pnf_p7_config_t *pnf_p7, nfapi_hi_dci0_request_t *req) {
|
||||
UNUSED(pnf_p7)
|
||||
if (req->hi_dci0_request_body.number_of_dci == 0 && req->hi_dci0_request_body.number_of_hi == 0)
|
||||
LOG_D(PHY,"[PNF] HI_DCI0_REQUEST SFN/SF:%05d dci:%d hi:%d\n", NFAPI_SFNSF2DEC(req->sfn_sf), req->hi_dci0_request_body.number_of_dci, req->hi_dci0_request_body.number_of_hi);
|
||||
|
||||
@@ -1119,7 +1129,7 @@ int pnf_phy_hi_dci0_req(nfapi_pnf_p7_config_t *pnf_p7, nfapi_hi_dci0_request_t *
|
||||
|
||||
|
||||
int pnf_phy_dl_config_req(nfapi_pnf_p7_config_t *pnf_p7, nfapi_dl_config_request_t *req) {
|
||||
|
||||
UNUSED(pnf_p7)
|
||||
if (RC.eNB == 0) {
|
||||
return -2;
|
||||
}
|
||||
@@ -1210,6 +1220,7 @@ int pnf_phy_dl_config_req(nfapi_pnf_p7_config_t *pnf_p7, nfapi_dl_config_request
|
||||
|
||||
|
||||
int pnf_phy_tx_req(nfapi_pnf_p7_config_t *pnf_p7, nfapi_tx_request_t *req) {
|
||||
UNUSED(pnf_p7)
|
||||
uint16_t sfn = NFAPI_SFNSF2SFN(req->sfn_sf);
|
||||
uint16_t sf = NFAPI_SFNSF2SF(req->sfn_sf);
|
||||
|
||||
@@ -1235,6 +1246,7 @@ int pnf_phy_tx_req(nfapi_pnf_p7_config_t *pnf_p7, nfapi_tx_request_t *req) {
|
||||
}
|
||||
|
||||
int pnf_phy_ul_config_req(nfapi_pnf_p7_config_t *pnf_p7, nfapi_ul_config_request_t *req) {
|
||||
UNUSED(pnf_p7)
|
||||
if (0)LOG_D(PHY,"[PNF] UL_CONFIG_REQ %s() sfn_sf:%d pdu:%d rach_prach_frequency_resources:%d srs_present:%u\n",
|
||||
__FUNCTION__,
|
||||
NFAPI_SFNSF2DEC(req->sfn_sf),
|
||||
@@ -1285,11 +1297,14 @@ int pnf_phy_ul_config_req(nfapi_pnf_p7_config_t *pnf_p7, nfapi_ul_config_request
|
||||
}
|
||||
|
||||
int pnf_phy_lbt_dl_config_req(nfapi_pnf_p7_config_t *config, nfapi_lbt_dl_config_request_t *req) {
|
||||
UNUSED(config)
|
||||
UNUSED(req)
|
||||
//printf("[PNF] lbt dl config request\n");
|
||||
return 0;
|
||||
}
|
||||
|
||||
int pnf_phy_ue_release_req(nfapi_pnf_p7_config_t* config, nfapi_ue_release_request_t* req) {
|
||||
UNUSED(config)
|
||||
if (req->ue_release_request_body.number_of_TLVs==0)
|
||||
return -1;
|
||||
|
||||
@@ -1300,6 +1315,7 @@ int pnf_phy_ue_release_req(nfapi_pnf_p7_config_t* config, nfapi_ue_release_reque
|
||||
|
||||
int pnf_phy_vendor_ext(nfapi_pnf_p7_config_t *config, void *msg)
|
||||
{
|
||||
UNUSED(config)
|
||||
if (((nfapi_p7_message_header_t *)msg)->message_id == P7_VENDOR_EXT_REQ) {
|
||||
// vendor_ext_p7_req* req = (vendor_ext_p7_req*)msg;
|
||||
// printf("[PNF] vendor request (1:%d 2:%d)\n", req->dummy1, req->dummy2);
|
||||
@@ -1312,6 +1328,7 @@ int pnf_phy_vendor_ext(nfapi_pnf_p7_config_t *config, void *msg)
|
||||
|
||||
int pnf_nr_phy_vendor_ext(nfapi_pnf_p7_config_t *config, void *msg)
|
||||
{
|
||||
UNUSED(config)
|
||||
if (((nfapi_nr_p7_message_header_t *)msg)->message_id == P7_VENDOR_EXT_REQ) {
|
||||
// vendor_ext_p7_req* req = (vendor_ext_p7_req*)msg;
|
||||
// printf("[PNF] vendor request (1:%d 2:%d)\n", req->dummy1, req->dummy2);
|
||||
@@ -1323,6 +1340,7 @@ int pnf_nr_phy_vendor_ext(nfapi_pnf_p7_config_t *config, void *msg)
|
||||
}
|
||||
|
||||
int pnf_phy_pack_p7_vendor_extension(void *header, uint8_t **ppWritePackedMsg, uint8_t *end, nfapi_p7_codec_config_t *codex) {
|
||||
UNUSED(codex)
|
||||
//NFAPI_TRACE(NFAPI_TRACE_INFO, "%s\n", __FUNCTION__);
|
||||
if(((nfapi_p7_message_header_t*)header)->message_id == P7_VENDOR_EXT_IND) {
|
||||
vendor_ext_p7_ind *ind = (vendor_ext_p7_ind *)(header);
|
||||
@@ -1338,6 +1356,7 @@ int pnf_phy_pack_p7_vendor_extension(void *header, uint8_t **ppWritePackedMsg, u
|
||||
|
||||
int pnf_phy_unpack_p7_vendor_extension(void *header, uint8_t **ppReadPackedMessage, uint8_t *end, nfapi_p7_codec_config_t *codec)
|
||||
{
|
||||
UNUSED(codec)
|
||||
if (((nfapi_p7_message_header_t *)header)->message_id == P7_VENDOR_EXT_REQ) {
|
||||
// NFAPI_TRACE(NFAPI_TRACE_INFO, "%s\n", __FUNCTION__);
|
||||
vendor_ext_p7_req *req = (vendor_ext_p7_req *)(header);
|
||||
@@ -1353,6 +1372,7 @@ int pnf_phy_unpack_p7_vendor_extension(void *header, uint8_t **ppReadPackedMessa
|
||||
|
||||
int pnf_nr_phy_pack_p7_vendor_extension(void *header, uint8_t **ppWritePackedMsg, uint8_t *end, nfapi_p7_codec_config_t *codex)
|
||||
{
|
||||
UNUSED(codex)
|
||||
// NFAPI_TRACE(NFAPI_TRACE_INFO, "%s\n", __FUNCTION__);
|
||||
if (((nfapi_nr_p7_message_header_t *)header)->message_id == P7_VENDOR_EXT_IND) {
|
||||
vendor_ext_p7_ind *ind = (vendor_ext_p7_ind *)(header);
|
||||
@@ -1368,6 +1388,7 @@ int pnf_nr_phy_pack_p7_vendor_extension(void *header, uint8_t **ppWritePackedMsg
|
||||
|
||||
int pnf_nr_phy_unpack_p7_vendor_extension(void *header, uint8_t **ppReadPackedMessage, uint8_t *end, nfapi_p7_codec_config_t *codec)
|
||||
{
|
||||
UNUSED(codec)
|
||||
if (((nfapi_nr_p7_message_header_t *)header)->message_id == P7_VENDOR_EXT_REQ) {
|
||||
// NFAPI_TRACE(NFAPI_TRACE_INFO, "%s\n", __FUNCTION__);
|
||||
vendor_ext_p7_req *req = (vendor_ext_p7_req *)(header);
|
||||
@@ -1382,6 +1403,7 @@ int pnf_nr_phy_unpack_p7_vendor_extension(void *header, uint8_t **ppReadPackedMe
|
||||
}
|
||||
|
||||
int pnf_phy_unpack_vendor_extension_tlv(nfapi_tl_t *tl, uint8_t **ppReadPackedMessage, uint8_t *end, void **ve, nfapi_p7_codec_config_t *config) {
|
||||
UNUSED(config)
|
||||
//NFAPI_TRACE(NFAPI_TRACE_INFO, "pnf_phy_unpack_vendor_extension_tlv\n");
|
||||
switch(tl->tag) {
|
||||
case VENDOR_EXT_TLV_1_TAG:
|
||||
@@ -1399,8 +1421,10 @@ int pnf_phy_unpack_vendor_extension_tlv(nfapi_tl_t *tl, uint8_t **ppReadPackedMe
|
||||
|
||||
int pnf_phy_pack_vendor_extention_tlv(void *ve, uint8_t **ppWritePackedMsg, uint8_t *end, nfapi_p7_codec_config_t *config) {
|
||||
//printf("%s\n", __FUNCTION__);
|
||||
(void)ve;
|
||||
(void)ppWritePackedMsg;
|
||||
UNUSED(ve)
|
||||
UNUSED(ppWritePackedMsg)
|
||||
UNUSED(end)
|
||||
UNUSED(config)
|
||||
return -1;
|
||||
}
|
||||
|
||||
@@ -1410,6 +1434,7 @@ int pnf_nr_phy_unpack_vendor_extension_tlv(nfapi_tl_t *tl,
|
||||
void **ve,
|
||||
nfapi_p7_codec_config_t *config)
|
||||
{
|
||||
UNUSED(config)
|
||||
// NFAPI_TRACE(NFAPI_TRACE_INFO, "pnf_phy_unpack_vendor_extension_tlv\n");
|
||||
switch (tl->tag) {
|
||||
case VENDOR_EXT_TLV_1_TAG:
|
||||
@@ -1428,11 +1453,14 @@ int pnf_nr_phy_unpack_vendor_extension_tlv(nfapi_tl_t *tl,
|
||||
int pnf_nr_phy_pack_vendor_extention_tlv(void *ve, uint8_t **ppWritePackedMsg, uint8_t *end, nfapi_p7_codec_config_t *config)
|
||||
{
|
||||
// printf("%s\n", __FUNCTION__);
|
||||
(void)ve;
|
||||
(void)ppWritePackedMsg;
|
||||
UNUSED(ve)
|
||||
UNUSED(ppWritePackedMsg)
|
||||
UNUSED(end)
|
||||
UNUSED(config)
|
||||
return -1;
|
||||
}
|
||||
int pnf_sim_unpack_vendor_extension_tlv(nfapi_tl_t *tl, uint8_t **ppReadPackedMessage, uint8_t *end, void **ve, nfapi_p4_p5_codec_config_t *config) {
|
||||
UNUSED(config)
|
||||
//NFAPI_TRACE(NFAPI_TRACE_INFO, "pnf_sim_unpack_vendor_extension_tlv\n");
|
||||
switch(tl->tag) {
|
||||
case VENDOR_EXT_TLV_2_TAG:
|
||||
@@ -1454,6 +1482,7 @@ int pnf_nr_sim_unpack_vendor_extension_tlv(nfapi_tl_t *tl,
|
||||
void **ve,
|
||||
nfapi_p4_p5_codec_config_t *config)
|
||||
{
|
||||
UNUSED(config)
|
||||
// NFAPI_TRACE(NFAPI_TRACE_INFO, "pnf_sim_unpack_vendor_extension_tlv\n");
|
||||
switch (tl->tag) {
|
||||
case VENDOR_EXT_TLV_2_TAG:
|
||||
@@ -1471,8 +1500,10 @@ int pnf_nr_sim_unpack_vendor_extension_tlv(nfapi_tl_t *tl,
|
||||
|
||||
int pnf_sim_pack_vendor_extention_tlv(void *ve, uint8_t **ppWritePackedMsg, uint8_t *end, nfapi_p4_p5_codec_config_t *config) {
|
||||
//printf("%s\n", __FUNCTION__);
|
||||
(void)ve;
|
||||
(void)ppWritePackedMsg;
|
||||
UNUSED(ve)
|
||||
UNUSED(ppWritePackedMsg)
|
||||
UNUSED(end)
|
||||
UNUSED(config)
|
||||
|
||||
return -1;
|
||||
}
|
||||
@@ -1480,8 +1511,10 @@ int pnf_sim_pack_vendor_extention_tlv(void *ve, uint8_t **ppWritePackedMsg, uint
|
||||
int pnf_nr_sim_pack_vendor_extention_tlv(void *ve, uint8_t **ppWritePackedMsg, uint8_t *end, nfapi_p4_p5_codec_config_t *config)
|
||||
{
|
||||
// printf("%s\n", __FUNCTION__);
|
||||
(void)ve;
|
||||
(void)ppWritePackedMsg;
|
||||
UNUSED(ve)
|
||||
UNUSED(ppWritePackedMsg)
|
||||
UNUSED(end)
|
||||
UNUSED(config)
|
||||
|
||||
return -1;
|
||||
}
|
||||
@@ -1771,6 +1804,7 @@ void stop_nr_nfapi_pnf()
|
||||
static bool has_sent_stop_ind = false;
|
||||
int nr_stop_request(nfapi_pnf_config_t *config, nfapi_pnf_phy_config_t *phy, nfapi_nr_stop_request_scf_t *req)
|
||||
{
|
||||
UNUSED(phy)
|
||||
if (has_sent_stop_ind) {
|
||||
// STOP.indication already sent, nothing to do
|
||||
return 0;
|
||||
@@ -1792,6 +1826,7 @@ int nr_stop_request(nfapi_pnf_config_t *config, nfapi_pnf_phy_config_t *phy, nfa
|
||||
}
|
||||
|
||||
int measurement_request(nfapi_pnf_config_t *config, nfapi_pnf_phy_config_t *phy, nfapi_measurement_request_t *req) {
|
||||
UNUSED(phy)
|
||||
nfapi_measurement_response_t resp;
|
||||
memset(&resp, 0, sizeof(resp));
|
||||
resp.header.message_id = NFAPI_MEASUREMENT_RESPONSE;
|
||||
@@ -1802,6 +1837,7 @@ int measurement_request(nfapi_pnf_config_t *config, nfapi_pnf_phy_config_t *phy,
|
||||
}
|
||||
|
||||
int rssi_request(nfapi_pnf_config_t *config, nfapi_pnf_phy_config_t *phy, nfapi_rssi_request_t *req) {
|
||||
UNUSED(phy)
|
||||
nfapi_rssi_response_t resp;
|
||||
memset(&resp, 0, sizeof(resp));
|
||||
resp.header.message_id = NFAPI_RSSI_RESPONSE;
|
||||
@@ -1821,6 +1857,7 @@ int rssi_request(nfapi_pnf_config_t *config, nfapi_pnf_phy_config_t *phy, nfapi_
|
||||
}
|
||||
|
||||
int cell_search_request(nfapi_pnf_config_t *config, nfapi_pnf_phy_config_t *phy, nfapi_cell_search_request_t *req) {
|
||||
UNUSED(phy)
|
||||
nfapi_cell_search_response_t resp;
|
||||
memset(&resp, 0, sizeof(resp));
|
||||
resp.header.message_id = NFAPI_CELL_SEARCH_RESPONSE;
|
||||
@@ -1872,6 +1909,7 @@ int cell_search_request(nfapi_pnf_config_t *config, nfapi_pnf_phy_config_t *phy,
|
||||
}
|
||||
|
||||
int broadcast_detect_request(nfapi_pnf_config_t *config, nfapi_pnf_phy_config_t *phy, nfapi_broadcast_detect_request_t *req) {
|
||||
UNUSED(phy)
|
||||
nfapi_broadcast_detect_response_t resp;
|
||||
memset(&resp, 0, sizeof(resp));
|
||||
resp.header.message_id = NFAPI_BROADCAST_DETECT_RESPONSE;
|
||||
@@ -1908,6 +1946,7 @@ int broadcast_detect_request(nfapi_pnf_config_t *config, nfapi_pnf_phy_config_t
|
||||
}
|
||||
|
||||
int system_information_schedule_request(nfapi_pnf_config_t *config, nfapi_pnf_phy_config_t *phy, nfapi_system_information_schedule_request_t *req) {
|
||||
UNUSED(phy)
|
||||
nfapi_system_information_schedule_response_t resp;
|
||||
memset(&resp, 0, sizeof(resp));
|
||||
resp.header.message_id = NFAPI_SYSTEM_INFORMATION_SCHEDULE_RESPONSE;
|
||||
@@ -1928,6 +1967,7 @@ int system_information_schedule_request(nfapi_pnf_config_t *config, nfapi_pnf_ph
|
||||
}
|
||||
|
||||
int system_information_request(nfapi_pnf_config_t *config, nfapi_pnf_phy_config_t *phy, nfapi_system_information_request_t *req) {
|
||||
UNUSED(phy)
|
||||
nfapi_system_information_response_t resp;
|
||||
memset(&resp, 0, sizeof(resp));
|
||||
resp.header.message_id = NFAPI_SYSTEM_INFORMATION_RESPONSE;
|
||||
@@ -1969,6 +2009,7 @@ int system_information_request(nfapi_pnf_config_t *config, nfapi_pnf_phy_config_
|
||||
}
|
||||
|
||||
int nmm_stop_request(nfapi_pnf_config_t *config, nfapi_pnf_phy_config_t *phy, nfapi_nmm_stop_request_t *req) {
|
||||
UNUSED(phy)
|
||||
nfapi_nmm_stop_response_t resp;
|
||||
memset(&resp, 0, sizeof(resp));
|
||||
resp.header.message_id = NFAPI_NMM_STOP_RESPONSE;
|
||||
@@ -2050,6 +2091,7 @@ void pnf_nr_sim_deallocate_p4_p5_vendor_ext(void *header)
|
||||
|
||||
int pnf_sim_pack_p4_p5_vendor_extension(void *header, uint8_t **ppWritePackedMsg, uint8_t *end, nfapi_p4_p5_codec_config_t *config)
|
||||
{
|
||||
UNUSED(config)
|
||||
// NFAPI_TRACE(NFAPI_TRACE_INFO, "%s\n", __FUNCTION__);
|
||||
if (((nfapi_p4_p5_message_header_t *)header)->message_id == P5_VENDOR_EXT_RSP) {
|
||||
vendor_ext_p5_rsp *rsp = (vendor_ext_p5_rsp *)(header);
|
||||
@@ -2064,6 +2106,7 @@ int pnf_nr_sim_pack_p4_p5_vendor_extension(void *header,
|
||||
uint8_t *end,
|
||||
nfapi_p4_p5_codec_config_t *config)
|
||||
{
|
||||
UNUSED(config)
|
||||
// NFAPI_TRACE(NFAPI_TRACE_INFO, "%s\n", __FUNCTION__);
|
||||
if (((nfapi_nr_p4_p5_message_header_t *)header)->message_id == P5_VENDOR_EXT_RSP) {
|
||||
vendor_ext_p5_rsp *rsp = (vendor_ext_p5_rsp *)(header);
|
||||
@@ -2078,6 +2121,7 @@ int pnf_sim_unpack_p4_p5_vendor_extension(void *header,
|
||||
uint8_t *end,
|
||||
nfapi_p4_p5_codec_config_t *codec)
|
||||
{
|
||||
UNUSED(codec)
|
||||
// NFAPI_TRACE(NFAPI_TRACE_INFO, "%s\n", __FUNCTION__);
|
||||
if (((nfapi_p4_p5_message_header_t *)header)->message_id == P5_VENDOR_EXT_REQ) {
|
||||
vendor_ext_p5_req *req = (vendor_ext_p5_req *)(header);
|
||||
@@ -2093,6 +2137,7 @@ int pnf_nr_sim_unpack_p4_p5_vendor_extension(void *header,
|
||||
uint8_t *end,
|
||||
nfapi_p4_p5_codec_config_t *codec)
|
||||
{
|
||||
UNUSED(codec)
|
||||
// NFAPI_TRACE(NFAPI_TRACE_INFO, "%s\n", __FUNCTION__);
|
||||
if (((nfapi_nr_p4_p5_message_header_t *)header)->message_id == P5_VENDOR_EXT_REQ) {
|
||||
vendor_ext_p5_req *req = (vendor_ext_p5_req *)(header);
|
||||
|
||||
@@ -470,6 +470,7 @@ int pnf_p7_send_message(pnf_p7_t* pnf_p7, uint8_t* msg, uint32_t len)
|
||||
|
||||
int pnf_p7_pack_and_send_p7_message(pnf_p7_t* pnf_p7, nfapi_p7_message_header_t* header, uint32_t msg_len)
|
||||
{
|
||||
UNUSED(msg_len)
|
||||
header->m_segment_sequence = NFAPI_P7_SET_MSS(0, 0, pnf_p7->sequence_number);
|
||||
|
||||
// Need to guard against different threads calling the encode function at the same time
|
||||
@@ -671,6 +672,7 @@ int nr_pnf_p7_get_msgs(pnf_p7_t* pnf_p7,
|
||||
nfapi_nr_ul_dci_request_t* ret_ul_dci,
|
||||
nfapi_nr_tx_data_request_t* ret_tx_data)
|
||||
{
|
||||
UNUSED(phy_id)
|
||||
if (pthread_mutex_lock(&(pnf_p7->mutex)) != 0) {
|
||||
NFAPI_TRACE(NFAPI_TRACE_INFO, "failed to lock mutex\n");
|
||||
return -1;
|
||||
@@ -794,6 +796,7 @@ int nr_pnf_p7_get_msgs(pnf_p7_t* pnf_p7,
|
||||
|
||||
int pnf_p7_subframe_ind(pnf_p7_t* pnf_p7, uint16_t phy_id, uint16_t sfn_sf)
|
||||
{
|
||||
UNUSED(phy_id)
|
||||
// We could either send an event to the p7 thread have have it run the
|
||||
// subframe or we could handle it here and lock access to the subframe
|
||||
// buffers. If we do it on the p7 thread then we run the risk of blocking
|
||||
|
||||
Reference in New Issue
Block a user