Commit d2c42c9b authored by Swetank Srivastava's avatar Swetank Srivastava

changes for gNB sync issue and cleanup

parent 6cc2d6fb
...@@ -1621,7 +1621,6 @@ void pnf_handle_dl_tti_request(void* pRecvMsg, int recvMsgLen, pnf_p7_t* pnf_p7) ...@@ -1621,7 +1621,6 @@ void pnf_handle_dl_tti_request(void* pRecvMsg, int recvMsgLen, pnf_p7_t* pnf_p7)
struct timespec t; struct timespec t;
clock_gettime(CLOCK_MONOTONIC, &t); clock_gettime(CLOCK_MONOTONIC, &t);
NFAPI_TRACE(NFAPI_TRACE_INFO, "swetank: fxn:%s sfn:%d slot:%d\n", __FUNCTION__, req->SFN, req->Slot);
NFAPI_TRACE(NFAPI_TRACE_INFO,"%s() %ld.%09ld POPULATE DL_TTI_REQ current tx sfn/slot:%d.%d p7 msg sfn/slot: %d.%d buffer_index:%d\n", __FUNCTION__, t.tv_sec, t.tv_nsec, pnf_p7->sfn,pnf_p7->slot, req->SFN, req->Slot, buffer_index); NFAPI_TRACE(NFAPI_TRACE_INFO,"%s() %ld.%09ld POPULATE DL_TTI_REQ current tx sfn/slot:%d.%d p7 msg sfn/slot: %d.%d buffer_index:%d\n", __FUNCTION__, t.tv_sec, t.tv_nsec, pnf_p7->sfn,pnf_p7->slot, req->SFN, req->Slot, buffer_index);
...@@ -1783,7 +1782,6 @@ void pnf_handle_ul_tti_request(void* pRecvMsg, int recvMsgLen, pnf_p7_t* pnf_p7) ...@@ -1783,7 +1782,6 @@ void pnf_handle_ul_tti_request(void* pRecvMsg, int recvMsgLen, pnf_p7_t* pnf_p7)
if(is_nr_p7_request_in_window(req->SFN,req->Slot, "ul_tti_request", pnf_p7)) if(is_nr_p7_request_in_window(req->SFN,req->Slot, "ul_tti_request", pnf_p7))
{ {
NFAPI_TRACE(NFAPI_TRACE_INFO, "swetank: fxn:%s sfn:%d slot:%d\n", __FUNCTION__, req->SFN, req->Slot);
uint32_t sfn_slot_dec = NFAPI_SFNSLOT2DEC(req->SFN,req->Slot); uint32_t sfn_slot_dec = NFAPI_SFNSLOT2DEC(req->SFN,req->Slot);
uint8_t buffer_index = (sfn_slot_dec % 20); uint8_t buffer_index = (sfn_slot_dec % 20);
...@@ -1932,7 +1930,6 @@ void pnf_handle_ul_dci_request(void* pRecvMsg, int recvMsgLen, pnf_p7_t* pnf_p7) ...@@ -1932,7 +1930,6 @@ void pnf_handle_ul_dci_request(void* pRecvMsg, int recvMsgLen, pnf_p7_t* pnf_p7)
if(is_nr_p7_request_in_window(req->SFN,req->Slot,"ul_dci_request", pnf_p7)) if(is_nr_p7_request_in_window(req->SFN,req->Slot,"ul_dci_request", pnf_p7))
{ {
NFAPI_TRACE(NFAPI_TRACE_INFO, "swetank: fxn:%s sfn:%d slot:%d\n", __FUNCTION__, req->SFN, req->Slot);
uint32_t sfn_slot_dec = NFAPI_SFNSLOT2DEC(req->SFN,req->Slot); uint32_t sfn_slot_dec = NFAPI_SFNSLOT2DEC(req->SFN,req->Slot);
uint8_t buffer_index = sfn_slot_dec % 20; uint8_t buffer_index = sfn_slot_dec % 20;
...@@ -2072,7 +2069,6 @@ void pnf_handle_tx_data_request(void* pRecvMsg, int recvMsgLen, pnf_p7_t* pnf_p7 ...@@ -2072,7 +2069,6 @@ void pnf_handle_tx_data_request(void* pRecvMsg, int recvMsgLen, pnf_p7_t* pnf_p7
if(is_nr_p7_request_in_window(req->SFN, req->Slot,"tx_request", pnf_p7)) if(is_nr_p7_request_in_window(req->SFN, req->Slot,"tx_request", pnf_p7))
{ {
NFAPI_TRACE(NFAPI_TRACE_INFO, "swetank: fxn:%s sfn:%d slot:%d\n", __FUNCTION__, req->SFN, req->Slot);
uint32_t sfn_slot_dec = NFAPI_SFNSLOT2DEC(req->SFN,req->Slot); uint32_t sfn_slot_dec = NFAPI_SFNSLOT2DEC(req->SFN,req->Slot);
uint8_t buffer_index = sfn_slot_dec % 20; uint8_t buffer_index = sfn_slot_dec % 20;
......
...@@ -169,7 +169,7 @@ void nr_schedule_pucch(gNB_MAC_INST *nrmac, ...@@ -169,7 +169,7 @@ void nr_schedule_pucch(gNB_MAC_INST *nrmac,
if (!curr_pucch->active) if (!curr_pucch->active)
continue; continue;
LOG_A(NR_MAC,"swetank: fxn:%s frameP:%d curr_pucch->frame:%d slotP:%d curr_pucch->ul_slot:%d \n", LOG_A(NR_MAC,"fxn:%s frameP:%d curr_pucch->frame:%d slotP:%d curr_pucch->ul_slot:%d \n",
__FUNCTION__, __FUNCTION__,
frameP, frameP,
curr_pucch->frame, curr_pucch->frame,
...@@ -1253,7 +1253,7 @@ void nr_sr_reporting(gNB_MAC_INST *nrmac, frame_t SFN, sub_frame_t slot) ...@@ -1253,7 +1253,7 @@ void nr_sr_reporting(gNB_MAC_INST *nrmac, frame_t SFN, sub_frame_t slot)
else if (curr_pucch->active) { else if (curr_pucch->active) {
AssertFatal(1==0, "This shouldn't happen! curr_pucch frame.slot %d.%d not matching with SR function frame.slot %d.%d\n", AssertFatal(1==0, "This shouldn't happen! curr_pucch frame.slot %d.%d not matching with SR function frame.slot %d.%d\n",
curr_pucch->frame, curr_pucch->ul_slot, SFN, slot); curr_pucch->frame, curr_pucch->ul_slot, SFN, slot);
LOG_A(NR_MAC,"swetank: fxn:%d frameP:%d curr_pucch->frame:%d slotP:%d curr_pucch->ul_slot:%d \n", LOG_A(NR_MAC,"fxn:%d frameP:%d curr_pucch->frame:%d slotP:%d curr_pucch->ul_slot:%d \n",
__FUNCTION__, __FUNCTION__,
SFN, SFN,
curr_pucch->frame, curr_pucch->frame,
......
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