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
ZhouShuya
OpenXG-RAN
Commits
8ef8582b
Commit
8ef8582b
authored
Mar 10, 2021
by
Xue Song
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add node type ngran_UE
parent
81c92d22
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
13 deletions
+9
-13
common/ngran_types.h
common/ngran_types.h
+2
-1
executables/nr-uesoftmodem.c
executables/nr-uesoftmodem.c
+2
-8
openair2/LAYER2/nr_pdcp/nr_pdcp_oai_api.c
openair2/LAYER2/nr_pdcp/nr_pdcp_oai_api.c
+3
-3
openair2/LAYER2/nr_rlc/nr_rlc_oai_api.c
openair2/LAYER2/nr_rlc/nr_rlc_oai_api.c
+2
-1
No files found.
common/ngran_types.h
View file @
8ef8582b
...
...
@@ -42,7 +42,8 @@ typedef enum {
ngran_gNB_CU
=
5
,
ngran_eNB_DU
=
6
,
ngran_gNB_DU
=
7
,
ngran_eNB_MBMS_STA
=
8
ngran_eNB_MBMS_STA
=
8
,
ngran_UE
=
9
}
ngran_node_t
;
#define NODE_IS_MONOLITHIC(nOdE_TyPe) ((nOdE_TyPe) == ngran_eNB || (nOdE_TyPe) == ngran_ng_eNB || (nOdE_TyPe) == ngran_gNB)
...
...
executables/nr-uesoftmodem.c
View file @
8ef8582b
...
...
@@ -98,7 +98,7 @@ pthread_cond_t sync_cond;
pthread_mutex_t
sync_mutex
;
int
sync_var
=-
1
;
//!< protected by mutex \ref sync_mutex.
int
config_sync_var
=-
1
;
extern
ngran_node_t
node_type
;
RAN_CONTEXT_t
RC
;
...
...
@@ -514,10 +514,6 @@ int main( int argc, char **argv ) {
#endif
LOG_I
(
HW
,
"Version: %s
\n
"
,
PACKAGE_VERSION
);
RC
.
nrrrc
=
(
gNB_RRC_INST
**
)
malloc
(
1
*
sizeof
(
gNB_RRC_INST
*
));
RC
.
nrrrc
[
0
]
=
(
gNB_RRC_INST
*
)
malloc
(
sizeof
(
gNB_RRC_INST
));
RC
.
nrrrc
[
0
]
->
node_type
=
ngran_gNB
;
init_NR_UE
(
1
,
rrc_config_path
);
if
(
IS_SOFTMODEM_NOS1
)
init_pdcp
();
...
...
@@ -583,9 +579,7 @@ int main( int argc, char **argv ) {
protocol_ctxt_t
ctxt_pP
=
{
0
};
ctxt_pP
.
enb_flag
=
ENB_FLAG_NO
;
ctxt_pP
.
rnti
=
0x1234
;
RC
.
nrrrc
=
(
gNB_RRC_INST
**
)
malloc
(
1
*
sizeof
(
gNB_RRC_INST
*
));
RC
.
nrrrc
[
0
]
=
(
gNB_RRC_INST
*
)
malloc
(
sizeof
(
gNB_RRC_INST
));
RC
.
nrrrc
[
0
]
->
node_type
=
ngran_gNB
;
node_type
=
ngran_UE
;
rrc_ue_generate_RRCSetupRequest
(
&
ctxt_pP
,
0
);
if
(
create_tasks_nrue
(
1
)
<
0
)
{
printf
(
"cannot create ITTI tasks
\n
"
);
...
...
openair2/LAYER2/nr_pdcp/nr_pdcp_oai_api.c
View file @
8ef8582b
...
...
@@ -610,7 +610,7 @@ rb_found:
memblock
=
get_free_mem_block
(
size
,
__FUNCTION__
);
memcpy
(
memblock
->
data
,
buf
,
size
);
if
(
NODE_IS_CU
(
RC
.
nrrrc
[
0
]
->
node_type
))
{
if
(
NODE_IS_CU
(
node_type
))
{
LOG_D
(
PDCP
,
"call proto_agent_send_rlc_data_req()
\n
"
);
nr_pdcp_params
.
send_rlc_data_req_func
(
&
ctxt
,
0
,
MBMS_FLAG_NO
,
rb_id
,
sdu_id
,
0
,
size
,
memblock
,
NULL
,
NULL
);
// proto_agent_send_rlc_data_req(&ctxt, 0, MBMS_FLAG_NO, rb_id, sdu_id, 0, size, memblock);
...
...
@@ -704,7 +704,7 @@ rb_found:
printf
(
"!!!!!!! deliver_pdu_srb (srb %d) calling rlc_data_req size %d: "
,
srb_id
,
size
);
//for (i = 0; i < size; i++) printf(" %2.2x", (unsigned char)memblock->data[i]);
printf
(
"
\n
"
);
if
(
NODE_IS_CU
(
RC
.
nrrrc
[
0
]
->
node_type
))
{
if
(
NODE_IS_CU
(
node_type
))
{
NR_DL_DCCH_Message_t
*
dl_dcch_msg
=
NULL
;
asn_dec_rval_t
dec_rval
;
...
...
@@ -810,7 +810,7 @@ boolean_t pdcp_data_ind(
T
(
T_ENB_PDCP_UL
,
T_INT
(
ctxt_pP
->
module_id
),
T_INT
(
rnti
),
T_INT
(
rb_id
),
T_INT
(
sdu_buffer_size
));
if
(
NODE_IS_DU
(
RC
.
nrrrc
[
0
]
->
node_type
)
&&
(
srb_flagP
==
0
))
{
if
(
NODE_IS_DU
(
node_type
)
&&
(
srb_flagP
==
0
))
{
LOG_D
(
RLC
,
"call proto_agent_send_pdcp_data_ind()
\n
"
);
nr_pdcp_params
.
pdcp_data_ind_func
(
ctxt_pP
,
srb_flagP
,
0
,
rb_id
,
sdu_buffer_size
,
sdu_buffer
,
NULL
,
NULL
);
return
1
;
...
...
openair2/LAYER2/nr_rlc/nr_rlc_oai_api.c
View file @
8ef8582b
...
...
@@ -44,6 +44,7 @@
#include "openair2/LAYER2/PROTO_AGENT/proto_agent.h"
extern
RAN_CONTEXT_t
RC
;
extern
ngran_node_t
node_type
;
#include <stdint.h>
...
...
@@ -477,7 +478,7 @@ rb_found:
T_INT
(
0
/*ctxt_pP->module_id*/
),
T_INT
(
ue
->
rnti
),
T_INT
(
rb_id
),
T_INT
(
size
));
const
ngran_node_t
type
=
RC
.
nrrrc
[
0
/*ctxt_pP->module_id*/
]
->
node_type
;
const
ngran_node_t
type
=
node_type
;
AssertFatal
(
type
!=
ngran_eNB_CU
&&
type
!=
ngran_ng_eNB_CU
&&
type
!=
ngran_gNB_CU
,
"Can't be CU, bad node type %d
\n
"
,
type
);
...
...
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