Commit 19c59279 authored by Vijay Chadachan's avatar Vijay Chadachan Committed by Vijay C

Fixed the TTCN connection issue and MAC changes for crash

parent 506df7c3
...@@ -762,7 +762,7 @@ void UL_indication(UL_IND_t *UL_info, void *proc) { ...@@ -762,7 +762,7 @@ void UL_indication(UL_IND_t *UL_info, void *proc) {
if (NFAPI_MODE != NFAPI_MODE_PNF) { if (NFAPI_MODE != NFAPI_MODE_PNF) {
/* MultiCell: Condition modified for Multiple CC */ /* MultiCell: Condition modified for Multiple CC */
if (ifi->CC_mask < ((1<<RC.nb_CC[module_id])-1)) { if (ifi->CC_mask < ((1<<RC.nb_mac_CC[module_id])-1)) {
ifi->current_frame = UL_info->frame; ifi->current_frame = UL_info->frame;
ifi->current_subframe = UL_info->subframe; ifi->current_subframe = UL_info->subframe;
} else { } else {
...@@ -792,11 +792,11 @@ void UL_indication(UL_IND_t *UL_info, void *proc) { ...@@ -792,11 +792,11 @@ void UL_indication(UL_IND_t *UL_info, void *proc) {
if (NFAPI_MODE != NFAPI_MODE_PNF) { if (NFAPI_MODE != NFAPI_MODE_PNF) {
/* MultiCell: Condition modified for Multiple CC */ /* MultiCell: Condition modified for Multiple CC */
if (ifi->CC_mask == ((1<<RC.nb_CC[module_id])-1)) { if (ifi->CC_mask == ((1<<RC.nb_mac_CC[module_id])-1)) {
eNB_dlsch_ulsch_scheduler(module_id, eNB_dlsch_ulsch_scheduler(module_id,
(UL_info->frame+((UL_info->subframe>(9-sf_ahead))?1:0)) % 1024, (UL_info->frame+((UL_info->subframe>(9-sf_ahead))?1:0)) % 1024,
(UL_info->subframe+sf_ahead)%10); (UL_info->subframe+sf_ahead)%10);
for (int CC_Id=0; CC_Id<RC.nb_CC[module_id]; CC_Id++) { for (int CC_Id=0; CC_Id<RC.nb_mac_CC[module_id]; CC_Id++) {
ifi->CC_mask = 0; ifi->CC_mask = 0;
sched_info->module_id = module_id; sched_info->module_id = module_id;
sched_info->CC_id = CC_Id; sched_info->CC_id = CC_Id;
......
...@@ -569,13 +569,14 @@ void *ss_eNB_port_man_acp_task(void *arg) ...@@ -569,13 +569,14 @@ void *ss_eNB_port_man_acp_task(void *arg)
bool ss_eNB_port_man_handle_enquiryTiming(struct SYSTEM_CTRL_REQ *sys_req) bool ss_eNB_port_man_handle_enquiryTiming(struct SYSTEM_CTRL_REQ *sys_req)
{ {
struct SYSTEM_CTRL_CNF cnf; struct SYSTEM_CTRL_CNF cnf;
const size_t msgSize = 16 * 1024; const size_t size = 16 * 1024;
unsigned char *buffer = (unsigned char *)acpMalloc(msgSize); unsigned char *buffer = (unsigned char *)acpMalloc(size);
int status = 0; int status = 0;
if (!buffer) if (!buffer)
return false; return false;
size_t msgSize = size;
memset(&cnf, 0, sizeof(cnf)); memset(&cnf, 0, sizeof(cnf));
cnf.Common.CellId = sys_req->Common.CellId; cnf.Common.CellId = sys_req->Common.CellId;
...@@ -585,10 +586,13 @@ bool ss_eNB_port_man_handle_enquiryTiming(struct SYSTEM_CTRL_REQ *sys_req) ...@@ -585,10 +586,13 @@ bool ss_eNB_port_man_handle_enquiryTiming(struct SYSTEM_CTRL_REQ *sys_req)
cnf.Common.TimingInfo.d = TimingInfo_Type_SubFrame; cnf.Common.TimingInfo.d = TimingInfo_Type_SubFrame;
cnf.Common.TimingInfo.v.SubFrame.SFN.d = SystemFrameNumberInfo_Type_Number; cnf.Common.TimingInfo.v.SubFrame.SFN.d = SystemFrameNumberInfo_Type_Number;
cnf.Common.TimingInfo.v.SubFrame.SFN.v.Number = SS_context.sfn; cnf.Common.TimingInfo.v.SubFrame.SFN.v.Number = SS_context.sfn;
cnf.Common.TimingInfo.v.SubFrame.Subframe.d = SubFrameInfo_Type_Number; cnf.Common.TimingInfo.v.SubFrame.Subframe.d = SubFrameInfo_Type_Number;
cnf.Common.TimingInfo.v.SubFrame.Subframe.v.Number = SS_context.sf; cnf.Common.TimingInfo.v.SubFrame.Subframe.v.Number = SS_context.sf;
cnf.Common.TimingInfo.v.SubFrame.HSFN.d = SystemFrameNumberInfo_Type_Number; cnf.Common.TimingInfo.v.SubFrame.HSFN.d = SystemFrameNumberInfo_Type_Number;
cnf.Common.TimingInfo.v.SubFrame.HSFN.v.Number = SS_context.hsfn; cnf.Common.TimingInfo.v.SubFrame.HSFN.v.Number = SS_context.hsfn;
cnf.Common.TimingInfo.v.SubFrame.Slot.d = SlotTimingInfo_Type_FirstSlot; cnf.Common.TimingInfo.v.SubFrame.Slot.d = SlotTimingInfo_Type_FirstSlot;
cnf.Common.TimingInfo.v.SubFrame.Slot.v.FirstSlot = true; cnf.Common.TimingInfo.v.SubFrame.Slot.v.FirstSlot = true;
......
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