/******************************************************************************
-###############################################################################
-# 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"
#include "msgb.h"
#include "bitsPack.h"
for(i = 0; i < pSdapInstance->drbNum; i++)
{
drbId = pSdapInstance->drbId[i];
-
+
VOS_MemCpy(&sdapDrbCfg, &pSdapInstance->drbCfg[drbId - 1], sizeof(SdapDrbCfg_t));
for(j = 0; j < sdapDrbCfg.qfiNum; j++)
for(i = 0; i < pSdapInstance->drbNum; i++)
{
drbId = pSdapInstance->drbId[i];
-
+
/* 一个实例,即一个会话内,有且只有一个默认的DRB */
if(DEFAULT_DRB_TRUE == pSdapInstance->drbCfg[drbId - 1].sdapCfg.defaultDrbInd)
{
*pFlag = 1;
break;
}
- }
+ }
}
return VOS_OK;
p = msgbHeadPush(pMsgBuff, pduHeadLen);
VOS_MemCpy(p, &sdapHeader, pduHeadLen);
-
+
return pduHeadLen;
}
SdapGlobalDtat_t *pGlobalData = NULL;
SdapInstance_t *pSdapInstance = NULL;
UINT8 *pMsgHead = NULL;
-
+
if(NULL == pMsgBuff)
{
return VOS_ERROR;
{
return VOS_ERROR;
}
-
+
/*传递到PDCP-U*/
pdcpuDlDataProc(upE1apId, drbId, pMsgBuff, 1);
{
BitOpt_t bit;
UINT32 bitSize = 0;
-
+
UINT8 *pMsgHead = msgbData(pMsgBuff);
UINT16 pduLen = msgbDataUsedLen(pMsgBuff);
sdapUlHeader_t *pHead = NULL;
UINT8 qosFlowId = 0xff;
UINT8 pduType = 0;
-
+
SdapGlobalDtat_t *pGlobalData = NULL;
SdapInstance_t *pSdapInstance = NULL;
SdapDrbCfg_t *pDrbCfgInfo = NULL;
{
return VOS_ERROR;
}
-
+
/* Get Instance */
pGlobalData = sdapGetUeGlobalData(upE1apId, &flag);
/* get instance */
for(i = 0; i < pGlobalData->sessNum; i++)
- {
+ {
if(sessId == pGlobalData->sessId[i])
{
pSdapInstance = &pGlobalData->sdapInstance[sessId];
/* qfi not found */
return VOS_ERROR;
}
-
+
}
-
+
/* 调用NG-U的上行数据处理接口 */
return nguUlDataProc(upE1apId, sessId, qosFlowId, pMsgBuff);
}
-