Commit 506df7c3 authored by Swetank Srivastava's avatar Swetank Srivastava Committed by Vijay C

Portman Changes and crash fix due to LOG

parent e7403759
...@@ -64,10 +64,10 @@ int create_tasks(uint32_t enb_nb) { ...@@ -64,10 +64,10 @@ int create_tasks(uint32_t enb_nb) {
{ {
rc = itti_create_task(TASK_SS_PORTMAN, ss_eNB_port_man_eNB_task, NULL); rc = itti_create_task(TASK_SS_PORTMAN, ss_eNB_port_man_eNB_task, NULL);
AssertFatal(rc >= 0, "Create task for SS manager failed\n"); AssertFatal(rc >= 0, "Create task for SS manager failed\n");
#if 0
rc = itti_create_task(TASK_SS_PORTMAN_ACP, ss_eNB_port_man_acp_task, NULL); rc = itti_create_task(TASK_SS_PORTMAN_ACP, ss_eNB_port_man_acp_task, NULL);
AssertFatal(rc >= 0, "Create task for SS manager failed\n"); AssertFatal(rc >= 0, "Create task for SS manager failed\n");
#endif
rc = itti_create_task(TASK_SYS, ss_eNB_sys_task, NULL); rc = itti_create_task(TASK_SYS, ss_eNB_sys_task, NULL);
AssertFatal(rc >= 0, "Create task for SS failed\n"); AssertFatal(rc >= 0, "Create task for SS failed\n");
......
...@@ -323,11 +323,11 @@ rlc_op_status_t rlc_data_req (const protocol_ctxt_t *const ctxt_pP, ...@@ -323,11 +323,11 @@ rlc_op_status_t rlc_data_req (const protocol_ctxt_t *const ctxt_pP,
if (MBMS_flagP == MBMS_FLAG_YES) if (MBMS_flagP == MBMS_FLAG_YES)
rnti = 0xfffd; rnti = 0xfffd;
/*
LOG_D(RLC, "%s rnti %d srb_flag %d rb_id %d mui %d confirm %d sdu_size %d MBMS_flag %d frame % subframe %d\n", LOG_D(RLC, "%s rnti %d srb_flag %d rb_id %d mui %d confirm %d sdu_size %d MBMS_flag %d frame % subframe %d\n",
__FUNCTION__, rnti, srb_flagP, (int)rb_idP, muiP, confirmP, sdu_sizeP, __FUNCTION__, rnti, srb_flagP, (int)rb_idP, muiP, confirmP, sdu_sizeP,
MBMS_flagP,ctxt_pP->frame,ctxt_pP->subframe); MBMS_flagP,ctxt_pP->frame,ctxt_pP->subframe);
*/
if (ctxt_pP->enb_flag) if (ctxt_pP->enb_flag)
T(T_ENB_RLC_DL, T_INT(ctxt_pP->module_id), T_INT(ctxt_pP->rntiMaybeUEid), T_INT(rb_idP), T_INT(sdu_sizeP)); T(T_ENB_RLC_DL, T_INT(ctxt_pP->module_id), T_INT(ctxt_pP->rntiMaybeUEid), T_INT(rb_idP), T_INT(sdu_sizeP));
......
...@@ -484,7 +484,7 @@ void *ss_port_man_process_itti_msg(void *notUsed) ...@@ -484,7 +484,7 @@ void *ss_port_man_process_itti_msg(void *notUsed)
MessageDef *received_msg = NULL; MessageDef *received_msg = NULL;
int result; int result;
LOG_D(ENB_SS_PORTMAN, "Entry in fxn:%s\n", __FUNCTION__); LOG_D(ENB_SS_PORTMAN, "Entry in fxn:%s\n", __FUNCTION__);
itti_receive_msg(TASK_SS_PORTMAN, &received_msg); itti_poll_msg(TASK_SS_PORTMAN, &received_msg);
if (received_msg != NULL) if (received_msg != NULL)
{ {
LOG_A(ENB_SS_PORTMAN, "Received a message id : %d \n", LOG_A(ENB_SS_PORTMAN, "Received a message id : %d \n",
......
...@@ -2520,10 +2520,10 @@ void *ss_eNB_sys_process_itti_msg(void *notUsed) ...@@ -2520,10 +2520,10 @@ void *ss_eNB_sys_process_itti_msg(void *notUsed)
{ {
LOG_A(ENB_SS_SYS_TASK, "Signalling main thread for cell config done indication\n"); LOG_A(ENB_SS_SYS_TASK, "Signalling main thread for cell config done indication\n");
send_sys_cnf(SS_context.sys_cnf.resType, send_sys_cnf(SS_context.sys_cnf.resType,
SS_context.sys_cnf.resVal, SS_context.sys_cnf.resVal,
SS_context.sys_cnf.cnfType, SS_context.sys_cnf.cnfType,
(void *)SS_context.sys_cnf.msg_buffer); (void *)SS_context.sys_cnf.msg_buffer);
sys_confirm_done_indication(); sys_confirm_done_indication();
} }
break; break;
} }
...@@ -2562,12 +2562,12 @@ void *ss_eNB_sys_process_itti_msg(void *notUsed) ...@@ -2562,12 +2562,12 @@ void *ss_eNB_sys_process_itti_msg(void *notUsed)
LOG_A(ENB_SS_SYS_TASK, "Not hanled SYS_PORT message received \n"); LOG_A(ENB_SS_SYS_TASK, "Not hanled SYS_PORT message received \n");
} }
if (SS_SYS_PORT_MSG_IND(received_msg).req)
free(SS_SYS_PORT_MSG_IND(received_msg).req);
if (SS_SYS_PORT_MSG_IND(received_msg).req->Common.ControlInfo.CnfFlag == false) if (SS_SYS_PORT_MSG_IND(received_msg).req->Common.ControlInfo.CnfFlag == false)
sys_confirm_done_indication(); sys_confirm_done_indication();
if (SS_SYS_PORT_MSG_IND(received_msg).req)
free(SS_SYS_PORT_MSG_IND(received_msg).req);
LOG_A(ENB_SS_SYS_TASK, "Signalling main thread for cell config done indication\n"); LOG_A(ENB_SS_SYS_TASK, "Signalling main thread for cell config done indication\n");
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment