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
zzha zzha
OpenXG-RAN
Commits
3bc88cfd
Commit
3bc88cfd
authored
Jan 05, 2016
by
Xenofon Foukas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed agent to support proper frame and subframe reporting in progRAN messages
parent
99cf3b65
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
3 deletions
+18
-3
openair2/ENB_APP/enb_agent_common.c
openair2/ENB_APP/enb_agent_common.c
+11
-0
openair2/ENB_APP/enb_agent_common.h
openair2/ENB_APP/enb_agent_common.h
+4
-0
openair2/ENB_APP/enb_agent_mac.c
openair2/ENB_APP/enb_agent_mac.c
+3
-3
No files found.
openair2/ENB_APP/enb_agent_common.c
View file @
3bc88cfd
...
...
@@ -294,6 +294,17 @@ int get_current_subframe (mid_t mod_id) {
}
uint16_t
get_sfn_sf
(
mid_t
mod_id
)
{
uint16_t
frame
,
subframe
;
uint16_t
sfn_sf
;
frame
=
(
uint16_t
)
get_current_frame
(
mod_id
);
subframe
=
(
uint16_t
)
get_current_subframe
(
mod_id
);
sfn_sf
=
(
frame
<<
12
)
|
subframe
;
return
sfn_sf
;
}
int
get_num_ues
(
mid_t
mod_id
){
return
((
UE_list_t
*
)
enb_ue
[
mod_id
])
->
num_UEs
;
...
...
openair2/ENB_APP/enb_agent_common.h
View file @
3bc88cfd
...
...
@@ -108,6 +108,10 @@ int get_current_frame(mid_t mod_id);
int
get_current_subframe
(
mid_t
mod_id
);
/*Return the frame and subframe number in compact 16-bit format.
Bits 0-3 frame, rest for subframe. Required by progRAN protocol*/
uint16_t
get_sfn_sf
(
mid_t
mod_id
);
int
get_num_ues
(
mid_t
mod_id
);
int
get_ue_crnti
(
mid_t
mod_id
,
mid_t
ue_id
);
...
...
openair2/ENB_APP/enb_agent_mac.c
View file @
3bc88cfd
...
...
@@ -296,7 +296,7 @@ int enb_agent_mac_stats_reply(mid_t mod_id,
goto
error
;
protocol__prp_dl_cqi_report__init
(
dl_report
);
//TODO:Set the SFN and SF of the last report held in the agent.
dl_report
->
sfn_sn
=
get_
current_time_ms
(
enb_id
,
1
);
dl_report
->
sfn_sn
=
get_
sfn_sf
(
enb_id
);
dl_report
->
has_sfn_sn
=
1
;
//TODO:Set the number of DL CQI reports for this UE. One for each CC
dl_report
->
n_csi_report
=
1
;
...
...
@@ -391,7 +391,7 @@ int enb_agent_mac_stats_reply(mid_t mod_id,
goto
error
;
protocol__prp_ul_cqi_report__init
(
full_ul_report
);
//TODO:Set the SFN and SF of the generated report
full_ul_report
->
sfn_sn
=
100
;
full_ul_report
->
sfn_sn
=
get_sfn_sf
(
enb_id
)
;
full_ul_report
->
has_sfn_sn
=
1
;
//TODO:Set the number of UL measurement reports based on the types of measurements
//configured for this UE and on the servCellIndex
...
...
@@ -461,7 +461,7 @@ int enb_agent_mac_stats_reply(mid_t mod_id,
goto
error
;
protocol__prp_noise_interference_report__init
(
ni_report
);
// Current frame and subframe number
ni_report
->
sfn_sf
=
0
;
ni_report
->
sfn_sf
=
get_sfn_sf
(
enb_id
)
;
ni_report
->
has_sfn_sf
=
1
;
// Received interference power in dbm
ni_report
->
rip
=
0
;
...
...
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