* ****************************************************************/
S16 procCellsToBeActivated(Cells_to_be_Activated_List_t cellsToActivate)
{
- U16 idx;
- S16 ret;
+ U16 idx = 0;
+ S16 ret = ROK;
for(idx=0; idx<cellsToActivate.list.count; idx++)
{
U16 nci = 0;
- U16 pci;
+ U16 pci = 0;
DuCellCb *cellCb = NULLP;
Cells_to_be_Activated_List_Item_t cell = cellsToActivate.list.array[idx]->\
/* Now remove this cell from configured list and move to active list */
duCb.cfgCellLst[nci-1] = NULLP;
duCb.actvCellLst[nci-1] = cellCb;
- }
- /* Start sending scheduler config */
- if(ret == ROK)
- {
- //TODO: uncomment later duSendSchGnbCfg();
+ /* Build and send Mac Cell Cfg for the number of active cells */
+ ret = duBuildAndSendMacCellCfg();
+ if(ret != ROK)
+ {
+ DU_LOG("\nDU APP : macCellCfg build and send failed");
+ return RFAILED;
+ }
}
- return ROK;
+ return ret;
}
/******************************************************************
SPutSBuf(DU_APP_MEM_REGION, DU_POOL,(Data *)&f1apMsg,(Size)sizeof(F1AP_PDU_t));
#endif
- /* Build and send Mac Cell Cfg Paramaters */
- //ret = duBuildAndSendMacCellCfg();
- ret = BuildAndSendDUConfigUpdate();
-
return ret;
}