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
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
Worker.N
openairinterface5G
Commits
a7b114c4
Commit
a7b114c4
authored
6 years ago
by
Robert Schmidt
Browse files
Options
Downloads
Patches
Plain Diff
RAN API: Check for MAC presence
parent
fa7168a0
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
openair2/ENB_APP/flexran_agent_ran_api.c
+6
-0
6 additions, 0 deletions
openair2/ENB_APP/flexran_agent_ran_api.c
with
6 additions
and
0 deletions
openair2/ENB_APP/flexran_agent_ran_api.c
+
6
−
0
View file @
a7b114c4
...
...
@@ -73,6 +73,7 @@ sub_frame_t flexran_get_current_subframe(mid_t mod_id)
/* Why uint16_t, frame_t and sub_frame_t are defined as uint32_t? */
uint16_t
flexran_get_sfn_sf
(
mid_t
mod_id
)
{
if
(
!
mac_is_present
(
mod_id
))
return
0
;
frame_t
frame
=
flexran_get_current_system_frame_num
(
mod_id
);
sub_frame_t
subframe
=
flexran_get_current_subframe
(
mod_id
);
uint16_t
sfn_sf
,
frame_mask
,
sf_mask
;
...
...
@@ -86,6 +87,7 @@ uint16_t flexran_get_sfn_sf(mid_t mod_id)
uint16_t
flexran_get_future_sfn_sf
(
mid_t
mod_id
,
int
ahead_of_time
)
{
if
(
!
mac_is_present
(
mod_id
))
return
0
;
frame_t
frame
=
flexran_get_current_system_frame_num
(
mod_id
);
sub_frame_t
subframe
=
flexran_get_current_subframe
(
mod_id
);
uint16_t
sfn_sf
,
frame_mask
,
sf_mask
;
...
...
@@ -114,6 +116,7 @@ int flexran_get_num_ues(mid_t mod_id)
rnti_t
flexran_get_ue_crnti
(
mid_t
mod_id
,
mid_t
ue_id
)
{
if
(
!
mac_is_present
(
mod_id
))
return
0
;
return
UE_RNTI
(
mod_id
,
ue_id
);
}
...
...
@@ -137,6 +140,7 @@ uint8_t flexran_get_ue_wcqi(mid_t mod_id, mid_t ue_id)
rlc_buffer_occupancy_t
flexran_get_tx_queue_size
(
mid_t
mod_id
,
mid_t
ue_id
,
logical_chan_id_t
channel_id
)
{
if
(
!
mac_is_present
(
mod_id
))
return
0
;
rnti_t
rnti
=
flexran_get_ue_crnti
(
mod_id
,
ue_id
);
frame_t
frame
=
flexran_get_current_frame
(
mod_id
);
sub_frame_t
subframe
=
flexran_get_current_subframe
(
mod_id
);
...
...
@@ -150,6 +154,7 @@ rlc_buffer_occupancy_t flexran_get_tx_queue_size(mid_t mod_id, mid_t ue_id, logi
rlc_buffer_occupancy_t
flexran_get_num_pdus_buffer
(
mid_t
mod_id
,
mid_t
ue_id
,
logical_chan_id_t
channel_id
)
{
if
(
!
mac_is_present
(
mod_id
))
return
0
;
rnti_t
rnti
=
flexran_get_ue_crnti
(
mod_id
,
ue_id
);
frame_t
frame
=
flexran_get_current_frame
(
mod_id
);
sub_frame_t
subframe
=
flexran_get_current_subframe
(
mod_id
);
...
...
@@ -163,6 +168,7 @@ rlc_buffer_occupancy_t flexran_get_num_pdus_buffer(mid_t mod_id, mid_t ue_id, lo
frame_t
flexran_get_hol_delay
(
mid_t
mod_id
,
mid_t
ue_id
,
logical_chan_id_t
channel_id
)
{
if
(
!
mac_is_present
(
mod_id
))
return
0
;
rnti_t
rnti
=
flexran_get_ue_crnti
(
mod_id
,
ue_id
);
frame_t
frame
=
flexran_get_current_frame
(
mod_id
);
sub_frame_t
subframe
=
flexran_get_current_subframe
(
mod_id
);
...
...
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