NFAPI_TRACE(NFAPI_TRACE_NOTE,"[%d] %s is late %d (with wrap)\n",current_sfn_slot_dec,name,recv_sfn_slot_dec);
}
else
{
// ok
//NFAPI_TRACE(NFAPI_TRACE_NOTE, "[%d] %s is in window %d (with wrap)\n", current_sfn_sf_dec, name, recv_sfn_sf_dec);
in_window=1;
}
}
else
{
// too late
NFAPI_TRACE(NFAPI_TRACE_NOTE,"[%d] %s is in late %d (delta:%d)\n",current_sfn_slot_dec,name,recv_sfn_slot_dec,(current_sfn_slot_dec-recv_sfn_slot_dec));
//NFAPI_TRACE(NFAPI_TRACE_NOTE, "[%d] %s is in window %d\n", current_sfn_sf_dec, name, recv_sfn_sf_dec);
in_window=1;
}
else
{
// too far in the future
NFAPI_TRACE(NFAPI_TRACE_NOTE,"[%d] %s is out of window %d (delta:%d) [max:%d]\n",current_sfn_slot_dec,name,recv_sfn_slot_dec,(recv_sfn_slot_dec-current_sfn_slot_dec),timing_window);
NFAPI_TRACE(NFAPI_TRACE_NOTE, "%s() is_p7_request_in_window()=TRUE buffer_index occupied - free it first sfn_sf:%d buffer_index:%d\n", __FUNCTION__, NFAPI_SFNSF2DEC(req->sfn_sf), buffer_index);
NFAPI_TRACE(NFAPI_TRACE_NOTE,"%s() is_nr_p7_request_in_window()=TRUE buffer_index occupied - free it first sfn_slot:%d buffer_index:%d\n",__FUNCTION__,NFAPI_SFNSLOT2DEC(req->SFN,req->Slot),buffer_index);
//NFAPI_TRACE(NFAPI_TRACE_NOTE, "[%d] Freeing dl_config_req at index %d (%d/%d)",
NFAPI_TRACE(NFAPI_TRACE_INFO,"%s() TX_DATA_REQUEST Request is outside of window REQ:SFN_SLOT:%d CURR:SFN_SLOT:%d\n",__FUNCTION__,NFAPI_SFNSLOT2DEC(req->SFN,req->Slot),NFAPI_SFNSLOT2DEC(pnf_p7->sfn,pnf_p7->slot));
deallocate_nfapi_tx_data_request(req,pnf_p7);
if(pnf_p7->_public.timing_info_mode_aperiodic)
{
pnf_p7->timing_info_aperiodic_send=1;
}
pnf_p7->stats.tx_data_late++;
}
if(pthread_mutex_unlock(&(pnf_p7->mutex))!=0)
{
NFAPI_TRACE(NFAPI_TRACE_INFO,"failed to unlock mutex\n");