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
常顺宇
OpenXG-RAN
Commits
51c86dd4
Commit
51c86dd4
authored
Aug 24, 2018
by
frtabu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix noS1 build failure
parent
77f70e77
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
30 additions
and
16 deletions
+30
-16
openair2/ENB_APP/enb_app.c
openair2/ENB_APP/enb_app.c
+9
-7
openair2/ENB_APP/enb_config.c
openair2/ENB_APP/enb_config.c
+5
-1
openair2/RRC/LTE/rrc_eNB.c
openair2/RRC/LTE/rrc_eNB.c
+8
-6
targets/COMMON/create_tasks.c
targets/COMMON/create_tasks.c
+4
-2
targets/RT/USER/lte-softmodem.c
targets/RT/USER/lte-softmodem.c
+4
-0
No files found.
openair2/ENB_APP/enb_app.c
View file @
51c86dd4
...
...
@@ -44,6 +44,8 @@
# include "s1ap_eNB.h"
# include "sctp_eNB_task.h"
# include "gtpv1u_eNB_task.h"
# else
# define EPC_MODE_ENABLED 0
# endif
#include "openair1/PHY/INIT/phy_init.h"
...
...
@@ -182,15 +184,15 @@ void *eNB_app_task(void *args_p)
configure_rrc
(
enb_id
);
}
if
(
EPC_MODE_ENABLED
)
{
# if defined(ENABLE_USE_MME)
/* Try to register each eNB */
registered_enb
=
0
;
register_enb_pending
=
eNB_app_register
(
enb_id_start
,
enb_id_end
);
//, enb_properties_p);
}
else
{
#else
/* Start L2L1 task */
msg_p
=
itti_alloc_new_message
(
TASK_ENB_APP
,
INITIALIZE_MESSAGE
);
itti_send_msg_to_task
(
TASK_L2L1
,
INSTANCE_DEFAULT
,
msg_p
);
}
#endif
do
{
// Wait for a message
...
...
@@ -209,7 +211,7 @@ void *eNB_app_task(void *args_p)
break
;
case
S1AP_REGISTER_ENB_CNF
:
if
(
EPC_MODE_ENABLED
)
{
# if defined(ENABLE_USE_MME)
LOG_I
(
ENB_APP
,
"[eNB %d] Received %s: associated MME %d
\n
"
,
instance
,
ITTI_MSG_NAME
(
msg_p
),
S1AP_REGISTER_ENB_CNF
(
msg_p
).
nb_mme
);
...
...
@@ -246,7 +248,7 @@ void *eNB_app_task(void *args_p)
}
}
}
}
/*if (EPC_MODE_ENABLED) */
#endif
break
;
case
S1AP_DEREGISTERED_ENB_IND
:
...
...
@@ -259,7 +261,7 @@ void *eNB_app_task(void *args_p)
break
;
case
TIMER_HAS_EXPIRED
:
if
(
EPC_MODE_ENABLED
)
{
# if defined(ENABLE_USE_MME)
LOG_I
(
ENB_APP
,
" Received %s: timer_id %ld
\n
"
,
ITTI_MSG_NAME
(
msg_p
),
TIMER_HAS_EXPIRED
(
msg_p
).
timer_id
);
if
(
TIMER_HAS_EXPIRED
(
msg_p
).
timer_id
==
enb_register_retry_timer_id
)
{
...
...
@@ -267,7 +269,7 @@ void *eNB_app_task(void *args_p)
registered_enb
=
0
;
register_enb_pending
=
eNB_app_register
(
enb_id_start
,
enb_id_end
);
//, enb_properties_p);
}
}
/*if (EPC_MODE_ENABLED) */
#endif
break
;
...
...
openair2/ENB_APP/enb_config.c
View file @
51c86dd4
...
...
@@ -40,7 +40,9 @@
# if defined(ENABLE_USE_MME)
# include "s1ap_eNB.h"
# include "sctp_eNB_task.h"
# endif
# else
# define EPC_MODE_ENABLED 0
# endif
#endif
#include "sctp_default_values.h"
#include "SystemInformationBlockType2.h"
...
...
@@ -2350,7 +2352,9 @@ void RCConfig(void) {
printf
(
"Getting ENBSParams
\n
"
);
config_get
(
ENBSParams
,
sizeof
(
ENBSParams
)
/
sizeof
(
paramdef_t
),
NULL
);
# if defined(ENABLE_USE_MME)
EPC_MODE_ENABLED
=
((
*
ENBSParams
[
ENB_NOS1_IDX
].
uptr
)
==
0
);
#endif
RC
.
nb_inst
=
ENBSParams
[
ENB_ACTIVE_ENBS_IDX
].
numelt
;
if
(
RC
.
nb_inst
>
0
)
{
...
...
openair2/RRC/LTE/rrc_eNB.c
View file @
51c86dd4
...
...
@@ -85,6 +85,8 @@
# else
# include "../../S1AP/s1ap_eNB.h"
# endif
#else
# define EPC_MODE_ENABLED 0
#endif
#include "pdcp.h"
...
...
@@ -1415,7 +1417,7 @@ rrc_eNB_process_RRCConnectionReestablishmentComplete(
ue_context_pP
->
ue_context
.
Srb1
.
Active
=
1
;
//ue_context_pP->ue_context.Srb2.Srb_info.Srb_id = 2;
if
(
EPC_MODE_ENABLED
)
{
#if defined(ENABLE_USE_MME)
hashtable_rc_t
h_rc
;
int
j
;
rrc_ue_s1ap_ids_t
*
rrc_ue_s1ap_ids_p
=
NULL
;
...
...
@@ -1459,18 +1461,18 @@ rrc_eNB_process_RRCConnectionReestablishmentComplete(
ctxt_pP
->
instance
,
&
create_tunnel_req
,
reestablish_rnti
);
}
/* EPC_MODE_ENABLED */
#endif
/* Update RNTI in ue_context */
ue_context_pP
->
ue_id_rnti
=
ctxt_pP
->
rnti
;
// here ue_id_rnti is just a key, may be something else
ue_context_pP
->
ue_context
.
rnti
=
ctxt_pP
->
rnti
;
if
(
EPC_MODE_ENABLED
)
{
#if defined(ENABLE_USE_MME)
uint8_t
send_security_mode_command
=
FALSE
;
rrc_pdcp_config_security
(
ctxt_pP
,
ue_context_pP
,
send_security_mode_command
);
LOG_D
(
RRC
,
"set security successfully
\n
"
);
}
#endif
// Measurement ID list
MeasId_list
=
CALLOC
(
1
,
sizeof
(
*
MeasId_list
));
memset
((
void
*
)
MeasId_list
,
0
,
sizeof
(
*
MeasId_list
));
...
...
@@ -6662,7 +6664,7 @@ rrc_eNB_decode_dcch(
}
}
#if defined(ENABLE_ITTI)
if
(
EPC_MODE_ENABLED
==
1
)
{
#if defined(ENABLE_USE_MME)
if
(
dedicated_DRB
==
1
){
// rrc_eNB_send_S1AP_E_RAB_SETUP_RESP(ctxt_pP,
// ue_context_p,
...
...
@@ -6727,7 +6729,7 @@ if (ue_context_p->ue_context.nb_of_modify_e_rabs > 0) {
}
}
}
}
#endif
#else // establish a dedicated bearer
if
(
dedicated_DRB
==
0
)
{
// ue_context_p->ue_context.e_rab[0].status = E_RAB_STATUS_ESTABLISHED;
...
...
targets/COMMON/create_tasks.c
View file @
51c86dd4
...
...
@@ -31,6 +31,8 @@
# include "nas_ue_task.h"
# include "udp_eNB_task.h"
# include "gtpv1u_eNB_task.h"
# else
# define EPC_MODE_ENABLED 0
# endif
# if ENABLE_RAL
# include "lteRALue.h"
...
...
@@ -59,7 +61,7 @@ int create_tasks(uint32_t enb_nb)
return
-
1
;
}
}
# if defined(ENABLE_USE_MME)
if
(
EPC_MODE_ENABLED
)
{
if
(
enb_nb
>
0
)
{
if
(
itti_create_task
(
TASK_SCTP
,
sctp_eNB_task
,
NULL
)
<
0
)
{
...
...
@@ -85,7 +87,7 @@ int create_tasks(uint32_t enb_nb)
}
}
/* if (EPC_MODE_ENABLED) */
#endif
if
(
enb_nb
>
0
)
{
LOG_I
(
RRC
,
"Creating RRC eNB Task
\n
"
);
...
...
targets/RT/USER/lte-softmodem.c
View file @
51c86dd4
...
...
@@ -108,6 +108,10 @@ unsigned char scope_enb_num_ue = 2;
static
pthread_t
forms_thread
;
//xforms
#endif //XFORMS
#ifndef ENABLE_USE_MME
#define EPC_MODE_ENABLED 0
#endif
pthread_cond_t
nfapi_sync_cond
;
pthread_mutex_t
nfapi_sync_mutex
;
int
nfapi_sync_var
=-
1
;
//!< protected by mutex \ref nfapi_sync_mutex
...
...
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