/******************************************************************************
-###############################################################################
-# Copyright (c) [2017-2020] [ICT/CAS] #
-# Licensed under the ORAN Software License v1.0 (License) #
-###############################################################################
-******************************************************************************/
+*
+* Copyright (c) 2020 ICT/CAS.
+*
+* Licensed under the O-RAN Software License, Version 1.0 (the "Software License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* https://www.o-ran.org/software
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*
+*******************************************************************************/
+
#include "sdapCore.h"
SdapGlobalDtat_t s_SdapGlobalData[UPC_MAX_UE_NUM] = {{0}};
{
int i = 0;
int j = 0;
-
+
for(i = 0; i < pGlobalData->sessNum; i++)
{
if(i == idx)
{
continue;
}
-
+
qosFlowId = pTempQos->qosFlowId;
- pDrbCfg->qfi[pDrbCfg->qfiNum] = qosFlowId;
+ pDrbCfg->qfi[pDrbCfg->qfiNum] = qosFlowId;
pDrbCfg->qosFlowInfo[qosFlowId].qosFlowLevelQosPar = pTempQos->qosPara;
if(pTempQos->qosMapFlag)
{
{
return VOS_ERROR;
}
-
+
return VOS_OK;
}
{
continue;
}
-
+
drbId = pTempDrb->drbId;
if(VOS_OK != sdapCreateQosInfo(&pInstance->drbCfg[drbId - 1], pTempDrb, &pCfgRet->actDrbCfg[drbId - 1]))
VOS_MemCpy(&pInstance->drbCfg[drbId - 1].sdapCfg, &pTempDrb->sdapConfig, sizeof(SdapCfg_t));
- pInstance->drbCfg[drbId - 1].drbId = drbId;
+ pInstance->drbCfg[drbId - 1].drbId = drbId;
pInstance->drbId[pInstance->drbNum] = drbId;
pInstance->drbNum++;
}
if(0 == pCfgRet->actDrbNum)
- {
+ {
pCfgRet->sessFailCause = RNL_UNSPECIFIED;
return VOS_ERROR;
}
INT32 sdapCreateNewInstance
(
- SdapGlobalDtat_t *pGlobalData,
- UINT64 upE1apId,
- upcTempSessInfo_t *pSessTempInfo,
+ SdapGlobalDtat_t *pGlobalData,
+ UINT64 upE1apId,
+ upcTempSessInfo_t *pSessTempInfo,
sdapSessCfgRet_t *pCfgRet
)
{
int idx = 0;
UINT64 sessId = 0;
-
+
pGlobalData->upE1apId = upE1apId;
sessId = pSessTempInfo->pduSessId;
idx = pGlobalData->sessNum;
pGlobalData->sessId[idx] = sessId;
pGlobalData->sessNum++;
- printfSdapNewInstance(pGlobalData);
-
+ printfSdapNewInstance(pGlobalData);
+
return VOS_OK;
}
if(sessId == pGlobalData->sessId[i])
{
sdapDeleteDrbInfo(&pGlobalData->sdapInstance[sessId], drbId);
-
+
return VOS_OK;
}
}
return VOS_OK;
}
#endif
-