Fix NR UE SFN Sync

master
Xavier Arteaga 3 years ago committed by Xavier Arteaga
parent db19941985
commit e8095529d7

@ -350,16 +350,6 @@ bool cc_worker::decode_pdsch_dl()
bool cc_worker::measure_csi() bool cc_worker::measure_csi()
{ {
srsran_ssb_search_res_t search_res = {};
if (srsran_ssb_search(&ssb, rx_buffer[0], cfg.carrier.pci, &search_res) < SRSRAN_SUCCESS) {
logger.error("Error measuring SSB");
return false;
}
if (search_res.pbch_msg.crc) {
logger.error("Error measuring SSB");
}
// Measure SSB CSI // Measure SSB CSI
if (srsran_ssb_send(&ssb, dl_slot_cfg.idx)) { if (srsran_ssb_send(&ssb, dl_slot_cfg.idx)) {
srsran_csi_trs_measurements_t meas = {}; srsran_csi_trs_measurements_t meas = {};

@ -270,8 +270,7 @@ void sync_sa::run_state_sfn_sync()
void sync_sa::run_state_cell_camping() void sync_sa::run_state_cell_camping()
{ {
nr::sf_worker* nr_worker = nullptr; nr::sf_worker* nr_worker = workers.wait_worker(tti);
nr_worker = workers.wait_worker(tti);
if (nr_worker == nullptr) { if (nr_worker == nullptr) {
running = false; running = false;
return; return;
@ -286,7 +285,7 @@ void sync_sa::run_state_cell_camping()
} }
srsran::phy_common_interface::worker_context_t context; srsran::phy_common_interface::worker_context_t context;
context.sf_idx = slot_synchronizer.get_slot_cfg().idx; context.sf_idx = tti;
context.worker_ptr = nr_worker; context.worker_ptr = nr_worker;
context.last = true; // Set last if standalone context.last = true; // Set last if standalone
last_rx_time.add(FDD_HARQ_DELAY_DL_MS * 1e-3); last_rx_time.add(FDD_HARQ_DELAY_DL_MS * 1e-3);

Loading…
Cancel
Save