mirror of
https://gitlab.eurecom.fr/oai/openairinterface5g.git
synced 2026-07-13 04:30:28 +00:00
The existing patch (generated through sed) works also in UHD versions beyond 4.8, so allow to use that. Further, since sed is confusing, store the patch directly. Update the dockerfiles so that docker copies the right file for UHD 4.8. Signed-off-by: Robert Schmidt <robert.schmidt@openairinterface.org>
35 lines
1.5 KiB
Diff
35 lines
1.5 KiB
Diff
diff --git a/host/lib/usrp/b200/b200_impl.cpp b/host/lib/usrp/b200/b200_impl.cpp
|
|
index 6de161e87..432af5784 100644
|
|
--- a/host/lib/usrp/b200/b200_impl.cpp
|
|
+++ b/host/lib/usrp/b200/b200_impl.cpp
|
|
@@ -1410,10 +1410,10 @@ void b200_impl::update_atrs(void)
|
|
if (not enb_rx and enb_tx)
|
|
fd = txonly;
|
|
gpio_atr_3000::sptr atr = perif.atr;
|
|
- atr->set_atr_reg(ATR_REG_IDLE, STATE_RX1_OFF);
|
|
- atr->set_atr_reg(ATR_REG_RX_ONLY, rxonly);
|
|
- atr->set_atr_reg(ATR_REG_TX_ONLY, txonly);
|
|
- atr->set_atr_reg(ATR_REG_FULL_DUPLEX, fd);
|
|
+ atr->set_atr_reg(ATR_REG_IDLE, STATE_RX1_OFF | (1<<7));
|
|
+ atr->set_atr_reg(ATR_REG_RX_ONLY, rxonly | (1<<7));
|
|
+ atr->set_atr_reg(ATR_REG_TX_ONLY, txonly | (1<<7));
|
|
+ atr->set_atr_reg(ATR_REG_FULL_DUPLEX, fd | (1<<7));
|
|
}
|
|
if (_radio_perifs.size() > _fe2 and _radio_perifs[_fe2].atr) {
|
|
radio_perifs_t& perif = _radio_perifs[_fe2];
|
|
@@ -1431,10 +1431,10 @@ void b200_impl::update_atrs(void)
|
|
if (not enb_rx and enb_tx)
|
|
fd = txonly;
|
|
gpio_atr_3000::sptr atr = perif.atr;
|
|
- atr->set_atr_reg(ATR_REG_IDLE, STATE_RX2_OFF);
|
|
- atr->set_atr_reg(ATR_REG_RX_ONLY, rxonly);
|
|
- atr->set_atr_reg(ATR_REG_TX_ONLY, txonly);
|
|
- atr->set_atr_reg(ATR_REG_FULL_DUPLEX, fd);
|
|
+ atr->set_atr_reg(ATR_REG_IDLE, STATE_RX2_OFF | (1<<7));
|
|
+ atr->set_atr_reg(ATR_REG_RX_ONLY, rxonly | (1<<7));
|
|
+ atr->set_atr_reg(ATR_REG_TX_ONLY, txonly | (1<<7));
|
|
+ atr->set_atr_reg(ATR_REG_FULL_DUPLEX, fd | (1<<7));
|
|
}
|
|
}
|
|
|