add operating downlink frequency
This commit is contained in:
@@ -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 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 enable_64QAM = 33; // One of the FLEQ_* enum values
|
||||||
optional uint32 carrier_index = 34; // Carrier component index
|
optional uint32 carrier_index = 34; // Carrier component index
|
||||||
|
optional uint32 op_dl_freq = 35; // operating downlink frequency
|
||||||
}
|
}
|
||||||
|
|
||||||
message flex_ue_config {
|
message flex_ue_config {
|
||||||
|
|||||||
@@ -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]->srs_mac_up_pts = flexran_get_srs_MaxUpPts(enb_id,i);
|
||||||
cell_conf[i]->has_srs_mac_up_pts = 1;
|
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) {
|
if (flexran_get_enable64QAM(enb_id,i) == 0) {
|
||||||
cell_conf[i]->enable_64qam = PROTOCOL__FLEX_QAM__FLEQ_MOD_16QAM;
|
cell_conf[i]->enable_64qam = PROTOCOL__FLEX_QAM__FLEQ_MOD_16QAM;
|
||||||
} else if(flexran_get_enable64QAM(enb_id,i) == 1) {
|
} else if(flexran_get_enable64QAM(enb_id,i) == 1) {
|
||||||
|
|||||||
@@ -956,3 +956,11 @@ int flexran_get_antenna_ports(mid_t mod_id, int CC_id){
|
|||||||
return frame_parms->nb_antenna_ports_eNB;
|
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);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -299,3 +299,6 @@ int flexran_get_lcg(mid_t ue_id, mid_t lc_id);
|
|||||||
|
|
||||||
/* Get direction of logical channel with id lc_id */
|
/* Get direction of logical channel with id lc_id */
|
||||||
int flexran_get_direction(mid_t ue_id, mid_t lc_id);
|
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);
|
||||||
Reference in New Issue
Block a user