aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2018-06-13 21:56:24 +0200
committerHarald Welte <laforge@gnumonks.org>2018-06-13 21:56:24 +0200
commita1031f1c9bb354b99aaedcf385a3026acb2ce06b (patch)
tree81cf548aedd7277fed0ef57dda233238810b03c4
parent66efb7c5387b72f0b2f6c1b44317b4ca32ef6d69 (diff)
lms: Call set_antennas() during open() method
Without this call, the antenna/path configuration is not applied. Change-Id: I0bca58266b59f1315ec72b6407fe4f4495aff678
-rw-r--r--Transceiver52M/device/lms/LMSDevice.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/Transceiver52M/device/lms/LMSDevice.cpp b/Transceiver52M/device/lms/LMSDevice.cpp
index b1f4519..518e581 100644
--- a/Transceiver52M/device/lms/LMSDevice.cpp
+++ b/Transceiver52M/device/lms/LMSDevice.cpp
@@ -178,6 +178,11 @@ int LMSDevice::open(const std::string &args, int ref, bool swap_channels)
LOG(DEBUG) << "LPFBW: Rx=" << lpfbw_rx << " Tx=" << lpfbw_tx;
+ if (!set_antennas()) {
+ LOG(ALERT) << "LMS antenna setting failed";
+ return -1;
+ }
+
/* Perform Rx and Tx calibration */
for (i=0; i<chans; i++) {
LOG(INFO) << "Setting LPFBW chan " << i;