Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
oai
openairinterface5G
Commits
06b55e3f
Commit
06b55e3f
authored
Mar 04, 2016
by
Xenofon Foukas
Browse files
Fixed bug in creation of ul_cqi_report
parent
47d3d773
Changes
1
Hide whitespace changes
Inline
Side-by-side
openair2/ENB_APP/enb_agent_mac.c
View file @
06b55e3f
...
...
@@ -633,7 +633,7 @@ int enb_agent_mac_stats_reply(mid_t mod_id,
if
(
ul_report
==
NULL
)
goto
error
;
//Fill each UL report of the UE for each of the configured report types
for
(
j
=
0
;
j
++
;
j
<
full_ul_report
->
n_cqi_meas
)
{
for
(
j
=
0
;
j
<
full_ul_report
->
n_cqi_meas
;
j
++
)
{
ul_report
[
j
]
=
malloc
(
sizeof
(
Protocol__PrpUlCqi
));
if
(
ul_report
[
j
]
==
NULL
)
goto
error
;
...
...
@@ -665,14 +665,14 @@ int enb_agent_mac_stats_reply(mid_t mod_id,
full_ul_report
->
pucch_dbm
=
malloc
(
sizeof
(
Protocol__PrpPucchDbm
*
)
*
full_ul_report
->
n_pucch_dbm
);
for
(
j
=
0
;
j
<
MAX_NUM_CCs
;
j
++
)
{
full_ul_report
->
pucch_dbm
[
j
]
=
malloc
(
sizeof
(
Protocol__PrpPucchDbm
));
protocol__prp_pucch_dbm__init
(
full_ul_report
->
pucch_dbm
[
j
]);
full_ul_report
->
pucch_dbm
[
j
]
->
has_serv_cell_index
=
1
;
full_ul_report
->
pucch_dbm
[
j
]
->
serv_cell_index
=
j
;
if
(
get_p0_pucch_dbm
(
enb_id
,
i
,
j
)
!=
-
1
){
full_ul_report
->
pucch_dbm
[
j
]
->
p0_pucch_dbm
=
get_p0_pucch_dbm
(
enb_id
,
i
,
j
);
full_ul_report
->
pucch_dbm
[
j
]
->
has_p0_pucch_dbm
=
1
;
}
full_ul_report
->
pucch_dbm
[
j
]
=
malloc
(
sizeof
(
Protocol__PrpPucchDbm
));
protocol__prp_pucch_dbm__init
(
full_ul_report
->
pucch_dbm
[
j
]);
full_ul_report
->
pucch_dbm
[
j
]
->
has_serv_cell_index
=
1
;
full_ul_report
->
pucch_dbm
[
j
]
->
serv_cell_index
=
j
;
if
(
get_p0_pucch_dbm
(
enb_id
,
i
,
j
)
!=
-
1
){
full_ul_report
->
pucch_dbm
[
j
]
->
p0_pucch_dbm
=
get_p0_pucch_dbm
(
enb_id
,
i
,
j
);
full_ul_report
->
pucch_dbm
[
j
]
->
has_p0_pucch_dbm
=
1
;
}
}
//Add full UL CQI report to the UE report
...
...
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