Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
alex037yang
OpenXG-RAN
Commits
7475a22e
Commit
7475a22e
authored
Aug 29, 2018
by
WEI-TAI CHEN
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
EN-DC in gNB
parent
616a66b7
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
56 additions
and
24 deletions
+56
-24
openair2/RRC/NR/MESSAGES/asn1_msg.c
openair2/RRC/NR/MESSAGES/asn1_msg.c
+33
-0
openair2/RRC/NR/MESSAGES/asn1_msg.h
openair2/RRC/NR/MESSAGES/asn1_msg.h
+4
-0
openair2/RRC/NR/nr_rrc_config.c
openair2/RRC/NR/nr_rrc_config.c
+7
-0
openair2/RRC/NR/nr_rrc_config.h
openair2/RRC/NR/nr_rrc_config.h
+5
-0
openair2/RRC/NR/rrc_gNB.c
openair2/RRC/NR/rrc_gNB.c
+7
-24
No files found.
openair2/RRC/NR/MESSAGES/asn1_msg.c
View file @
7475a22e
...
@@ -1064,3 +1064,36 @@ void do_PHYSICALCELLGROUP(uint8_t Mod_id,
...
@@ -1064,3 +1064,36 @@ void do_PHYSICALCELLGROUP(uint8_t Mod_id,
}
}
}
}
void
do_SpCellConfig
(
uint8_t
Mod_id
,
int
CC_id
,
struct
NR_SpCellConfig
*
spconfig
){
//spconfig->servCellIndex = CALLOC(1,sizeof(NR_ServCellIndex_t));
//*(spconfig->servCellIndex)=
gNB_RrcConfigurationReq
*
common_configuration
;
common_configuration
=
CALLOC
(
1
,
sizeof
(
gNB_RrcConfigurationReq
));
//Fill servingcellconfigcommon config value
rrc_config_servingcellconfigcommon
(
Mod_id
,
CC_id
#if defined(ENABLE_ITTI)
,
common_configuration
#endif
);
//Fill common config to structure
do_SERVINGCELLCONFIGCOMMON
(
Mod_id
,
CC_id
,
#if defined(ENABLE_ITTI)
common_configuration
,
#endif
0
);
spconfig
->
reconfigurationWithSync
=
CALLOC
(
1
,
sizeof
(
struct
NR_ReconfigurationWithSync
));
/*
memcpy( spconfig->reconfigurationWithSync,
RC.nrrrc[Mod_id]->carrier[0].servingcellconfigcommon,
sizeof(struct NR_ServingCellConfigCommon));
*/
}
\ No newline at end of file
openair2/RRC/NR/MESSAGES/asn1_msg.h
View file @
7475a22e
...
@@ -104,6 +104,10 @@ void do_PHYSICALCELLGROUP(uint8_t Mod_id,
...
@@ -104,6 +104,10 @@ void do_PHYSICALCELLGROUP(uint8_t Mod_id,
struct
NR_PhysicalCellGroupConfig
*
physicalCellGroupConfig
,
struct
NR_PhysicalCellGroupConfig
*
physicalCellGroupConfig
,
physicalcellgroup_t
*
physicalcellgroup_config
);
physicalcellgroup_t
*
physicalcellgroup_config
);
void
do_SpCellConfig
(
uint8_t
Mod_id
,
int
CC_id
,
struct
NR_SpCellConfig
*
spconfig
);
...
...
openair2/RRC/NR/nr_rrc_config.c
View file @
7475a22e
...
@@ -253,3 +253,10 @@ void rrc_config_physicalcellgroup(uint8_t Mod_id,
...
@@ -253,3 +253,10 @@ void rrc_config_physicalcellgroup(uint8_t Mod_id,
physicalcellgroup_config
->
sp_CSI_RNTI
[
CC_id
]
=
0
;
physicalcellgroup_config
->
sp_CSI_RNTI
[
CC_id
]
=
0
;
physicalcellgroup_config
->
RNTI_Value
[
CC_id
]
=
0
;
physicalcellgroup_config
->
RNTI_Value
[
CC_id
]
=
0
;
}
}
void
rrc_config_rachdedicated
(
uint8_t
Mod_id
,
int
CC_id
,
physicalcellgroup_t
*
physicalcellgroup_config
){
}
\ No newline at end of file
openair2/RRC/NR/nr_rrc_config.h
View file @
7475a22e
...
@@ -111,6 +111,11 @@ typedef struct physicalcellgroup_s{
...
@@ -111,6 +111,11 @@ typedef struct physicalcellgroup_s{
long
RNTI_Value
[
MAX_NUM_CCs
];
long
RNTI_Value
[
MAX_NUM_CCs
];
}
physicalcellgroup_t
;
}
physicalcellgroup_t
;
typedef
struct
rach_dedicated_s
{
}
rach_dedicated_t
;
void
rrc_config_servingcellconfigcommon
(
uint8_t
Mod_id
,
void
rrc_config_servingcellconfigcommon
(
uint8_t
Mod_id
,
int
CC_id
int
CC_id
#if defined(ENABLE_ITTI)
#if defined(ENABLE_ITTI)
...
...
openair2/RRC/NR/rrc_gNB.c
View file @
7475a22e
...
@@ -160,13 +160,13 @@ void rrc_gNB_generate_SgNBAdditionRequestAcknowledge(
...
@@ -160,13 +160,13 @@ void rrc_gNB_generate_SgNBAdditionRequestAcknowledge(
cellGroupconfig
->
mac_CellGroupConfig
=
CALLOC
(
1
,
sizeof
(
struct
NR_MAC_CellGroupConfig
));
cellGroupconfig
->
mac_CellGroupConfig
=
CALLOC
(
1
,
sizeof
(
struct
NR_MAC_CellGroupConfig
));
cellGroupconfig
->
physicalCellGroupConfig
=
CALLOC
(
1
,
sizeof
(
struct
NR_PhysicalCellGroupConfig
));
cellGroupconfig
->
physicalCellGroupConfig
=
CALLOC
(
1
,
sizeof
(
struct
NR_PhysicalCellGroupConfig
));
cellGroupconfig
->
spCellConfig
=
CALLOC
(
1
,
sizeof
(
struct
NR_SpCellConfig
));
cellGroupconfig
->
spCellConfig
=
CALLOC
(
1
,
sizeof
(
struct
NR_SpCellConfig
));
cellGroupconfig
->
sCellToAddModList
=
CALLOC
(
1
,
sizeof
(
struct
NR_CellGroupConfig__sCellToAddModList
));
//
cellGroupconfig->sCellToAddModList = CALLOC(1,sizeof(struct NR_CellGroupConfig__sCellToAddModList));
rlc_BearerToAddModList
=
cellGroupconfig
->
rlc_BearerToAddModList
;
rlc_BearerToAddModList
=
cellGroupconfig
->
rlc_BearerToAddModList
;
mac_CellGroupConfig
=
cellGroupconfig
->
mac_CellGroupConfig
;
mac_CellGroupConfig
=
cellGroupconfig
->
mac_CellGroupConfig
;
physicalCellGroupConfig
=
cellGroupconfig
->
physicalCellGroupConfig
;
physicalCellGroupConfig
=
cellGroupconfig
->
physicalCellGroupConfig
;
spCellConfig
=
cellGroupconfig
->
spCellConfig
;
spCellConfig
=
cellGroupconfig
->
spCellConfig
;
sCellToAddModList
=
cellGroupconfig
->
sCellToAddModList
;
//
sCellToAddModList = cellGroupconfig->sCellToAddModList;
rlc_bearer_config_t
*
rlc_config
;
rlc_bearer_config_t
*
rlc_config
;
rlc_config
=
CALLOC
(
1
,
sizeof
(
rlc_bearer_config_t
));
rlc_config
=
CALLOC
(
1
,
sizeof
(
rlc_bearer_config_t
));
...
@@ -207,28 +207,11 @@ void rrc_gNB_generate_SgNBAdditionRequestAcknowledge(
...
@@ -207,28 +207,11 @@ void rrc_gNB_generate_SgNBAdditionRequestAcknowledge(
physicalCellGroupConfig
,
physicalCellGroupConfig
,
physicalcellgroup_config
);
physicalcellgroup_config
);
gNB_RrcConfigurationReq
*
common_configuration
;
common_configuration
=
CALLOC
(
1
,
sizeof
(
gNB_RrcConfigurationReq
));
do_SpCellConfig
(
ctxt_pP
->
module_id
,
//Fill servingcellconfigcommon config value
rrc_config_servingcellconfigcommon
(
ctxt_pP
->
module_id
,
ue_context_pP
->
ue_context
.
primaryCC_id
#if defined(ENABLE_ITTI)
,
common_configuration
#endif
);
//Fill common config to structure
do_SERVINGCELLCONFIGCOMMON
(
ctxt_pP
->
module_id
,
ue_context_pP
->
ue_context
.
primaryCC_id
,
ue_context_pP
->
ue_context
.
primaryCC_id
,
#if defined(ENABLE_ITTI)
spCellConfig
);
common_configuration
,
#endif
0
);
/*
memcpy( (*spCellConfig)->reconfigurationWithSync->spCellConfigCommon ,
RC.nrrrc[ctxt_pP->module_id]->carrier[0].servingcellconfigcommon,
sizeof(struct NR_ServingCellConfigCommon));
*/
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment