aboutsummaryrefslogtreecommitdiffstats
path: root/Transceiver52M/Transceiver.cpp
diff options
context:
space:
mode:
authorVadim Yanitskiy <vyanitskiy@sysmocom.de>2020-09-11 18:03:56 +0700
committerVadim Yanitskiy <vyanitskiy@sysmocom.de>2020-09-12 14:47:21 +0700
commitb7c6f1e83f8f79320011de2f79523f349d593e30 (patch)
treec7266118e9fd3bdc5afb86ea78168567aae0c6a8 /Transceiver52M/Transceiver.cpp
parent4d4368419427b04bb689f45840bab79e3dc04328 (diff)
radioDevice: fix set_antennas(): consider MULTI_ARFCN mode
In the multi-ARFCN mode, if the Tx/Rx antenna names are explicitly set in 'chan N' sections of the configuration file: trx ... multi-arfcn disable chan 0 tx-path TX/RX rx-path RX2 chan 1 tx-path TX/RX rx-path RX2 chan 2 tx-path TX/RX rx-path RX2 osmo-trx would crash, because radioDevice::set_antennas() would attempt to configure antenna names for all N physical channels, while USRP devices usually have 2 or even 1 available. The easiest approach is to remove both 'tx-path'/'rx-path' from all 'chan N' sections excluding 'chan 0', so it would work fine. This makes sense, because in the multi-ARFCN mode we actually use only one physical channel. However, let's still make sure that explicit configuration of the Tx/Rx antenna names would not crash osmo-trx and skip N > 0 in radioDevice::set_antennas(). Change-Id: I09f316f181cbbc2214e8913b73f7c1fcea4e8c05 Related: OS#4636
Diffstat (limited to 'Transceiver52M/Transceiver.cpp')
0 files changed, 0 insertions, 0 deletions