Fix: Check for node type in L2_interface only when not UE

This commit is contained in:
Robert Schmidt
2019-03-26 13:37:14 +01:00
parent 024007716a
commit 896ea4a72a
+2
View File
@@ -108,11 +108,13 @@ rrc_data_req(
ctxt_pP->instance,
message_p);
LOG_I(RRC,"sent RRC_DCCH_DATA_REQ to TASK_PDCP_ENB\n");
#ifndef UETARGET
/* Hack: only trigger PDCP if in CU, otherwise it is triggered by RU threads
* Ideally, PDCP would not neet to be triggered like this but react to ITTI
* messages automatically */
if (NODE_IS_CU(RC.rrc[ctxt_pP->module_id]->node_type))
pdcp_run(ctxt_pP);
#endif
return TRUE; // TODO should be changed to a CNF message later, currently RRC lite does not used the returned value anyway.