// //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