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
wangjie
OpenXG-RAN
Commits
fdd47e57
Commit
fdd47e57
authored
Oct 25, 2018
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
RAN API: add functions for getting UE RNTIs directly from RRC
parent
e0742be7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
38 additions
and
0 deletions
+38
-0
openair2/ENB_APP/flexran_agent_ran_api.c
openair2/ENB_APP/flexran_agent_ran_api.c
+28
-0
openair2/ENB_APP/flexran_agent_ran_api.h
openair2/ENB_APP/flexran_agent_ran_api.h
+10
-0
No files found.
openair2/ENB_APP/flexran_agent_ran_api.c
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
)
{
...
...
openair2/ENB_APP/flexran_agent_ran_api.h
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
...
...
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