NFAPI_TRACE(NFAPI_TRACE_INFO,"[PNF] %s(frame:%u subframe:%u) SFN/SF(TX):%u - PROBLEM with pnf_p7_subframe_ind()\n",__FUNCTION__,sfn,sf,sfn_sf_tx,NFAPI_SFNSF2DEC(sfn_sf_tx));
//LOG_D(PHY, "sfn/sf:%d%d proc[rx:%d%d] L1_proc[instance_cnt_rxtx:%d rx:%d%d] About to wake rxtx thread\n\n", sfn, sf, proc->frame_rx, proc->subframe_rx, L1_proc->instance_cnt_rxtx, L1_proc->frame_rx, L1_proc->subframe_rx);
//LOG_I(PHY, "sfn/sf:%d%d proc[rx:%d%d] rx:%d%d] About to wake rxtx thread\n\n", sfn, slot, proc->frame_rx, proc->slot_rx, L1_proc->frame_rx, L1_proc->slot_rx);
// //NFAPI_TRACE(NFAPI_TRACE_NOTE, "[%d] %s is in window %d\n", current_sfn_slot_dec, name, recv_sfn_slot_dec);
// in_window = 1;
// }
// //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_slot_dec,name,recv_sfn_slot_dec);
}
}
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);
elseif(current_sfn_slot_dec+NFAPI_MAX_SFNSLOTDEC<=recv_sfn_slot_dec+timing_window){//checking for wrap
in_window=1;
NFAPI_TRACE(NFAPI_TRACE_NOTE,"[%d] %s is in window %d\n",current_sfn_slot_dec,name,recv_sfn_slot_dec);
}
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,"[%d] %s is out of window %d (delta:%d) [max:%d]\n",current_sfn_slot_dec,name,recv_sfn_slot_dec,(current_sfn_slot_dec-recv_sfn_slot_dec),timing_window);
NFAPI_TRACE(NFAPI_TRACE_INFO,"%s() LARGE SFN/SF DELTA between PNF and VNF delta:%d VNF:%d PNF:%d\n\n\n\n\n\n\n\n\n",__FUNCTION__,vnf_pnf_sfnslot_delta,NFAPI_SFNSLOT2DEC(vnf_p7->p7_connections[0].sfn,vnf_p7->p7_connections[0].slot),NFAPI_SFNSLOT2DEC(ind.last_sfn,ind.last_slot));
// Panos: Careful here!!! Modification of the original nfapi-code