Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
openairinterface5G
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
oai
openairinterface5G
Commits
fdd47e57
Commit
fdd47e57
authored
6 years ago
by
Robert Schmidt
Browse files
Options
Downloads
Patches
Plain Diff
RAN API: add functions for getting UE RNTIs directly from RRC
parent
e0742be7
No related branches found
No related tags found
4 merge requests
!650
Release v1.1.0 Candidate
,
!588
Develop nr merge
,
!551
Develop Integration Branch 2019 week 13
,
!524
Feature 127 protocol split
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
openair2/ENB_APP/flexran_agent_ran_api.c
+28
-0
28 additions, 0 deletions
openair2/ENB_APP/flexran_agent_ran_api.c
openair2/ENB_APP/flexran_agent_ran_api.h
+10
-0
10 additions, 0 deletions
openair2/ENB_APP/flexran_agent_ran_api.h
with
38 additions
and
0 deletions
openair2/ENB_APP/flexran_agent_ran_api.c
+
28
−
0
View file @
fdd47e57
...
...
@@ -747,7 +747,35 @@ uint8_t flexran_get_num_pdcch_symb(mid_t mod_id, uint8_t cc_id)
* Get Messages for UE Configuration Reply
* ************************************
*/
int
flexran_get_rrc_num_ues
(
mid_t
mod_id
)
{
if
(
!
rrc_is_present
(
mod_id
))
return
0
;
return
RC
.
rrc
[
mod_id
]
->
Nb_ue
;
}
rnti_t
flexran_get_rrc_rnti_nth_ue
(
mid_t
mod_id
,
int
index
)
{
if
(
!
rrc_is_present
(
mod_id
))
return
0
;
struct
rrc_eNB_ue_context_s
*
ue_context_p
=
NULL
;
RB_FOREACH
(
ue_context_p
,
rrc_ue_tree_s
,
&
RC
.
rrc
[
mod_id
]
->
rrc_ue_head
)
{
if
(
index
==
0
)
return
ue_context_p
->
ue_context
.
rnti
;
--
index
;
}
return
0
;
}
int
flexran_get_rrc_rnti_list
(
mid_t
mod_id
,
rnti_t
*
list
,
int
max_list
)
{
if
(
!
rrc_is_present
(
mod_id
))
return
0
;
int
n
=
0
;
struct
rrc_eNB_ue_context_s
*
ue_context_p
=
NULL
;
RB_FOREACH
(
ue_context_p
,
rrc_ue_tree_s
,
&
RC
.
rrc
[
mod_id
]
->
rrc_ue_head
)
{
if
(
n
>=
max_list
)
break
;
list
[
n
]
=
ue_context_p
->
ue_context
.
rnti
;
++
n
;
}
return
n
;
}
TimeAlignmentTimer_t
flexran_get_time_alignment_timer
(
mid_t
mod_id
,
mid_t
ue_id
)
{
...
...
This diff is collapsed.
Click to expand it.
openair2/ENB_APP/flexran_agent_ran_api.h
+
10
−
0
View file @
fdd47e57
...
...
@@ -304,6 +304,16 @@ Protocol__FlexPhichDuration flexran_get_phich_duration(mid_t mod_id, uint8_t cc_
* Get Messages for UE Configuration Reply
* ************************************
*/
/* Get the number of attached UEs for the RRC */
int
flexran_get_rrc_num_ues
(
mid_t
mod_id
);
/* Get the RNTI of UE at index 'index' in RRC list */
rnti_t
flexran_get_rrc_rnti_nth_ue
(
mid_t
mod_id
,
int
index
);
/* Get the list of RNTIs of up to max_list entries. When max_list >=
* flexran_get_rrc_num_ues(), gets a list of all UEs registered in the RRC. UE
* RNTIs are saved in list, returns number of saved RNTIs */
int
flexran_get_rrc_rnti_list
(
mid_t
mod_id
,
rnti_t
*
list
,
int
max_list
);
/* Get timer in subframes. Controls the synchronization
status of the UE, not the actual timing
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment