From 07a68d7120b5f9e171a9a03a0bcc3d476ec24766 Mon Sep 17 00:00:00 2001 From: Xavier Arteaga Date: Tue, 15 Jan 2019 21:26:23 +0100 Subject: [PATCH] Enable UE's AGC for cell search (#314) --- srsue/src/phy/phch_recv.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/srsue/src/phy/phch_recv.cc b/srsue/src/phy/phch_recv.cc index b544b3b1f..d2be66cf2 100644 --- a/srsue/src/phy/phch_recv.cc +++ b/srsue/src/phy/phch_recv.cc @@ -905,6 +905,11 @@ void phch_recv::search::set_agc_enable(bool enable) { rf_info->min_rx_gain, rf_info->max_rx_gain, p->radio_h->get_rx_gain()); + srslte_ue_sync_start_agc(&cs.ue_sync, + callback_set_rx_gain, + rf_info->min_rx_gain, + rf_info->max_rx_gain, + p->radio_h->get_rx_gain()); } else { fprintf(stderr, "Error stop AGC not implemented\n"); }