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
Michael Black
OpenXG UE
Commits
b3b8bdc6
Commit
b3b8bdc6
authored
Oct 25, 2018
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Create RAN API flexran_get_num_ue_lcs() [no dedicated bearers detection]
parent
19face71
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
0 deletions
+18
-0
openair2/ENB_APP/flexran_agent_ran_api.c
openair2/ENB_APP/flexran_agent_ran_api.c
+14
-0
openair2/ENB_APP/flexran_agent_ran_api.h
openair2/ENB_APP/flexran_agent_ran_api.h
+4
-0
No files found.
openair2/ENB_APP/flexran_agent_ran_api.c
View file @
b3b8bdc6
...
...
@@ -114,6 +114,20 @@ int flexran_get_num_ues(mid_t mod_id)
return
RC
.
mac
[
mod_id
]
->
UE_list
.
num_UEs
;
}
int
flexran_get_num_ue_lcs
(
mid_t
mod_id
,
mid_t
ue_id
)
{
if
(
!
mac_is_present
(
mod_id
))
return
0
;
// Not sure whether this is needed: if (!rrc_is_present(mod_id)) return 0;
const
rnti_t
rnti
=
flexran_get_ue_crnti
(
mod_id
,
ue_id
);
const
int
s
=
mac_eNB_get_rrc_status
(
mod_id
,
rnti
);
if
(
s
<
RRC_CONNECTED
)
return
0
;
else
if
(
s
==
RRC_CONNECTED
)
return
1
;
else
return
3
;
}
rnti_t
flexran_get_ue_crnti
(
mid_t
mod_id
,
mid_t
ue_id
)
{
if
(
!
mac_is_present
(
mod_id
))
return
0
;
...
...
openair2/ENB_APP/flexran_agent_ran_api.h
View file @
b3b8bdc6
...
...
@@ -73,6 +73,10 @@ uint16_t flexran_get_future_sfn_sf(mid_t mod_id, int ahead_of_time);
/* Return the number of attached UEs */
int
flexran_get_num_ues
(
mid_t
mod_id
);
/* Get the number of logical channels per UE. This function does not consider
* dedicated bearers yet */
int
flexran_get_num_ue_lcs
(
mid_t
mod_id
,
mid_t
ue_id
);
/* Get the rnti of a UE with id ue_id */
rnti_t
flexran_get_ue_crnti
(
mid_t
mod_id
,
mid_t
ue_id
);
...
...
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