lms: Call set_antennas() during open() method

Without this call, the antenna/path configuration is not applied.

Change-Id: I0bca58266b59f1315ec72b6407fe4f4495aff678
This commit is contained in:
Harald Welte 2018-06-13 21:56:24 +02:00
parent 105a61e689
commit cfb9dac70d
1 changed files with 5 additions and 0 deletions

View File

@ -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;