Modify setting of new_sdu_p->data->inst to avoid unexpected setting in case of UE.
This commit is contained in:
@@ -800,8 +800,10 @@ pdcp_data_ind(
|
|||||||
#endif
|
#endif
|
||||||
} else {
|
} else {
|
||||||
((pdcp_data_ind_header_t*) new_sdu_p->data)->rb_id = rb_id + (ctxt_pP->module_id * maxDRB);
|
((pdcp_data_ind_header_t*) new_sdu_p->data)->rb_id = rb_id + (ctxt_pP->module_id * maxDRB);
|
||||||
|
((pdcp_data_ind_header_t*) new_sdu_p->data)->inst = ctxt_pP->module_id;
|
||||||
}
|
}
|
||||||
((pdcp_data_ind_header_t*) new_sdu_p->data)->inst = ctxt_pP->module_id;
|
// new_sdu_p->data->inst is set again in UE case so move to above.
|
||||||
|
//((pdcp_data_ind_header_t*) new_sdu_p->data)->inst = ctxt_pP->module_id;
|
||||||
|
|
||||||
#ifdef DEBUG_PDCP_FIFO_FLUSH_SDU
|
#ifdef DEBUG_PDCP_FIFO_FLUSH_SDU
|
||||||
static uint32_t pdcp_inst = 0;
|
static uint32_t pdcp_inst = 0;
|
||||||
|
|||||||
@@ -168,7 +168,11 @@ int pdcp_fifo_flush_sdus(const protocol_ctxt_t* const ctxt_pP)
|
|||||||
((pdcp_data_ind_header_t*) sdu_p->data)->inst,
|
((pdcp_data_ind_header_t*) sdu_p->data)->inst,
|
||||||
((pdcp_data_ind_header_t *) sdu_p->data)->data_size);
|
((pdcp_data_ind_header_t *) sdu_p->data)->data_size);
|
||||||
#else
|
#else
|
||||||
((pdcp_data_ind_header_t *)(sdu_p->data))->inst = 0;
|
// value of sdu_p->data->inst is set in pdcp_data_ind
|
||||||
|
// it's necessary to set 1 in case of UE with S1.
|
||||||
|
if (ctxt_pP->enb_flag){
|
||||||
|
((pdcp_data_ind_header_t *)(sdu_p->data))->inst = 0;
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(LINK_ENB_PDCP_TO_GTPV1U)
|
#if defined(LINK_ENB_PDCP_TO_GTPV1U)
|
||||||
|
|||||||
Reference in New Issue
Block a user