Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG UE
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
OpenXG UE
Commits
ad055d84
Commit
ad055d84
authored
Nov 21, 2018
by
Louis Adrien Dufrene
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add test on ue_context
parent
5b2bc455
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
46 additions
and
15 deletions
+46
-15
openair2/ENB_APP/enb_config.c
openair2/ENB_APP/enb_config.c
+2
-2
openair2/LAYER2/MAC/eNB_scheduler_dlsch.c
openair2/LAYER2/MAC/eNB_scheduler_dlsch.c
+8
-1
openair2/LAYER2/MAC/eNB_scheduler_ulsch.c
openair2/LAYER2/MAC/eNB_scheduler_ulsch.c
+9
-2
openair2/RRC/LTE/rrc_eNB_S1AP.c
openair2/RRC/LTE/rrc_eNB_S1AP.c
+27
-10
No files found.
openair2/ENB_APP/enb_config.c
View file @
ad055d84
...
...
@@ -60,7 +60,7 @@
#include "RRC_config_tools.h"
#include "enb_paramdef.h"
//
#define RRC_INACTIVITY_THRESH 0
#define RRC_INACTIVITY_THRESH 0
extern
uint16_t
sf_ahead
;
extern
void
set_parallel_conf
(
char
*
parallel_conf
);
...
...
@@ -581,7 +581,7 @@ int RCconfig_RRC(MessageDef *msg_p, uint32_t i, eNB_RRC_INST *rrc) {
for
(
int
I
=
0
;
I
<
sizeof
(
PLMNParams
)
/
sizeof
(
paramdef_t
);
++
I
)
PLMNParams
[
I
].
chkPptr
=
&
(
config_check_PLMNParams
[
I
]);
RRC_CONFIGURATION_REQ
(
msg_p
).
rrc_inactivity_timer_thres
=
0
;
//
RRC_INACTIVITY_THRESH; // set to 0 to deactivate
RRC_CONFIGURATION_REQ
(
msg_p
).
rrc_inactivity_timer_thres
=
RRC_INACTIVITY_THRESH
;
// set to 0 to deactivate
RRC_CONFIGURATION_REQ
(
msg_p
).
cell_identity
=
enb_id
;
RRC_CONFIGURATION_REQ
(
msg_p
).
tac
=
*
ENBParamList
.
paramarray
[
i
][
ENB_TRACKING_AREA_CODE_IDX
].
uptr
;
AssertFatal
(
!
ENBParamList
.
paramarray
[
i
][
ENB_MOBILE_COUNTRY_CODE_IDX_OLD
].
strptr
...
...
openair2/LAYER2/MAC/eNB_scheduler_dlsch.c
View file @
ad055d84
...
...
@@ -1084,7 +1084,14 @@ schedule_ue_spec(module_id_t module_idP, int slice_idxP,
UE_list
->
UE_sched_ctrl
[
UE_id
].
uplane_inactivity_timer
=
0
;
// reset RRC inactivity timer after uplane activity
ue_contextP
=
rrc_eNB_get_ue_context
(
RC
.
rrc
[
module_idP
],
rnti
);
ue_contextP
->
ue_context
.
ue_rrc_inactivity_timer
=
1
;
if
(
ue_contextP
!=
NULL
)
{
ue_contextP
->
ue_context
.
ue_rrc_inactivity_timer
=
1
;
}
else
{
LOG_E
(
MAC
,
"[eNB %d] CC_id %d Couldn't find the context associated to UE (RNTI %d) and reset RRC inactivity timer
\n
"
,
module_idP
,
CC_id
,
rnti
);
}
}
// end if (rlc_status.bytes_in_buffer > 0)
}
else
{
// no TBS left
break
;
// break for (lcid = NB_RB_MAX - 1; lcid >= DTCH; lcid--)
...
...
openair2/LAYER2/MAC/eNB_scheduler_ulsch.c
View file @
ad055d84
...
...
@@ -716,8 +716,15 @@ rx_sdu(const module_id_t enb_mod_idP,
//clear uplane_inactivity_timer
UE_list
->
UE_sched_ctrl
[
UE_id
].
uplane_inactivity_timer
=
0
;
// reset RRC inactivity timer after uplane activity
ue_contextP
=
rrc_eNB_get_ue_context
(
RC
.
rrc
[
enb_mod_idP
],
rntiP
);
ue_contextP
->
ue_context
.
ue_rrc_inactivity_timer
=
1
;
ue_contextP
=
rrc_eNB_get_ue_context
(
RC
.
rrc
[
enb_mod_idP
],
current_rnti
);
if
(
ue_contextP
!=
NULL
)
{
ue_contextP
->
ue_context
.
ue_rrc_inactivity_timer
=
1
;
}
else
{
LOG_E
(
MAC
,
"[eNB %d] CC_id %d Couldn't find the context associated to UE (RNTI %d) and reset RRC inactivity timer
\n
"
,
enb_mod_idP
,
CC_idP
,
current_rnti
);
}
}
else
{
/* rx_length[i] */
UE_list
->
eNB_UE_stats
[
CC_idP
][
UE_id
].
num_errors_rx
+=
1
;
LOG_E
(
MAC
,
"[eNB %d] CC_id %d Frame %d : Max size of transport block reached LCID %d from UE %d "
,
...
...
openair2/RRC/LTE/rrc_eNB_S1AP.c
View file @
ad055d84
...
...
@@ -216,6 +216,8 @@ rrc_eNB_S1AP_get_ue_ids(
result2
->
ue_initial_id
,
result
->
eNB_ue_s1ap_id
,
result2
->
eNB_ue_s1ap_id
);
// Still return *result
}
}
}
// end if if (eNB_ue_s1ap_id > 0)
...
...
@@ -223,6 +225,8 @@ rrc_eNB_S1AP_get_ue_ids(
LOG_E
(
S1AP
,
"[eNB %ld] In hashtable_get, couldn't find in initial_id2_s1ap_ids ue_initial_id %"
PRIu16
"
\n
"
,
rrc_instance_pP
-
RC
.
rrc
[
0
],
ue_initial_id
);
return
NULL
;
/*
* At the moment this is written, this case shouldn't (cannot) happen and is equivalent to an error.
* One could try to find the struct instance based on s1ap_id2_s1ap_ids and eNB_ue_s1ap_id (if > 0),
...
...
@@ -245,25 +249,38 @@ rrc_eNB_S1AP_get_ue_ids(
eNB_ue_s1ap_id
);
instance
=
ENB_MODULE_ID_TO_INSTANCE
(
rrc_instance_pP
-
RC
.
rrc
[
0
]);
// get eNB instance
s1ap_eNB_instance_p
=
s1ap_eNB_get_instance
(
instance
);
// get s1ap_eNB_instance
ue_desc_p
=
s1ap_eNB_get_ue_context
(
s1ap_eNB_instance_p
,
eNB_ue_s1ap_id
);
// get s1ap_eNB_ue_context
if
(
s1ap_eNB_instance_p
!=
NULL
)
{
ue_desc_p
=
s1ap_eNB_get_ue_context
(
s1ap_eNB_instance_p
,
eNB_ue_s1ap_id
);
// get s1ap_eNB_ue_context
}
else
{
LOG_E
(
S1AP
,
"[eNB instance %d] Couldn't find the eNB S1AP context
\n
"
,
instance
);
return
NULL
;
}
if
(
ue_desc_p
!=
NULL
)
{
result
=
rrc_eNB_S1AP_get_ue_ids
(
rrc_instance_pP
,
ue_desc_p
->
ue_initial_id
,
eNB_ue_s1ap_id
);
ue_context_p
=
rrc_eNB_get_ue_context
(
RC
.
rrc
[
ENB_INSTANCE_TO_MODULE_ID
(
instance
)],
result
->
ue_rnti
);
if
((
ue_context_p
!=
NULL
)
&&
(
ue_context_p
->
ue_context
.
eNB_ue_s1ap_id
==
0
))
{
ue_context_p
->
ue_context
.
eNB_ue_s1ap_id
=
eNB_ue_s1ap_id
;
}
else
{
LOG_E
(
RRC
,
"[eNB %ld] Incoherence between RRC context and S1AP context (%d != %d) for UE RNTI %d or UE RRC context doesn't exist
\n
"
,
rrc_instance_pP
-
RC
.
rrc
[
0
],
ue_context_p
->
ue_context
.
eNB_ue_s1ap_id
,
eNB_ue_s1ap_id
,
result
->
ue_rnti
);
if
(
result
!=
NULL
)
{
ue_context_p
=
rrc_eNB_get_ue_context
(
RC
.
rrc
[
ENB_INSTANCE_TO_MODULE_ID
(
instance
)],
result
->
ue_rnti
);
if
((
ue_context_p
!=
NULL
)
&&
(
ue_context_p
->
ue_context
.
eNB_ue_s1ap_id
==
0
))
{
ue_context_p
->
ue_context
.
eNB_ue_s1ap_id
=
eNB_ue_s1ap_id
;
}
else
{
LOG_E
(
RRC
,
"[eNB %ld] Incoherence between RRC context and S1AP context (%d != %d) for UE RNTI %d or UE RRC context doesn't exist
\n
"
,
rrc_instance_pP
-
RC
.
rrc
[
0
],
ue_context_p
->
ue_context
.
eNB_ue_s1ap_id
,
eNB_ue_s1ap_id
,
result
->
ue_rnti
);
}
}
}
else
{
LOG_E
(
S1AP
,
"[eNB %ld] In hashtable_get, couldn't find in s1ap_id2_s1ap_ids eNB_ue_s1ap_id %"
PRIu32
", even when looking at S1AP context
\n
"
,
rrc_instance_pP
-
RC
.
rrc
[
0
],
eNB_ue_s1ap_id
);
return
NULL
;
}
}
// end if (h_rc != HASH_TABLE_OK)
}
// end if (eNB_ue_s1ap_id > 0)
...
...
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