From 93fee1f163054094ec52a87db33ab31e3b5ab74e Mon Sep 17 00:00:00 2001 From: Pau Espin Pedrol Date: Tue, 13 Oct 2020 17:27:08 +0200 Subject: Transceiver: Pass config struct instead of large list of params Change-Id: Ifb43cb11f3e7a69b0a88f632f0a0c90ada7f939e --- Transceiver52M/osmo-trx.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'Transceiver52M/osmo-trx.cpp') diff --git a/Transceiver52M/osmo-trx.cpp b/Transceiver52M/osmo-trx.cpp index c32f1ff..ec949c8 100644 --- a/Transceiver52M/osmo-trx.cpp +++ b/Transceiver52M/osmo-trx.cpp @@ -144,12 +144,8 @@ int makeTransceiver(struct trx_ctx *trx, RadioInterface *radio) { VectorFIFO *fifo; - transceiver = new Transceiver(trx->cfg.base_port, trx->cfg.bind_addr, - trx->cfg.remote_addr, trx->cfg.tx_sps, - trx->cfg.rx_sps, trx->cfg.num_chans, GSM::Time(3,0), - radio, trx->cfg.rssi_offset, trx->cfg.stack_size); - if (!transceiver->init(trx->cfg.filler, trx->cfg.rtsc, - trx->cfg.rach_delay, trx->cfg.egprs, trx->cfg.ext_rach)) { + transceiver = new Transceiver(&trx->cfg, GSM::Time(3,0), radio); + if (!transceiver->init()) { LOG(ALERT) << "Failed to initialize transceiver"; return -1; } -- cgit v1.2.3