ue,phy_common: include Pcell PCI in cell measurements

this allows easier plotting in RRC when PHY cell
measurements already include the PCI
This commit is contained in:
Andre Puschmann 2020-10-01 18:49:56 +02:00
parent baf171d446
commit 6e0abd30dd
1 changed files with 5 additions and 2 deletions

View File

@ -748,8 +748,11 @@ void phy_common::update_measurements(uint32_t
meas.rsrp = avg_rsrp_dbm[cc_idx];
meas.rsrq = avg_rsrq_db[cc_idx];
meas.cfo_hz = avg_cfo_hz[cc_idx];
// Save EARFCN and PCI for secondary cells, primary cell has earfcn=0
if (cc_idx > 0) {
// Save PCI and EARFCN (if available)
if (cc_idx == 0) {
meas.pci = cell.id;
} else {
meas.earfcn = scell_cfg[cc_idx].earfcn;
meas.pci = scell_cfg[cc_idx].pci;
}