From cfb9dac70d6e49fd289717e9c497562ef8bdaac1 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Wed, 13 Jun 2018 21:56:24 +0200 Subject: lms: Call set_antennas() during open() method Without this call, the antenna/path configuration is not applied. Change-Id: I0bca58266b59f1315ec72b6407fe4f4495aff678 --- Transceiver52M/device/lms/LMSDevice.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Transceiver52M/device/lms/LMSDevice.cpp') 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