aboutsummaryrefslogtreecommitdiffstats
path: root/Transceiver52M/osmo-trx.cpp
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2020-10-13 17:27:08 +0200
committerPau Espin Pedrol <pespin@sysmocom.de>2020-10-14 12:52:04 +0200
commit93fee1f163054094ec52a87db33ab31e3b5ab74e (patch)
tree2622237fe9df7dd2c49b5cff42a698d268d70a6d /Transceiver52M/osmo-trx.cpp
parente69a56cec53e69cb6a4edef6802c2161972e1a5b (diff)
Transceiver: Pass config struct instead of large list of params
Diffstat (limited to 'Transceiver52M/osmo-trx.cpp')
-rw-r--r--Transceiver52M/osmo-trx.cpp8
1 files changed, 2 insertions, 6 deletions
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;
}