SRSUE: Enable Asynchronous SCell Receiver AGC

This commit is contained in:
Xavier Arteaga 2019-10-07 16:11:38 +02:00 committed by Xavier Arteaga
parent 1d83bb08e2
commit a9dae4c29c
1 changed files with 8 additions and 1 deletions

View File

@ -93,9 +93,16 @@ void sync::init(srslte::radio_interface_phy* _radio,
reset();
running = true;
// Enable AGC
// Enable AGC for primary cell receiver
set_agc_enable(worker_com->args->agc_enable);
// Enable AGC for secondary asynchronous receiver
if (scell_sync) {
for (auto& q : *scell_sync) {
q->set_agc_enable(worker_com->args->agc_enable);
}
}
// Start main thread
if (sync_cpu_affinity < 0) {
start(prio);