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
8f3adc8b
Commit
8f3adc8b
authored
4 years ago
by
heshanyun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix gNB build error
parent
85fe26bd
Changes
10
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
113 additions
and
120 deletions
+113
-120
common/utils/ocp_itti/all_msg.h
common/utils/ocp_itti/all_msg.h
+1
-0
common/utils/ocp_itti/intertask_interface.h
common/utils/ocp_itti/intertask_interface.h
+1
-0
executables/nr-softmodem.c
executables/nr-softmodem.c
+3
-0
openair2/COMMON/ngap_messages_types.h
openair2/COMMON/ngap_messages_types.h
+98
-103
openair2/GNB_APP/gnb_app.c
openair2/GNB_APP/gnb_app.c
+3
-3
openair2/GNB_APP/gnb_config.c
openair2/GNB_APP/gnb_config.c
+5
-4
openair2/GNB_APP/gnb_config.h
openair2/GNB_APP/gnb_config.h
+1
-0
openair3/COMMON/messages_types.h
openair3/COMMON/messages_types.h
+1
-0
openair3/NGAP/ngap_gNB.c
openair3/NGAP/ngap_gNB.c
+0
-1
openair3/NGAP/ngap_gNB.h
openair3/NGAP/ngap_gNB.h
+0
-9
No files found.
common/utils/ocp_itti/all_msg.h
View file @
8f3adc8b
...
@@ -16,3 +16,4 @@
...
@@ -16,3 +16,4 @@
#include "openair2/COMMON/gtpv1_u_messages_def.h"
#include "openair2/COMMON/gtpv1_u_messages_def.h"
#include "openair2/COMMON/flexran_messages_def.h"
#include "openair2/COMMON/flexran_messages_def.h"
#include "openair2/COMMON/f1ap_messages_def.h"
#include "openair2/COMMON/f1ap_messages_def.h"
#include "openair2/COMMON/ngap_messages_def.h"
This diff is collapsed.
Click to expand it.
common/utils/ocp_itti/intertask_interface.h
View file @
8f3adc8b
...
@@ -230,6 +230,7 @@ typedef struct IttiMsgText_s {
...
@@ -230,6 +230,7 @@ typedef struct IttiMsgText_s {
#include <openair2/COMMON/sctp_messages_types.h>
#include <openair2/COMMON/sctp_messages_types.h>
#include <openair2/COMMON/udp_messages_types.h>
#include <openair2/COMMON/udp_messages_types.h>
#include <openair2/COMMON/gtpv1_u_messages_types.h>
#include <openair2/COMMON/gtpv1_u_messages_types.h>
#include <openair2/COMMON/ngap_messages_types.h>
#include <openair3/SCTP/sctp_eNB_task.h>
#include <openair3/SCTP/sctp_eNB_task.h>
#include <openair3/NAS/UE/nas_proc_defs.h>
#include <openair3/NAS/UE/nas_proc_defs.h>
#include <openair3/NAS/UE/ESM/esmData.h>
#include <openair3/NAS/UE/ESM/esmData.h>
...
...
This diff is collapsed.
Click to expand it.
executables/nr-softmodem.c
View file @
8f3adc8b
...
@@ -83,6 +83,7 @@ unsigned short config_frames[4] = {2,9,11,13};
...
@@ -83,6 +83,7 @@ unsigned short config_frames[4] = {2,9,11,13};
#include "executables/thread-common.h"
#include "executables/thread-common.h"
#include "NB_IoT_interface.h"
#include "NB_IoT_interface.h"
#include "x2ap_eNB.h"
#include "x2ap_eNB.h"
#include "ngap_gNB.h"
pthread_cond_t
nfapi_sync_cond
;
pthread_cond_t
nfapi_sync_cond
;
pthread_mutex_t
nfapi_sync_mutex
;
pthread_mutex_t
nfapi_sync_mutex
;
...
@@ -408,10 +409,12 @@ int create_gNB_tasks(uint32_t gnb_nb) {
...
@@ -408,10 +409,12 @@ int create_gNB_tasks(uint32_t gnb_nb) {
return -1;
return -1;
}
}
*/
*/
/*
if (itti_create_task (TASK_NGAP, ngap_gNB_task, NULL) < 0) {
if (itti_create_task (TASK_NGAP, ngap_gNB_task, NULL) < 0) {
LOG_E(S1AP, "Create task for NGAP failed\n");
LOG_E(S1AP, "Create task for NGAP failed\n");
return -1;
return -1;
}
}
*/
if
(
!
emulate_rf
){
if
(
!
emulate_rf
){
...
...
This diff is collapsed.
Click to expand it.
openair2/COMMON/ngap_messages_types.h
View file @
8f3adc8b
This diff is collapsed.
Click to expand it.
openair2/GNB_APP/gnb_app.c
View file @
8f3adc8b
...
@@ -39,7 +39,7 @@
...
@@ -39,7 +39,7 @@
#include "x2ap_eNB.h"
#include "x2ap_eNB.h"
#include "intertask_interface.h"
#include "intertask_interface.h"
#include "
s1ap_e
NB.h"
#include "
ngap_g
NB.h"
#include "sctp_eNB_task.h"
#include "sctp_eNB_task.h"
#include "gtpv1u_eNB_task.h"
#include "gtpv1u_eNB_task.h"
#include "PHY/INIT/phy_init.h"
#include "PHY/INIT/phy_init.h"
...
@@ -83,14 +83,14 @@ static uint32_t gNB_app_register(uint32_t gnb_id_start, uint32_t gnb_id_end)//,
...
@@ -83,14 +83,14 @@ static uint32_t gNB_app_register(uint32_t gnb_id_start, uint32_t gnb_id_end)//,
ngap_register_gnb_req_t
*
ngap_register_gNB
;
//Type Temporarily reuse
ngap_register_gnb_req_t
*
ngap_register_gNB
;
//Type Temporarily reuse
// note: there is an implicit relationship between the data structure and the message name
// note: there is an implicit relationship between the data structure and the message name
*
msg_p
=
itti_alloc_new_message
(
TASK_GNB_APP
,
NGAP_REGISTER_GNB_REQ
);
//Message Temporarily reuse
msg_p
=
itti_alloc_new_message
(
TASK_GNB_APP
,
NGAP_REGISTER_GNB_REQ
);
//Message Temporarily reuse
RCconfig_NR_NG
(
msg_p
,
gnb_id
);
RCconfig_NR_NG
(
msg_p
,
gnb_id
);
if
(
gnb_id
==
0
)
RCconfig_nr_gtpu
();
if
(
gnb_id
==
0
)
RCconfig_nr_gtpu
();
ngap_register_gNB
=
&
NGAP_REGISTER_GNB_REQ
(
msg_p
);
//Message Temporarily reuse
ngap_register_gNB
=
&
NGAP_REGISTER_GNB_REQ
(
msg_p
);
//Message Temporarily reuse
LOG_I
(
GNB_APP
,
"default drx %d
\n
"
,
ngap_register_gNB
->
default_drx
);
*/
LOG_I
(
GNB_APP
,
"default drx %d
\n
"
,
ngap_register_gNB
->
default_drx
);
LOG_I
(
GNB_APP
,
"[gNB %d] gNB_app_register for instance %d
\n
"
,
gnb_id
,
GNB_MODULE_ID_TO_INSTANCE
(
gnb_id
));
LOG_I
(
GNB_APP
,
"[gNB %d] gNB_app_register for instance %d
\n
"
,
gnb_id
,
GNB_MODULE_ID_TO_INSTANCE
(
gnb_id
));
...
...
This diff is collapsed.
Click to expand it.
openair2/GNB_APP/gnb_config.c
View file @
8f3adc8b
...
@@ -37,6 +37,7 @@
...
@@ -37,6 +37,7 @@
#include "UTIL/OTG/otg.h"
#include "UTIL/OTG/otg.h"
#include "UTIL/OTG/otg_externs.h"
#include "UTIL/OTG/otg_externs.h"
#include "intertask_interface.h"
#include "intertask_interface.h"
#include "s1ap_eNB.h"
#include "ngap_gNB.h"
#include "ngap_gNB.h"
#include "sctp_eNB_task.h"
#include "sctp_eNB_task.h"
#include "sctp_default_values.h"
#include "sctp_default_values.h"
...
@@ -342,7 +343,7 @@ void RCconfig_nr_flexran()
...
@@ -342,7 +343,7 @@ void RCconfig_nr_flexran()
if
(
!
GNBParamList
.
paramarray
[
i
][
GNB_GNB_ID_IDX
].
uptr
)
{
if
(
!
GNBParamList
.
paramarray
[
i
][
GNB_GNB_ID_IDX
].
uptr
)
{
// Calculate a default gNB ID
// Calculate a default gNB ID
if
(
EPC_MODE_ENABLED
)
if
(
EPC_MODE_ENABLED
)
gnb_id
=
i
+
(
ngap_generate_g
NB_id
()
&
0xFFFF8
);
gnb_id
=
i
+
(
s1ap_generate_e
NB_id
()
&
0xFFFF8
);
else
else
gnb_id
=
i
;
gnb_id
=
i
;
}
else
{
}
else
{
...
@@ -569,7 +570,7 @@ void RCconfig_NRRRC(MessageDef *msg_p, uint32_t i, gNB_RRC_INST *rrc) {
...
@@ -569,7 +570,7 @@ void RCconfig_NRRRC(MessageDef *msg_p, uint32_t i, gNB_RRC_INST *rrc) {
// Calculate a default gNB ID
// Calculate a default gNB ID
if
(
EPC_MODE_ENABLED
)
{
if
(
EPC_MODE_ENABLED
)
{
uint32_t
hash
;
uint32_t
hash
;
hash
=
ngap_generate_g
NB_id
();
hash
=
s1ap_generate_e
NB_id
();
gnb_id
=
i
+
(
hash
&
0xFFFF8
);
gnb_id
=
i
+
(
hash
&
0xFFFF8
);
}
else
{
}
else
{
gnb_id
=
i
;
gnb_id
=
i
;
...
@@ -786,7 +787,7 @@ int RCconfig_NR_NG(MessageDef *msg_p, uint32_t i) {
...
@@ -786,7 +787,7 @@ int RCconfig_NR_NG(MessageDef *msg_p, uint32_t i) {
if
(
EPC_MODE_ENABLED
)
{
if
(
EPC_MODE_ENABLED
)
{
uint32_t
hash
;
uint32_t
hash
;
hash
=
ngap_generate_g
NB_id
();
hash
=
s1ap_generate_e
NB_id
();
gnb_id
=
k
+
(
hash
&
0xFFFF8
);
gnb_id
=
k
+
(
hash
&
0xFFFF8
);
}
else
{
}
else
{
gnb_id
=
k
;
gnb_id
=
k
;
...
@@ -1035,7 +1036,7 @@ int RCconfig_NR_X2(MessageDef *msg_p, uint32_t i) {
...
@@ -1035,7 +1036,7 @@ int RCconfig_NR_X2(MessageDef *msg_p, uint32_t i) {
// Calculate a default eNB ID
// Calculate a default eNB ID
if
(
EPC_MODE_ENABLED
)
{
if
(
EPC_MODE_ENABLED
)
{
uint32_t
hash
;
uint32_t
hash
;
hash
=
ngap_generate_g
NB_id
();
hash
=
s1ap_generate_e
NB_id
();
gnb_id
=
k
+
(
hash
&
0xFFFF8
);
gnb_id
=
k
+
(
hash
&
0xFFFF8
);
}
else
{
}
else
{
gnb_id
=
k
;
gnb_id
=
k
;
...
...
This diff is collapsed.
Click to expand it.
openair2/GNB_APP/gnb_config.h
View file @
8f3adc8b
...
@@ -39,6 +39,7 @@
...
@@ -39,6 +39,7 @@
#include "platform_constants.h"
#include "platform_constants.h"
#include "PHY/defs_eNB.h"
#include "PHY/defs_eNB.h"
#include "s1ap_messages_types.h"
#include "s1ap_messages_types.h"
#include "ngap_messages_types.h"
#ifdef CMAKER
#ifdef CMAKER
#include "rrc_messages_types.h"
#include "rrc_messages_types.h"
...
...
This diff is collapsed.
Click to expand it.
openair3/COMMON/messages_types.h
View file @
8f3adc8b
...
@@ -39,6 +39,7 @@
...
@@ -39,6 +39,7 @@
#include "udp_messages_types.h"
#include "udp_messages_types.h"
#include "mme_app_messages_types.h"
#include "mme_app_messages_types.h"
#include "m2ap_messages_types.h"
#include "m2ap_messages_types.h"
#include "ngap_messages_types.h"
#endif
/* MESSAGES_TYPES_H_ */
#endif
/* MESSAGES_TYPES_H_ */
This diff is collapsed.
Click to expand it.
openair3/NGAP/ngap_gNB.c
View file @
8f3adc8b
...
@@ -64,7 +64,6 @@
...
@@ -64,7 +64,6 @@
#include "oaisim_amf_test_s1c.h"
#include "oaisim_amf_test_s1c.h"
#endif
#endif
ngap_gNB_config_t
ngap_config
;
static
int
ngap_gNB_generate_ng_setup_request
(
static
int
ngap_gNB_generate_ng_setup_request
(
ngap_gNB_instance_t
*
instance_p
,
ngap_gNB_amf_data_t
*
ngap_amf_data_p
);
ngap_gNB_instance_t
*
instance_p
,
ngap_gNB_amf_data_t
*
ngap_amf_data_p
);
...
...
This diff is collapsed.
Click to expand it.
openair3/NGAP/ngap_gNB.h
View file @
8f3adc8b
...
@@ -30,15 +30,6 @@
...
@@ -30,15 +30,6 @@
#ifndef NGAP_GNB_H_
#ifndef NGAP_GNB_H_
#define NGAP_GNB_H_
#define NGAP_GNB_H_
typedef
struct
ngap_gNB_config_s
{
// AMF related params
unsigned
char
amf_enabled
;
///< AMF enabled ?
}
ngap_gNB_config_t
;
extern
ngap_gNB_config_t
ngap_config
;
#define EPC_MODE_ENABLED ngap_config.amf_enabled
void
*
ngap_gNB_process_itti_msg
(
void
*
);
void
*
ngap_gNB_process_itti_msg
(
void
*
);
void
ngap_gNB_init
(
void
);
void
ngap_gNB_init
(
void
);
void
*
ngap_gNB_task
(
void
*
arg
);
void
*
ngap_gNB_task
(
void
*
arg
);
...
...
This diff is collapsed.
Click to expand it.
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