mirror of https://github.com/PentHertz/srsLTE.git
radio: fix device mapping for mimo
commit #51c6e8d1 introduced a regression in which the 2nd antenna port was never considered. All MIMO ZMQ based tests therefore failed. this fixes #1608
This commit is contained in:
parent
710700d0eb
commit
8e44d0504c
|
@ -531,7 +531,7 @@ void radio::set_rx_freq(const uint32_t& carrier_idx, const double& freq)
|
||||||
if ((device_mapping.carrier_idx + 1) * nof_antennas <= nof_channels) {
|
if ((device_mapping.carrier_idx + 1) * nof_antennas <= nof_channels) {
|
||||||
cur_rx_freqs[device_mapping.carrier_idx] = freq;
|
cur_rx_freqs[device_mapping.carrier_idx] = freq;
|
||||||
for (uint32_t i = 0; i < nof_antennas; i++) {
|
for (uint32_t i = 0; i < nof_antennas; i++) {
|
||||||
channel_mapping::device_mapping_t dm = rx_channel_mapping.get_device_mapping(carrier_idx, 0);
|
channel_mapping::device_mapping_t dm = rx_channel_mapping.get_device_mapping(carrier_idx, i);
|
||||||
srslte_rf_set_rx_freq(&rf_devices[dm.device_idx], dm.channel_idx, freq + freq_offset);
|
srslte_rf_set_rx_freq(&rf_devices[dm.device_idx], dm.channel_idx, freq + freq_offset);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue