Skip to content
GitLab
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
d12f55d2
Commit
d12f55d2
authored
Aug 04, 2017
by
shahab
Browse files
add operating downlink frequency
parent
8e5b1740
Changes
4
Hide whitespace changes
Inline
Side-by-side
openair2/ENB_APP/MESSAGES/V2/config_messages.proto
View file @
d12f55d2
...
...
@@ -38,6 +38,7 @@ message flex_cell_config {
optional
uint32
srs_mac_up_pts
=
32
;
// Boolean value. See TS 36.211, section 5.5.3.2. TDD only
optional
uint32
enable_64QAM
=
33
;
// One of the FLEQ_* enum values
optional
uint32
carrier_index
=
34
;
// Carrier component index
optional
uint32
op_dl_freq
=
35
;
// operating downlink frequency
}
message
flex_ue_config
{
...
...
openair2/ENB_APP/flexran_agent_common.c
View file @
d12f55d2
...
...
@@ -1013,6 +1013,10 @@ int flexran_agent_enb_config_reply(mid_t mod_id, const void *params, Protocol__F
cell_conf
[
i
]
->
srs_mac_up_pts
=
flexran_get_srs_MaxUpPts
(
enb_id
,
i
);
cell_conf
[
i
]
->
has_srs_mac_up_pts
=
1
;
cell_conf
[
i
]
->
op_dl_freq
=
flexran_agent_get_operating_dl_freq
(
0
);
cell_conf
[
i
]
->
has_op_dl_freq
=
1
;
if
(
flexran_get_enable64QAM
(
enb_id
,
i
)
==
0
)
{
cell_conf
[
i
]
->
enable_64qam
=
PROTOCOL__FLEX_QAM__FLEQ_MOD_16QAM
;
}
else
if
(
flexran_get_enable64QAM
(
enb_id
,
i
)
==
1
)
{
...
...
openair2/ENB_APP/flexran_agent_ran_api.c
View file @
d12f55d2
...
...
@@ -956,3 +956,11 @@ int flexran_get_antenna_ports(mid_t mod_id, int CC_id){
return
frame_parms
->
nb_antenna_ports_eNB
;
}
float
flexran_agent_get_operating_dl_freq
(
mid_t
cc_id
)
{
const
Enb_properties_array_t
*
enb_properties
=
enb_config_get
();
return
(
enb_properties
->
properties
[
0
]
->
downlink_frequency
[
cc_id
]
/
1000000
);
}
openair2/ENB_APP/flexran_agent_ran_api.h
View file @
d12f55d2
...
...
@@ -298,4 +298,7 @@ int flexran_get_ue_transmission_antenna(mid_t mod_id, mid_t ue_id);
int
flexran_get_lcg
(
mid_t
ue_id
,
mid_t
lc_id
);
/* Get direction of logical channel with id lc_id */
int
flexran_get_direction
(
mid_t
ue_id
,
mid_t
lc_id
);
\ No newline at end of file
int
flexran_get_direction
(
mid_t
ue_id
,
mid_t
lc_id
);
/*Gety downlink frequency*/
float
flexran_agent_get_operating_dl_freq
(
mid_t
cc_id
);
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment