Added check for serving PCI target HO

This commit is contained in:
Ismael Gomez 2017-12-13 10:03:39 +01:00
parent 082da2f7b6
commit 4c2b6fbd29
1 changed files with 20 additions and 17 deletions

View File

@ -1118,6 +1118,10 @@ void rrc::handle_rrc_con_reconfig(uint32_t lcid, LIBLTE_RRC_CONNECTION_RECONFIGU
if (reconfig->mob_ctrl_info_present) {
if (reconfig->mob_ctrl_info.target_pci == phy->get_current_pci()) {
rrc_log->warning("Received HO command to own cell\n");
send_rrc_con_reconfig_complete(pdu);
} else {
rrc_log->info("Received HO command to target PCell=%d\n", reconfig->mob_ctrl_info.target_pci);
rrc_log->console("Received HO command to target PCell=%d, NCC=%d\n",
reconfig->mob_ctrl_info.target_pci, reconfig->sec_cnfg_ho.intra_lte.next_hop_chaining_count);
@ -1127,6 +1131,7 @@ void rrc::handle_rrc_con_reconfig(uint32_t lcid, LIBLTE_RRC_CONNECTION_RECONFIGU
pending_mob_reconf = true;
state = RRC_STATE_HO_PREPARE;
}
} else {
// Section 5.3.5.3
@ -2741,7 +2746,6 @@ void rrc::rrc_meas::parse_meas_config(LIBLTE_RRC_MEAS_CONFIG_STRUCT *cfg)
void rrc::rrc_meas::update_phy()
{
phy->meas_reset();
if (pcell_measurement.ms[RSRP] < s_measure_value || !s_measure_enabled) {
for(std::map<uint32_t, meas_t>::iterator iter=active.begin(); iter!=active.end(); ++iter) {
meas_t m = iter->second;
meas_obj_t o = objects[m.object_id];
@ -2753,7 +2757,6 @@ void rrc::rrc_meas::update_phy()
}
}
}
}
uint8_t rrc::rrc_meas::value_to_range(quantity_t quant, float value) {