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
6ae27efa
Commit
6ae27efa
authored
Oct 31, 2018
by
OAI-admin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor update in format, variable ctxt removed in rrc_eNB_free_UE()
parent
bba23c78
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
39 deletions
+37
-39
openair2/RRC/LTE/rrc_eNB.c
openair2/RRC/LTE/rrc_eNB.c
+36
-38
openair2/RRC/LTE/rrc_eNB_S1AP.c
openair2/RRC/LTE/rrc_eNB_S1AP.c
+1
-1
No files found.
openair2/RRC/LTE/rrc_eNB.c
View file @
6ae27efa
...
...
@@ -842,11 +842,11 @@ rrc_eNB_free_UE(
const
struct
rrc_eNB_ue_context_s
*
const
ue_context_pP
)
//-----------------------------------------------------------------------------
{
protocol_ctxt_t
ctxt
;
//protocol_ctxt_t ctxt; // rm ?
rnti_t
rnti
=
ue_context_pP
->
ue_context
.
rnti
;
if
(
enb_mod_idP
>=
NB_eNB_INST
)
{
LOG_
I
(
RRC
,
"eNB instance invalid (%d/%d) for UE %x!
\n
"
,
LOG_
E
(
RRC
,
"eNB instance invalid (%d/%d) for UE %x!
\n
"
,
enb_mod_idP
,
NB_eNB_INST
,
rnti
);
...
...
@@ -854,49 +854,47 @@ rrc_eNB_free_UE(
return
;
}
if
(
NULL
!=
ue_context_pP
)
{
PROTOCOL_CTXT_SET_BY_MODULE_ID
(
&
ctxt
,
enb_mod_idP
,
ENB_FLAG_YES
,
rnti
,
0
,
0
,
enb_mod_idP
);
LOG_W
(
RRC
,
"[eNB %d] Removing UE RNTI %x
\n
"
,
enb_mod_idP
,
rnti
);
//PROTOCOL_CTXT_SET_BY_MODULE_ID(&ctxt, enb_mod_idP, ENB_FLAG_YES, rnti, 0, 0, enb_mod_idP); // rm ?
if
(
EPC_MODE_ENABLED
)
{
if
((
ue_context_pP
->
ue_context
.
ul_failure_timer
>=
20000
)
&&
(
mac_eNB_get_rrc_status
(
enb_mod_idP
,
rnti
)
>=
RRC_CONNECTED
))
{
LOG_I
(
RRC
,
"[eNB %d] S1AP_UE_CONTEXT_RELEASE_REQ sent for RNTI %x, cause 21, radio connection with ue lost
\n
"
,
enb_mod_idP
,
rnti
);
rrc_eNB_send_S1AP_UE_CONTEXT_RELEASE_REQ
(
enb_mod_idP
,
ue_context_pP
,
S1AP_CAUSE_RADIO_NETWORK
,
21
);
// send cause 21: radio connection with ue lost
/* From 3GPP 36300v10 p129 : 19.2.2.2.2 S1 UE Context Release Request (eNB triggered)
* If the E-UTRAN internal reason is a radio link failure detected in the eNB, the eNB shall wait a sufficient time before
* triggering the S1 UE Context Release Request procedure in order to allow the UE to perform the NAS recovery
* procedure, see TS 23.401 [17].
*/
return
;
}
if
(
EPC_MODE_ENABLED
)
{
if
((
ue_context_pP
->
ue_context
.
ul_failure_timer
>=
20000
)
&&
(
mac_eNB_get_rrc_status
(
enb_mod_idP
,
rnti
)
>=
RRC_CONNECTED
))
{
LOG_I
(
RRC
,
"[eNB %d] S1AP_UE_CONTEXT_RELEASE_REQ sent for RNTI %x, cause 21, radio connection with ue lost
\n
"
,
enb_mod_idP
,
rnti
);
if
((
ue_context_pP
->
ue_context
.
ue_rrc_inactivity_timer
>=
ue_context_pP
->
ue_context
.
ue_rrc_inactivity_timer_thres
)
&&
(
mac_eNB_get_rrc_status
(
enb_mod_idP
,
rnti
)
>=
RRC_CONNECTED
))
{
LOG_I
(
RRC
,
"[eNB %d] S1AP_UE_CONTEXT_RELEASE_REQ sent for RNTI %x, cause 20, user inactivity
\n
"
,
enb_mod_idP
,
rnti
);
rrc_eNB_send_S1AP_UE_CONTEXT_RELEASE_REQ
(
enb_mod_idP
,
ue_context_pP
,
S1AP_CAUSE_RADIO_NETWORK
,
21
);
// send cause 21: radio connection with ue lost
/* From 3GPP 36300v10 p129 : 19.2.2.2.2 S1 UE Context Release Request (eNB triggered)
* If the E-UTRAN internal reason is a radio link failure detected in the eNB, the eNB shall wait a sufficient time before
* triggering the S1 UE Context Release Request procedure in order to allow the UE to perform the NAS recovery
* procedure, see TS 23.401 [17].
*/
rrc_eNB_send_S1AP_UE_CONTEXT_RELEASE_REQ
(
enb_mod_idP
,
ue_context_pP
,
S1AP_CAUSE_RADIO_NETWORK
,
20
);
// send cause 20: user inactivity
return
;
}
if
((
ue_context_pP
->
ue_context
.
ue_rrc_inactivity_timer
>=
ue_context_pP
->
ue_context
.
ue_rrc_inactivity_timer_thres
)
&&
(
mac_eNB_get_rrc_status
(
enb_mod_idP
,
rnti
)
>=
RRC_CONNECTED
))
{
LOG_I
(
RRC
,
"[eNB %d] S1AP_UE_CONTEXT_RELEASE_REQ sent for RNTI %x, cause 20, user inactivity
\n
"
,
enb_mod_idP
,
rnti
);
rrc_eNB_send_S1AP_UE_CONTEXT_RELEASE_REQ
(
enb_mod_idP
,
ue_context_pP
,
S1AP_CAUSE_RADIO_NETWORK
,
20
);
// send cause 20: user inactivity
return
;
}
return
;
}
}
// add UE info to freeList
LOG_I
(
RRC
,
"Put UE %x into freeList
\n
"
,
rnti
);
LOG_W
(
RRC
,
"[eNB %d] Removing UE RNTI %x
\n
"
,
enb_mod_idP
,
rnti
);
put_UE_in_freelist
(
enb_mod_idP
,
rnti
,
1
);
}
// add UE info to freeList
LOG_I
(
RRC
,
"Put UE %x into freeList
\n
"
,
rnti
);
put_UE_in_freelist
(
enb_mod_idP
,
rnti
,
1
);
}
void
remove_UE_from_freelist
(
module_id_t
mod_id
,
rnti_t
rnti
)
...
...
openair2/RRC/LTE/rrc_eNB_S1AP.c
View file @
6ae27efa
...
...
@@ -1184,7 +1184,7 @@ rrc_eNB_send_S1AP_UE_CONTEXT_RELEASE_REQ(
//------------------------------------------------------------------------------
{
if
(
ue_context_pP
==
NULL
)
{
LOG_
W
(
RRC
,
"[eNB] In S1AP_UE_CONTEXT_RELEASE_REQ: invalid UE
\n
"
);
LOG_
E
(
RRC
,
"[eNB] In S1AP_UE_CONTEXT_RELEASE_REQ: invalid UE
\n
"
);
}
else
{
MSC_LOG_TX_MESSAGE
(
MSC_RRC_ENB
,
MSC_S1AP_ENB
,
...
...
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