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
canghaiwuhen
OpenXG-RAN
Commits
1181790b
Commit
1181790b
authored
Sep 21, 2018
by
Bing-Kai Hong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Partially update the node_type check
parent
a1b60957
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
11 deletions
+19
-11
openair2/ENB_APP/enb_config.c
openair2/ENB_APP/enb_config.c
+4
-2
openair2/LAYER2/PROTO_AGENT/proto_agent.c
openair2/LAYER2/PROTO_AGENT/proto_agent.c
+7
-6
openair2/RRC/LTE/rrc_eNB.c
openair2/RRC/LTE/rrc_eNB.c
+8
-3
No files found.
openair2/ENB_APP/enb_config.c
View file @
1181790b
...
...
@@ -743,7 +743,7 @@ int RCconfig_RRC(uint32_t i, eNB_RRC_INST *rrc, int macrlc_has_f1) {
nb_cc
++
;
if
(
rrc
->
node_type
!=
ngran_eNB_CU
&&
rrc
->
node_type
!=
ngran_ng_eNB_CU
)
{
if
(
(
rrc
->
node_type
!=
ngran_eNB_CU
)
||
(
rrc
->
node_type
!=
ngran_ng_eNB_CU
)
||
(
rrc
->
node_type
!=
ngran_gNB_CU
)
)
{
// Cell params, MIB/SIB1 in DU
RRC_CONFIGURATION_REQ
(
msg_p
).
tdd_config
[
j
]
=
tdd_config
;
...
...
@@ -1826,7 +1826,7 @@ int RCconfig_RRC(uint32_t i, eNB_RRC_INST *rrc, int macrlc_has_f1) {
}
// node_type!=ngran_eNB_DU
}
if
(
rrc
->
node_type
==
ngran_eNB_CU
||
rrc
->
node_type
==
ngran_ng_eNB_CU
)
{
if
(
(
rrc
->
node_type
==
ngran_eNB_CU
)
||
(
rrc
->
node_type
==
ngran_ng_eNB_CU
)
||
(
rrc
->
node_type
==
ngran_gNB_CU
)
)
{
char
srb1path
[
MAX_OPTNAME_SIZE
*
2
+
8
];
sprintf
(
srb1path
,
"%s.%s"
,
enbpath
,
ENB_CONFIG_STRING_SRB1
);
int
npar
=
config_get
(
SRB1Params
,
sizeof
(
SRB1Params
)
/
sizeof
(
paramdef_t
),
srb1path
);
...
...
@@ -2178,6 +2178,8 @@ int RCconfig_RRC(uint32_t i, eNB_RRC_INST *rrc, int macrlc_has_f1) {
#endif
}
LOG_I
(
RRC
,
"Node type %d
\n
"
,
rrc
->
node_type
);
return
0
;
}
...
...
openair2/LAYER2/PROTO_AGENT/proto_agent.c
View file @
1181790b
...
...
@@ -59,12 +59,13 @@ int proto_agent_start(mod_id_t mod_id, const cudu_params_t *p)
{
int
channel_id
;
/*
DevAssert(p->local_ipv4_address);
DevAssert(p->local_port > 1024); // "unprivileged" port
DevAssert(p->remote_ipv4_address);
DevAssert(p->remote_port > 1024); // "unprivileged" port
*/
// RS: CUDU does not work!
//DevAssert(p->local_interface);
//DevAssert(p->local_ipv4_address);
//DevAssert(p->local_port > 1024); // "unprivileged" port
//DevAssert(p->remote_ipv4_address);
//DevAssert(p->remote_port > 1024); // "unprivileged" port
proto_agent
[
mod_id
].
mod_id
=
mod_id
;
/* Initialize the channel container */
...
...
openair2/RRC/LTE/rrc_eNB.c
View file @
1181790b
...
...
@@ -168,7 +168,10 @@ init_SI(
AssertFatal
(
carrier
->
SIB1
!=
NULL
,
PROTOCOL_RRC_CTXT_FMT
" init_SI: FATAL, no memory for SIB1 allocated
\n
"
,
PROTOCOL_RRC_CTXT_ARGS
(
ctxt_pP
));
if
(
rrc
->
node_type
!=
ngran_eNB_CU
&&
rrc
->
node_type
!=
ngran_ng_eNB_CU
)
{
LOG_I
(
RRC
,
"[eNB %d] Node type %d
\n
"
,
ctxt_pP
->
module_id
,
rrc
->
node_type
);
if
((
rrc
->
node_type
!=
ngran_eNB_CU
)
||
(
rrc
->
node_type
!=
ngran_ng_eNB_CU
)
||
(
rrc
->
node_type
!=
ngran_gNB_CU
)
)
{
// copy basic Cell parameters
carrier
->
physCellId
=
configuration
->
Nid_cell
[
CC_id
];
carrier
->
p_eNB
=
configuration
->
nb_antenna_ports
[
CC_id
];
...
...
@@ -204,8 +207,8 @@ init_SI(
AssertFatal
(
carrier
->
sizeof_SIB1
!=
255
,
"FATAL, RC.rrc[enb_mod_idP].carrier[CC_id].sizeof_SIB1 == 255"
);
}
if
(
rrc
->
node_type
!=
ngran_eNB_DU
)
{
if
(
(
rrc
->
node_type
!=
ngran_eNB_DU
)
||
(
rrc
->
node_type
!=
ngran_gNB_DU
))
{
carrier
->
SIB23
=
(
uint8_t
*
)
malloc16
(
64
);
AssertFatal
(
carrier
->
SIB23
!=
NULL
,
"cannot allocate memory for SIB"
);
carrier
->
sizeof_SIB23
=
do_SIB23
(
...
...
@@ -217,6 +220,8 @@ init_SI(
#endif
);
LOG_I
(
RRC
,
"do_SIB23, size %d
\n
"
,
carrier
->
sizeof_SIB23
);
AssertFatal
(
carrier
->
sizeof_SIB23
!=
255
,
"FATAL, RC.rrc[mod].carrier[CC_id].sizeof_SIB23 == 255"
);
...
...
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