Commit 2e1d2fcf authored by Ming-Hong Hsu's avatar Ming-Hong Hsu Committed by hsum

add for pnf_handle_tx_data_request [t4-1~t4-5]

parent 937e4b17
......@@ -6042,6 +6042,7 @@ static uint8_t unpack_tx_data_request(uint8_t **ppReadPackedMsg, uint8_t *end, v
return 0;
}
LOG_I(NFAPI_PNF,"[t4-3] unpack_tx_data_pdu_list_value\n");
}
return 1;
......@@ -8541,7 +8542,11 @@ int nfapi_nr_p7_message_unpack(void *pMessageBuf, uint32_t messageBufLen, void *
break;
case NFAPI_NR_PHY_MSG_TYPE_TX_DATA_REQUEST:
if (check_nr_unpack_length(NFAPI_NR_PHY_MSG_TYPE_TX_DATA_REQUEST, unpackedBufLen))
{
LOG_I(NFAPI_PNF,"[t4-2] check_nr_unpack_length\n");
result = unpack_tx_data_request(&pReadPackedMessage, end, pMessageHeader, config);
LOG_I(NFAPI_PNF,"[t4-4] unpack_tx_data_request\n");
}
break;
case NFAPI_NR_PHY_MSG_TYPE_UL_DCI_REQUEST:
if (check_nr_unpack_length(NFAPI_NR_PHY_MSG_TYPE_UL_DCI_REQUEST, unpackedBufLen))
......
......@@ -1964,7 +1964,7 @@ void pnf_handle_tx_data_request(void* pRecvMsg, int recvMsgLen, pnf_p7_t* pnf_p7
//NFAPI_TRACE(NFAPI_TRACE_INFO, "TX.req Received\n");
nfapi_nr_tx_data_request_t* req = allocate_nfapi_tx_data_request(pnf_p7);
LOG_I(NFAPI_PNF,"[t4-1] Address of req: %p, size: %d\n", (void*)req, sizeof(nfapi_nr_tx_data_request_t));
if(req == NULL)
{
NFAPI_TRACE(NFAPI_TRACE_INFO, "failed to allocate nfapi_tx_request structure\n");
......@@ -2053,6 +2053,7 @@ void pnf_handle_tx_request(void* pRecvMsg, int recvMsgLen, pnf_p7_t* pnf_p7)
}
int unpack_result = nfapi_p7_message_unpack(pRecvMsg, recvMsgLen, req, sizeof(nfapi_tx_request_t), &pnf_p7->_public.codec_config);
LOG_I(PHY,"[t4-5] nfapi_nr_p7_message_unpack, req->SFN,req->Slot, %d/%d\n",req->SFN,req->Slot);
if(unpack_result == 0)
{
if(pthread_mutex_lock(&(pnf_p7->mutex)) != 0)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment