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
Li-Wei Liu
openairinterface5G
Commits
939251e0
Commit
939251e0
authored
Jun 12, 2019
by
Robert Schmidt
Browse files
Fix: Memory allocation for offsetFreq parameter
parent
8cf520d2
Changes
1
Hide whitespace changes
Inline
Side-by-side
openair2/RRC/LTE/rrc_eNB.c
View file @
939251e0
...
...
@@ -3316,7 +3316,7 @@ void rrc_eNB_generate_defaultRRCConnectionReconfiguration(const protocol_ctxt_t
//TODO: Assign proper values
ue_context_pP
->
ue_context
.
measurement_info
->
offsetFreq
=
0
;
ue_context_pP
->
ue_context
.
measurement_info
->
cellIndividualOffset
[
0
]
=
0
;
ue_context_pP
->
ue_context
.
measurement_info
->
cellIndividualOffset
[
0
]
=
LTE_Q_OffsetRange_dB
0
;
/* TODO: Extend to multiple carriers */
// Add adjacent cell lists (max 6 per eNB)
...
...
@@ -4028,6 +4028,7 @@ flexran_rrc_eNB_generate_defaultRRCConnectionReconfiguration(const protocol_ctxt
MeasObj
->
measObject
.
choice
.
measObjectEUTRA
.
neighCellConfig
.
buf
[
0
]
=
0
;
MeasObj
->
measObject
.
choice
.
measObjectEUTRA
.
neighCellConfig
.
size
=
1
;
MeasObj
->
measObject
.
choice
.
measObjectEUTRA
.
neighCellConfig
.
bits_unused
=
6
;
MeasObj
->
measObject
.
choice
.
measObjectEUTRA
.
offsetFreq
=
(
LTE_Q_OffsetRange_t
*
)
CALLOC
(
1
,
sizeof
(
LTE_Q_OffsetRange_t
));
*
(
MeasObj
->
measObject
.
choice
.
measObjectEUTRA
.
offsetFreq
)
=
ue_context_pP
->
ue_context
.
measurement_info
->
offsetFreq
;
// Default is 15 or 0dB
if
(
RC
.
rrc
[
ctxt_pP
->
module_id
]
->
num_neigh_cells
>
0
)
{
...
...
@@ -5563,7 +5564,7 @@ rrc_eNB_generate_HO_RRCConnectionReconfiguration(const protocol_ctxt_t *const ct
//TODO: Assign proper values
ue_context_pP
->
ue_context
.
measurement_info
->
offsetFreq
=
0
;
ue_context_pP
->
ue_context
.
measurement_info
->
cellIndividualOffset
[
0
]
=
0
;
ue_context_pP
->
ue_context
.
measurement_info
->
cellIndividualOffset
[
0
]
=
LTE_Q_OffsetRange_dB
0
;
/* TODO: Extend to multiple carriers */
// Add adjacent cell lists (max 6 per eNB)
...
...
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