From f8bc7e385dc747907b9840223c1c4d60f323bcae Mon Sep 17 00:00:00 2001 From: Navid Nikaein <navid.nikaein@eurecom.fr> Date: Thu, 7 May 2015 17:20:09 +0000 Subject: [PATCH] fix seg fault for the eMBMS in pdcp git-svn-id: http://svn.eurecom.fr/openair4G/trunk@7389 818b1a75-f10b-46b9-bf7c-635c3b92a50f --- openair2/LAYER2/PDCP_v10.1.0/pdcp.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/openair2/LAYER2/PDCP_v10.1.0/pdcp.c b/openair2/LAYER2/PDCP_v10.1.0/pdcp.c index 8f7b306ade..0a130c74a5 100755 --- a/openair2/LAYER2/PDCP_v10.1.0/pdcp.c +++ b/openair2/LAYER2/PDCP_v10.1.0/pdcp.c @@ -688,7 +688,7 @@ pdcp_data_ind( unsigned int dst_instance; int ctime; - if (pdcp_p->rlc_mode == RLC_MODE_AM ) { + if ((pdcp_p->rlc_mode == RLC_MODE_AM)&&(MBMS_flagP==0) ) { pdcp_p->last_submitted_pdcp_rx_sn = sequence_number; } @@ -699,11 +699,12 @@ pdcp_data_ind( #endif ctime = oai_emulation.info.time_ms; // avg current simulation time in ms : we may get the exact time through OCG? - LOG_D(PDCP, - PROTOCOL_PDCP_CTXT_FMT"Check received buffer : (dst %d)\n", - PROTOCOL_PDCP_CTXT_ARGS(ctxt_pP, pdcp_p), - ctxt_pP->instance); - + if (MBMS_flagP == 0){ + LOG_D(PDCP, + PROTOCOL_PDCP_CTXT_FMT"Check received buffer : (dst %d)\n", + PROTOCOL_PDCP_CTXT_ARGS(ctxt_pP, pdcp_p), + ctxt_pP->instance); + } if (otg_rx_pkt( ctxt_pP->instance, ctime, -- GitLab