aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2018-06-13 23:41:35 +0200
committerPau Espin Pedrol <pespin@sysmocom.de>2018-06-14 12:38:09 +0200
commitffb3301bd8b0036f1e2408a0279dce698cbc3dc0 (patch)
treefe2af1c5e59ea7ea1fe6a8a98e5dde12339f3a67
parent62b7900fd77f9f986ed6914477c3e76475e18baf (diff)
lms: Fail in case of unsupported configuration
There might be some configuration that's not supported by osmo-bts-lms, and we should reject that properly. Change-Id: I6f82edce589030a4407f6150fb7e8abe6417c1f2 Closes: OS#3347
-rw-r--r--Transceiver52M/device/lms/LMSDevice.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/Transceiver52M/device/lms/LMSDevice.cpp b/Transceiver52M/device/lms/LMSDevice.cpp
index 815a4c5..16585e6 100644
--- a/Transceiver52M/device/lms/LMSDevice.cpp
+++ b/Transceiver52M/device/lms/LMSDevice.cpp
@@ -625,5 +625,13 @@ RadioDevice *RadioDevice::make(size_t tx_sps, size_t rx_sps,
const std::vector < std::string > &tx_paths,
const std::vector < std::string > &rx_paths)
{
+ if (tx_sps != rx_sps) {
+ LOG(ERROR) << "LMS Requires tx_sps == rx_sps";
+ return NULL;
+ }
+ if (lo_offset != 0.0) {
+ LOG(ERROR) << "LMS doesn't support lo_offset";
+ return NULL;
+ }
return new LMSDevice(tx_sps, rx_sps, iface, chans, lo_offset, tx_paths, rx_paths);
}